Avoiding Side Effects
01
Basic Definitions
Key Concept
What is a Side Effect?
- A side effect happens when a task does more than just give you an answer.
- Think of a doctor's pill: it fixes your pain (the goal), but also makes you sleepy (the side effect).
- In code, we want our tasks to be predictable and stay focused on one job.
1 / 7
