61
Code Smells Catalog (luzkan.github.io)
you are viewing a single comment's thread
view the rest of the comments
[-] Boomkop3@reddthat.com 1 points 4 days ago

They aren't saying never have complex boolean expressions...

That's not what I'm saying either. But I think this is to be judged on a case by case basis. And it can depend on your understanding of the context. I think there's simply too much nuance here to just say "this smells"

[-] FizzyOrange@programming.dev 1 points 4 days ago

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.

[-] Boomkop3@reddthat.com 0 points 4 days ago

If you do have a super complex boolean expression, I wouldn't call it a smell. It'll be much more obvious

this post was submitted on 05 Jan 2025
61 points (90.7% liked)

Programming

17788 readers
173 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS