|
|
|
|
|
by alexandercrohde
2164 days ago
|
|
One thing I've learned, is that unit testing seems much much more painful than it has to be when you are using too many classes. When you are writing code as pure functions (i.e. stateless), it's actually much less painful. In the provided example, I would never write a class to curl a website and parse json. |
|