Refactoring Without the Fors
summary
Examines replacing traditional for loops in Java code by alternatives such as the Stream API and recursion, with brief looks at Kotlin and Scala. Compares readability, maintainability and performance to decide when to avoid or keep using for loops.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 3:38Nested loop problems
- 8:41Recursion and accumulators
- 13:43Java Streams key concepts
- 24:57Performance vs readability
- 30:14Benchmark results
- 38:00Summary
related talks
43mRefactoring to Functional Style
55mTransforming Your Code to Java 8
37mPragmatic Functional Refactoring with Java 8
01h 31mTransforming Code to Java 8
49mJava Functional Programming Idioms
36mHow functional programming change my Java code
57mTen Common mistakes made in Functional Java
59mHow to Catch Recursion by the Tail
