Scala for Java developers
summary
Claim: switching parts of a Java codebase to Scala eliminates most nullpointerexceptions — one presenter counts NPEs on one hand after a year — by using Option instead, immutable case classes and the scala repl for quick prototyping. Shows concrete patterns: copy for immutable updates, pattern matching and for-comprehensions instead of nested flatMaps, implicits for execution contexts and codecs, and recommends Play plus futures/tasks for concurrency. Demonstrates Java interoperability and short, working code examples.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:14Why use Scala
- 7:34Object orientation
- 11:12Scala options
- 12:29Scala case classes
- 15:18Scala pattern matching
- 22:59Immutability
- 28:22Flatten
- 32:20Multiple parameters
- 36:23Conclusion
- 37:53Questions
related talks
29mScala for Everyone
53mRefactor your language knowledge portfolio - we are what we can code in
38mA song of types and errors (...)
02h 19mStudents' Day
22mAdopting Scala: The Next Steps
01h 00mIntro to FP in Scala: Exploring a Toolbox for Solving Problems - Part 1 of 6
48mTechniques for Teaching Scala
39mCoding with dinosaurs
