DEV Community

Discussion on: How long does it take to learn to code?

Collapse
 
jamesthomson profile image
James Thomson

100%. Much better to use pure functions.

Collapse
 
rafarochas91 profile image
Rafael Rocha

Or provide the dependency as a parameter even if it contains side effects you have overall control. Following the Inversion of Control principle.