pcouy@lemmy.pierre-couy.fr to Programming@programming.dev · 1 month agoCode Smells Catalogluzkan.github.ioexternal-linkmessage-square57fedilinkarrow-up169arrow-down17cross-posted to: programming@programming.dev
arrow-up162arrow-down1external-linkCode Smells Catalogluzkan.github.iopcouy@lemmy.pierre-couy.fr to Programming@programming.dev · 1 month agomessage-square57fedilinkcross-posted to: programming@programming.dev
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up1·28 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-up1arrow-down1·28 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