by drfloyd51 · 1w ago · 0 comments
I don’t believe that source code is a spec. Source code has real time manipulation a kind of temporal dependency. Specs are declarative.
The difference is a spec would say: adding two and three should equal five. Code says you have a variable give it the value two. Now add three to it. Return that value. Maybe a unit test to assert it returned 5. Code defines how a spec is satisfied.
No comments yet.