Aijan@programming.dev to Programming@programming.dev · 2 months agoAvoiding if-else Hell: The Functional Stylelackofimagination.orgexternal-linkmessage-square35fedilinkarrow-up195arrow-down18
arrow-up187arrow-down1external-linkAvoiding if-else Hell: The Functional Stylelackofimagination.orgAijan@programming.dev to Programming@programming.dev · 2 months agomessage-square35fedilink
minus-squarez3rOR0ne@lemmy.mllinkfedilinkarrow-up1arrow-down4·2 months agoAs a Jr Developer, I found this very helpful. Thanks.
minus-squareHamsterRage@lemmy.calinkfedilinkarrow-up14·2 months agoYou might want to think about it a bit more before putting it to work. The comment with the streams example is far, far better.
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up10·2 months agoYeah, honestly you should stick to if/else until you’re really sure you want to do something more complex.
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.