4 ms·
Maybe for a small bit of code: a method or a simple class. But once you are talking about a serious system? Your prototype code is guaranteed to be of prototyp
by snprbob86 18y ago
Maybe for a small bit of code: a method or a simple class.
But once you are talking about a serious system? Your prototype code is guaranteed to be of prototype quality. Starting over from scratch is a strong way to mitigate the risk of it infecting your production code.
- kirubakaran 18y agoIn the languages that I mentioned (js,lisp,py), you will write a small function in the interactive shell (repl) and play with it and tinker it until it works perfectly. Then you'll write another function that uses this and other such functions etc. You'll build functions on top of functions until you have a fully usable system. As you know, this is bottom-up programming. While you can continue to improve things and refactor code as much as you want, at no point do you have to throw everything out and start clean. You don't lose any work. I don't know much Objective C. I've just written some tiny iPhone apps in it. But my feeling is that it strongly encourages top-down programming, which results in the programmer having to do the things mentioned in the article (plan ahead, rewrite from scratch etc).