Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> try to shape code so that more of it can be tested without hard to setup dependencies

Yes!

In general, functional core + imperative shell goes a long way toward this goal.

With that approach should also be minimal coupling and complex structured types outside with simple standard types passed to core functions.

These things make unit testing so much easier and faster (dev time and test run time).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: