7 sins of a Scala beginner
summary
Claims five sins not seven and walks through concrete mistakes: sacrificing readability for conciseness (unnamed tuples, chained maps, missing public type annotations), feature overuse (case classes for services, infix/postfix abuse), implicit hazards (implicit conversions, implicit parameters on common types), premature reinvention of the standard library, and writing Java in Scala (nulls, exceptions, mutable state). Examples use Future, Option, Try, value classes, for-comprehensions, applicative builders and libraries like cats/Scalaz as safer alternatives.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:25Sacrifice readability
- 7:20Scala features
- 13:49Implicit
- 18:46Running the language
- 19:46Writing Java
- 20:05Nulls and Exceptions
- 21:11State and Side Effects
- 22:47Object Patterns
- 23:10Return Keyword
- 24:42Outro
related talks
29mScala for Everyone
38mA song of types and errors (...)
01h 00mIntro to FP in Scala: Exploring a Toolbox for Solving Problems - Part 1 of 6
50mThe 7 Deadly Sins for Gophers
48mTechniques for Teaching Scala
22mAdopting Scala: The Next Steps
20mBreaking the entry barriers: making the scary keywords accessible.
44mTeaching Scala to the Statically Challenged
