Wim Jongeneel
Aug 18, 2021

Exactly. If you have a big mess of if-statements it is not because the if-statement sucks, but because your code sucks. Many of those fancy ways of replacing the supposed evil keyword are just painting over the rotten codebase. Too many conditions/responsibilities in one place is too many, no matter how fancy you write them down.

Wim Jongeneel
Wim Jongeneel

Written by Wim Jongeneel

Software Engineer at Mendix (Rotterdam, The Netherlands) • Student MSc Software Engineering • Functional programming enthusiast

No responses yet