Skip to content

Comment on Clean Coder: The Dark Path (2017)parent

Comments

Tests check the operation for a single value of the, potentially infinite, input space.

Types check the operation for many, and can be made for all possible input values.

The difference is:

None of these boxes contain bicycles because:

* With tests: we checked 3 of them and found no bicycles

* With types: all the boxes are too small to contain bicycles.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.