9504 shaares
222 private links
222 private links
- Extraction: make the nested code a function or its own piece of logic.
- Inversion: use guards to remove nested code. These guards will stop the function before the end of the function body. They act as gates.