87
Avoiding if-else Hell: The Functional Style
(lackofimagination.org)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
As a Jr Developer, I found this very helpful. Thanks.
You might want to think about it a bit more before putting it to work. The comment with the streams example is far, far better.
Yeah, honestly you should stick to if/else until you're really sure you want to do something more complex.