Comment

Comment by alexandercrohde

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.

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton