DEV Community

Discussion on: Keeping your code clean by sweeping out "if" statements

Collapse
 
tomazfernandes profile image
Tomaz Lemos

Hi Amanda, thanks for your feedback!

Don't feel guilty, we've all sure had our share implementing messy conditionals! The point I tried to make is much more about keeping the business rules as clear as possible than about whether or not we should use ifs, but I do think lots of ifs will most certainly get in the way.

I will try a different approach for the next post and see how it goes. It's been a very interesting discussion indeed, thanks for your input!