En route to better code
summary
Presents practical Scala refactorings to produce cleaner code: avoid mutation and side effects, encapsulate validation and optional fields in value objects, separate domain models from database access, and favor small pure functions over large classes. Provides a catalogue of ten common real-world mistakes and shows how applying these fixes reduces coupling, simplifies unit testing, and prevents production bugs.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:47Clean code goals
- 4:08Side effects and mutations
- 6:51Readability and structure
- 9:48Abstraction and simplification
- 12:51Good practice examples
- 16:23Documentation and maintenance
- 19:41Code optimization
- 21:58Conclusion
related talks
39mA few tips on modelling things in Scala
56mClean Code, Two Decades Later
18mImpactful Refactors: Refactoring for Readability
49mScala best practices I wish someone'd told me about
47mPrinciples of Clean Functional Programming
10mScalaF: Functional Refactoring Suggestions for Scala
52mImmaculate Code (pure code)
57mRefactoring and Code Smells.
