Comment by chii
5 years ago
> if they were one function before they probably share some state
and this is exactly why you refactor to pull out the shared state into parameters, so that each of the "subfunctions" have zero side effects.
5 years ago
> if they were one function before they probably share some state
and this is exactly why you refactor to pull out the shared state into parameters, so that each of the "subfunctions" have zero side effects.
No comments yet
Contribute on Hacker News ↗