Busy Java Developer's Guide to Scala: Basics
summary
Covers concrete Scala mechanics: if/else is an expression that must return the same type, val vs var immutability preference, for-comprehensions (generators and filters) versus traditional for loops, tuples with structural decomposition, lists as immutable cons-based collections, arrays that compile down to JVM primitives, pattern matching that is exhaustive and returns values, tail-recursive factorial/Fibonacci examples using BigInteger aliasing, nested imports and when method signatures require explicit return types.
AI-written summary · about
chapters (14)
- 0:00Introduction to Scala basics
- 2:16Hello World in Scala
- 5:50Scala syntax and type system
- 11:53Immutable values and variables
- 14:18For comprehensions in Scala
- 19:56Defining functions and methods
- 26:14Advanced imports and aliases
- 33:24Scala arrays vs collections
- 39:03Recursion and factorial
- 41:36Lists and immutability
- 46:17Generics and type inference
- 49:57Maps and tuples
- 55:56Pattern matching power
- 1:00:12Homework and closing remarks
related talks
41mEffective Scala
15mWhat Scala Taught Me About Software Engineering
44mFrom Java to Scala: how I discovered functional programming
30mLessons Learned from 15 Years of Scala in the Wild
32mAdvanced Features of Scala 3
01h 05mScala: The Simple Parts
45mDesign Patterns in Scala
49mScala best practices I wish someone'd told me about
