pcouy@lemmy.pierre-couy.fr to Programming@programming.dev · 10 days agoCode Smells Catalogluzkan.github.ioexternal-linkmessage-square51fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkCode Smells Catalogluzkan.github.iopcouy@lemmy.pierre-couy.fr to Programming@programming.dev · 10 days agomessage-square51fedilink
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up0·8 days agoI disagree. I’ve seen very complex boolean expressions and they were clearly code smell. Sometimes acceptable but definitely a fertile area for refactoring. Their example is crap to be fair - two comparisons is not complex.
minus-squareBoomkop3@reddthat.comlinkfedilinkarrow-up0·7 days agoIf you do have a super complex boolean expression, I wouldn’t call it a smell. It’ll be much more obvious
I disagree. I’ve seen very complex boolean expressions and they were clearly code smell. Sometimes acceptable but definitely a fertile area for refactoring.
Their example is crap to be fair - two comparisons is not complex.
If you do have a super complex boolean expression, I wouldn’t call it a smell. It’ll be much more obvious