DEV Community

Discussion on: When is nesting good or neutral?

Collapse
 
nickholmesde profile image
Nick Holmes

Nesting control structures quickly creates very many possible code paths, which makes the code harder to read, harder to work on, and, perhaps most importantly, harder to test. For this reason, it should be avoided/minimized.