Re:Old school developers - achieving a lot with little
by kaffeinecoma on Saturday July 21, 2012 @10:02AM
(#4274780)
On Ken Thompson:
Sounds to me like he does use unit tests, but then throws them away after he's content that the code is working. I think this is what most people did for non-trivial code before unit testing became a culture.
[ Parent
| on HN ]
Re:Old school developers - achieving a lot with little
by chubot on Saturday July 21, 2012 @12:57PM
(#4275166)
Yup, I remember when I was learning Python, before I ever wrote any real tests, all my modules would be littered with:
if arg[1] == 'test1':
print func1(a)
elif arg[1] == 'test2':
print func1(b)
elif arg[1] == 'test3':
print func2(a)
...
Eventually I found it was way easier to stick this in a _test.py file :)