News for hackers. Stuff that matters.
Re:Ask HN: Do you write tests before the implementation? by dexterbt1 on Friday November 15, 2019 @05:10AM (#21543709)
I follow the Functional Core, Imperative Shell pattern.

I do TDD on Core, especially on mission critical code.

The Shell however have almost zero automated tests.

Re:Ask HN: Do you write tests before the implementation? by jononor on Friday November 15, 2019 @06:39AM (#21544069)
Thanks for that term, it sounds related to the style I prefer. Do you have any recommended references?
Re:Ask HN: Do you write tests before the implementation? by dexterbt1 on Friday November 15, 2019 @07:36AM (#21544306)
Try to watch Gary Bernhardt's "Boundaries" screencast (2012), if you haven't yet.

There are also some collection of links in github such as https://gist.github.com/kbilsted/abdc017858cad68c3e7926b0364....

The pattern articulated by Gary also best resonated my thoughts and experience in building software.