
Nested IFs and Elses are very hard to read and test TL;DR: Avoid nested IFs. Even Better: Avoid ALL IFs Problems Readability Solutions Extract Method Combine Boolean Conditions Remove accidental IFs Context In procedural code, it is very co...
Software Engineer
I’m a senior software engineer loving clean code, and declarative designs. S.O.L.I.D. and agile methodologies fan.
Markdown supported · ⌘↵ to post
Hassib Moddasser
The Code Smell series are great!
Thank you! :)