| ▲ | ulrikrasmussen 5 hours ago | ||||||||||||||||
A corollary of this statement is that code without a spec is not code. No /s, I think that is true - code without a spec certainly does something, but it is, by the absence of a detailed spec, undefined behavior. | |||||||||||||||||
| ▲ | retsibsi 3 hours ago | parent | next [-] | ||||||||||||||||
No way! Code is whatever defines the behavior of the program unambiguously, or as close to unambiguously as makes little difference. A sufficiently detailed spec does that, and hence it is effectively higher level code. Code (together with the language spec and/or compiler) always does that, regardless of how haphazardly written it is. | |||||||||||||||||
| ▲ | lmm 5 hours ago | parent | prev [-] | ||||||||||||||||
On the contrary, code is a spec. In a decent language it should look like one. | |||||||||||||||||
| |||||||||||||||||