Overview
Explore advanced Scala refactoring techniques in this 44-minute conference talk from Scala Days Lausanne 2019. Learn about the importance of writing clean, maintainable code and discover strategies to reduce complexity. Delve into topics such as flag compilers, pattern matching, and the proper use of case classes. Gain insights on recursive functions, type management, and best practices for making code more readable and efficient. Enhance your Scala programming skills and learn how to create code that not only works but also delights your teammates.
Syllabus
Intro
About Daniela
Funning good code
The good news
Its really important
Making our teammates happy
Two types of complexity
Whats wrong with my code
General Takeaway
Takeaway
Flag compilers
Always use distributor
Lets round
Pattern matching
Bonus round
Conclusion
Dont extend case classes
Graph law of case classes
Take away
Question
Recursive function
Stay recursive
Dont be lazy
Too many types
Recap
Questions
Taught by
Scala Days Conferences