top | item 23780200

(no title)

alexandercrohde | 5 years 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.

discuss

order

No comments yet.