ALL
Reducing Code Nesting
"This guy’s code sucks!" It’s something we’ve all said or thought when we runinto code we don’t like. Sometimes it’s because it’s buggy, sometimes it’sbecause it conforms to a style we don’t like, and sometimes it’s because itjust feels wrong. Recently I found myself thinking this, and automaticallyjumping to the conclusion that the developer who wrote it was a novice. Thecode had a distinct property that I dislike: lots of nesting. But the more Ithink about it, the more I realized that it’s not really something Iâ€â...