Hacker News new | ask | show | jobs
by n0w 209 days ago
Code is a specification. You cannot have a program unless you specify how it works.
2 comments

And TTD would say "start with a failing test, it is an executable specification for the code that you will need to make it pass. Then make it pass, then refactor to make nice code that still passes all tests - red, green, refactor under tests"
Most code is not a specification in the sense that we're talking about.