Re:Vim's 400 line function to wait for keyboard input
by SonicSoul on Wednesday July 15, 2015 @02:40PM
(#9893184)
You're assuming that old code doesn't have tests, or that tests can't be written for it, or that it can't be patched without a rewrite?
[ Parent
| on HN ]
Re:Vim's 400 line function to wait for keyboard input
by geofft on Wednesday July 15, 2015 @05:08PM
(#9894096)
I'm assuming that if it doesn't have regression tests, the old code is untouchable / legacy code, because you can't add features to it without risking breaking something. If it does have regression tests, then you can rewrite it and only switch to the rewrite once it passes all tests. Joel's argument goes away, because the regression tests document exactly what obscure edge cases you wouldn't have thought of.