Taro Logo
Profile picture
Alex ChiouTech Lead @ Robinhood, Meta, Course Hero

Infinite Layers Of Nesting

Nesting is great for birds, but terrible for code. Having too much nesting is one of the easiest ways to make code terrible. This lesson will teach you:

  • Why deeply nested code is literally hard to read
  • The early-return pattern to unfurl nested code
  • How to compress conditionals properly (this includes how not to mess them up)