Overview
Teaching: 20 min
Exercises: 0 minQuestionsObjectives
- Why and how to limit the side effects of functions?
- Discuss why single-purpose functions are often preferred over multi-purpose functions
- Know about pure functions (functions without side effects)
Slides by Radovan Bast.
Key Points
Understand the motivation for choosing to do modular-based coding
“Global data structures” vs “local data structures”