Clean Code with Kotlin
summary
Kotlin delivers concise, expressive, safe code by using language features and concrete rules: prefer immutability with val and data classes, reduce function size and complexity and limit functions to three arguments, apply command–query separation and the Law of Demeter to avoid train‑wreck chains, use the Elvis operator and sealed/checked exception patterns for error paths, and close resources with use(). Also adopt ktlint/Sonar, CI/CD and mandatory tests plus small, focused code reviews.
AI-written summary · about
chapters (27)
- 0:00Intro
- 0:13What would you prefer to have
- 1:13What is Clean Code?
- 2:58Use intention-revealing names
- 3:16Examples
- 6:28Make it smaller
- 10:49Command Query Separation
- 11:58Class organization
- 12:23The newspaper metaphor
- 13:46Cohesion
- 14:30Coupling
- 15:17Best case scenario
- 19:08Train wrecks
- 20:13LoD - Formal definition
- 20:23Law of Demeter
- 21:56"Tell, Don't Ask" Principle
- 22:42Objects vs Data
- 23:05Error handling
- 23:22Types/ Nullable Types (recap)
- 26:18Comments rule
- 29:19Code Review Advantages
- 30:01Writing the code
- 31:24Before the code review
- 32:18After the code review
- 33:06Ask questions
- 33:32It's about the code, not about the coder
- 34:26My summary
