HN Hall of Fame Weekly email

What if writing tests was a joyful experience?

blog.janestreet.com Essays & writing Essays & articles Software engineering Candidate
Screenshot of blog.janestreet.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 3 calendar years, with breakout response in 2 of them.

submissions
4
submitters
4
observed span
2023–2026
peak thread · 122 comments
138 pts
latest 20+ return · 2026-02-05
114 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

> But think: everything in those describe blocks had to be written by hand. It also had to be thought about by the developer. Someone had to say "I want the code to do this under these conditions". If your tests can be autogenerated then they aren't verifying expected behaviour, they're just locking in your implementation such that it can't change later. They are saying "hey look everyone, I got my coverage metric to 100% (despite any bugs I may…

mabbo·138-point thread·

I realize that the example is contrived, but what is the point of writing a test of a fibonacci function if your test harness is designed to just take whatever it tells you and updates the assert to verify that what it told you is indeed what it just told you. This assumes the code you wrote is already correct and giving the correct answer, so why bother writing tests? If, however you accept that you may have got it…

shruubi·114-point thread·

Most of the non-joyful experience of writing tests lies in the context preparation, not so much in the expected outputs. I think we need a modern version of design by contract instead. Its one of the most powerful techniques of testing software is unfortunately often ignored and overlooked these days... Some less known things about design by contract: - you can easily test way more than types in preconditions and postconditions - extreme web controller postcondition example: every time there…

spion·104-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
358

reference only — not used in Hall rules or ranking

Total comments
257

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2023-01-11What if writing tests was a joyful experience?First breakout · Best threadjsomers13892
2023-01-12What if writing tests was a joyful experience?grncdr104122
2024-09-16What if writing tests was a joyful experience? (2023)tosh20
2026-02-05Jane Street Blog – What if writing tests was a joyful experience?Latest 20+ point returnryanhn11443