Skip to content
Julia Ogris edited this page May 13, 2023 · 11 revisions

Exercise Overview

  1. Sequential Instruction Execution
    print; rect, circle, line, move, color
    Explanation | Skill: Print | Skill: Drawing
  2. Variables and types
    num, string, bool, Declaration (typed, inferred). read
  3. Flow control
    while, if, for
  4. Operators
    1. num arithmetic: +, -, *, /, %
    2. string concatenation, indexing, slicing
    3. bool: and or !
    4. comparison == <= >= < > != (num & string)
    5. operator precedence
  5. Factoring code
    func, parameters, arguments, return type and value
  6. Structuring data
    arrays, maps; indexing, slicing, ranging
  7. Miscellaneous:
    1. event handlers on
    2. \", \n, \t; printf, sprintf, %%;
    3. standard library: math, rand, string, advanced drawing
    4. errors err (eg failed str2num)
    5. any, reflection, type assertions
    6. variadic functions
  8. Algorithms & data structures
    Trees, linked lists, recursion, search, sort, ...
  9. Modules / importing