pcouy@lemmy.pierre-couy.fr to Programming@programming.dev · 4 days agoCode Smells Catalogluzkan.github.ioexternal-linkmessage-square53fedilinkarrow-up164arrow-down17
arrow-up157arrow-down1external-linkCode Smells Catalogluzkan.github.iopcouy@lemmy.pierre-couy.fr to Programming@programming.dev · 4 days agomessage-square53fedilink
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up1·1 day 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-up1·1 day 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