<aside> 💡 Helper functions need to be created within a function if:

  1. The function performs ≥ 2 distinct and complete operations on input data (Function Composition Rule).
  2. The function modifies a list (Operating on a List Rule).
  3. The function attempts to accomplish a sub-task in a different knowledge domain as compared to the function itself (Domain Knowledge Shift). </aside>

Function Composition Rule


Operating on a List Rule


Domain Knowledge Shift