Programming with Functions #3 – Pattern Matching

Programming with Functions #3 – Pattern Matching

https://youtu.be/GzVpWORuVqE

A new video! 🙂 This one is a bit more Scala-oriented than the previous two, but the main idea I want to convey should be the same for Scala and Kotlin. It’s that with relatively simple constructs, like pattern matching, data classes, enum, and sealed traits/interfaces, you can design your code around data. So, instead of big object-oriented design patterns, you can have just data structures and code handling them in a clear and concise way.

Hope you enjoy!

submitted by /u/makingthematrix
[link] [comments]