Prevent the Arrow Anti-Pattern Caused by Excessive Defensive Checks for Null List References

The Arrow Antipattern You have most likely encountered the Arrow anti-pattern when maintaining legacy code. Perhaps you have even used a poorly designed Application Programming Interface (API) that required writing overly verbose and defensive code, particularly around null object references.  This anti-pattern is very easy to recognize, as it typically consists of several nested conditional checks. These nested conditional blocks...

Read More