DEV Community

Discussion on: Stop using if else

Collapse
 
codemouse92 profile image
Jason C. McDonald • Edited

It's okay to go looking for better solutions than just a chained if-else. On the other hand, many evils have been committed in pursuit of over-optimization, merely on the basis of the feeling that "real developers don't use if statements". Oh yes, we use them. Often. And liberally. And they work really, really well.

See also...

Collapse
 
bcowley1220 profile image
Brendan Cowley

You mean that developers have a tendency to overly-complicate simple problems by implementing 10 ton hammer solutions? Pshaw! Haha, for the rest of us "normies" simple, repeatable, digestible, straightforward solutions are always preferable to the "smart" solution.

Some comments have been hidden by the post's author - find out more