3 ms·
> Also when readers are trying to understand exactly how some function changes the system state Yep. That's why changing system state is better kept at a minim
by marcosdumay 7y ago
> Also when readers are trying to understand exactly how some function changes the system state
Yep. That's why changing system state is better kept at a minimum, and at the highest layer possible.
Most languages have a very clear public/private marker for determining what is an API and what is just there for convenience (it doesn't have to be literally public/private, for some it's scope, others just tag the names, etc). You don't need to change a code's style just because of it.
On the other hand, if the functions do not have logical and atomic meanings, they will do make your code as hard to understand as it will be to name them.