Welcome to this Virtual Kotlin User Group session. Today, Gopal Akshintala tells us how to "Fight Complexity With Functional Programming".
Here's the abstract:
A Metric-driven approach to reduce Cognitive Complexity in a code base, using Functional Programming, demoed by solving a complex real-world ubiquitous design challenge - REST API Bulk Request Validation, with an extensible Framework that separates what-to-do (Validations) from how-to-do (Validation Orchestration). It was successfully done by our team in the world’s largest SaaS org, Salesforce.
Code examples can be found on GitHub:
http://bit.ly/imp-vs-dec
https://bit.ly/ro-validation-kt
The slide deck is available here: https://speakerdeck.com/gopalakshinta....
And, last but definitely not least, here is the book Gopal's recommendation: https://pragprog.com/book/swdddf/doma...