Clean Code Rule
If your function does more than one thing, it’s doing too much.
If you need to add a comment to explain the logic, refactor the logic instead.
Readable code reduces bugs. Simple, small functions improve maintainability.
Write code for humans first, compilers second.