Hacker News new | ask | show | jobs
by xthrowawayxx 1475 days ago
You're right. I don't actually DI always. Only (most of the time) when I have may have multiple implementations of a function, mock the function, or test it with different implementations of its depenencies.

I still use many static functions