Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think spaghetti code is fine, so long as you know you're writing it and that it needs to be rewritten sooner rather than later. I often need to prototype an idea, so I can test it and show it to others for comments, before I know whether it's actually an idea worth pursuing.

Fortunately for me, smart people were having this same discussion 10 or 15 years ago (just as I got to the age where I stopped thinking I knew everything), and interestingly referring to Fred Brooks' work, presumably from the late sixties:

http://www.webdeveloper.com/cgi-perl/cgi_perl_style.html

"Think first. Then hack. Now throw it out. Repeat. Fred Brooks says, `Build one to throw away.' Always rewrite your code from scratch, preferably twice. just as did it with drafts of papers in grammar school. It improves understanding, gets the creative juices flowing, and produces a far finer end-product."



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: