Programming with Nex

Contents

From first programs to software engineering practice — using the Nex programming language.

Preface Preface
Getting Started
Ch. 1
Your First Programs
Ch. 2
Values, Types, and Variables
Ch. 3
Expressions
Ch. 4
Making Decisions
Ch. 5
Repetition
Functions and Structure
Ch. 6
Functions
Ch. 7
Thinking with Functions
Ch. 8
Recursion
Organising Data
Ch. 9
Arrays
Ch. 10
Maps
Ch. 11
Nested and Composite Structures
Classes and Objects
Ch. 12
Classes
Ch. 13
Designing Classes Well
Ch. 14
Inheritance and Polymorphism
Ch. 15
Generic Classes
Design by Contract
Ch. 16
Preconditions
Ch. 17
Postconditions
Ch. 18
Invariants
Ch. 19
Loop Contracts
Ch. 20
Contracts as Design
Errors and Recovery
Ch. 21
Errors and Exceptions
Ch. 22
Writing Robust Code
Working at Scale
Ch. 23
Modules and Files
Ch. 24
Interoperability
Ch. 25
Testing Your Programs
Putting It Together
Ch. 26
A Complete Program
Ch. 27
Common Patterns
Ch. 28
Concurrency with Tasks and Channels
Ch. 29
What to Read Next
Appendices
A
Nex Syntax Reference
B
Built-in Types and Operations
C
The Standard Library
D
The Debugger
E
Solutions to Selected Exercises