Code Smell 102 - Arrow Code
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...
maximilianocontieri.com2 min read
Hassib Moddasser
Full-Stack Web Developer • Technical Writer • In a mission to make learning Web Development easy and accessible
The Code Smell series are great!
Thank you! :)