Can Arrows Cause Cognitive Overload?

By |2019-07-29T16:23:28+00:00July 29th, 2019|clean code, Programming, Software development|0 Comments

In programming, deep nesting is a problem known as the Arrow Anti-Pattern. The name comes from the shape of nested if statements: if ...:     if ...:         if ...             if ...                 if ...                     # code                 else:             else:         else:     else: else: Normally, you shouldn’t go beyond two levels of nesting. Otherwise, your code becomes overly complex and hard to understand. Boolean operators allow us to combine multiple conditional expressions without relying on nested if statements. I talk about the Arrow Anti-pattern and further, programming related topics in my recently published book The Non-Programmer's Programming Book: Programming Foundations for Absolute Beginners. Learn to [...]