The post on Cleverness as a code virtue is a bit delayed, as the subject is a little more complicated than I expected. In the meantime, feel free to mull over this question:
Which makes for more virtuous code: being testable, or being tested?
The post on Cleverness as a code virtue is a bit delayed, as the subject is a little more complicated than I expected. In the meantime, feel free to mull over this question:
Which makes for more virtuous code: being testable, or being tested?
i would think that virtuous code would require both. i mean, in a sense, that would be like having a scientific theory whose results you can’t verify via reproducible experimentation (evolution, big bang). or, whose experiments yield incomprehensible or unusable results (perpetual motion, democracy). in modern science, the manner in which you test a theory is just as important as the measurement you make. the veracity of the result is influenced by whether or not the experiment is cogent. in the same sense, i would argue that knowing the ’state of tested’ is meaningless unless you have knowledge of the manner in which the state was measured.
forgive me for being so wordy. my son is keeping me up tonight and my mind is wandering/wondering…