Kotlin / Language foundations and explicit state

Kotlin β€” Language foundations and explicit state

Develop values, control flow, nullability, collections, classes, and failure boundaries.

6 lessons Β· No account required

What you will learn

  • Predict small programs and distinguish syntax, types, and domain validation.
  1. Run a Kotlin program and reason about values

    Understand a JVM-oriented entry point, val and var, inferred types, arithmetic, and explicit conversions.

    Start learning
  2. Express decisions and reusable functions

    Use if and when expressions, ranges, loops, named arguments, and explicit function contracts.

    Start learning
  3. Represent absence with nullable types

    Use smart casts, safe calls, Elvis expressions, and nullable parsing without replacing domain meaning with unchecked assertions.

    Start learning
  4. Choose collections and transform them deliberately

    Use lists, sets, maps, read-only views, filtering, and mapping while preserving order and ownership meaning.

    Start learning
  5. Model state with classes and data classes

    Use constructors, init validation, properties, equality, and copy while respecting encapsulation and shallow state.

    Start learning
  6. Separate validation, exceptions, and cleanup

    Use require, check, try expressions, narrow catches, and finally while keeping expected input failures explicit.

    Start learning
Back to course