DEV Community

One “IF” to rule them all

Bruno Noriller on November 11, 2023

There’s a lot of code to write, many times we just duplicate, and sometimes we do it DRY and others WET. But the nasty of them all is when you jus...
Collapse
 
lionelrowe profile image
lionel-rowe

But the nasty of them all is when you just keep popping with “if” this, “if” that and keep repeating the same things over and over.

Did someone say too many if statements?

Collapse
 
noriller profile image
Bruno Noriller

I would say "ow", but sometimes when I trigger copilot, it just gives me this type of code. So...

Collapse
 
anitaolsen profile image
Anita Olsen • Edited

I love LOTR as well! One “IF” to rule them all! Love your writing. I saved this for later.