View Single Post
Old 03-31-2012, 04:16 AM  
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Quote:
Originally Posted by Kostly View Post
Once you wrote a piece of code, its easy to write it again, and the second time you write it will be better then the first. It will also take 1/10th the original time.
I tend to take longer the second time...

First time is usually just a hack that gets little bits and pieces added on, the bare minimum. Edit it until it no longer dies with a parse or runtime error.

Second time is often a complete rewrite, sometimes in another language, with more thought about how to code around soft errors (restarting from a waypoint rather than dying with a fatal error), better use of memory, disk space and access, etc. I often go back to it and do little refinements here and there.

I should add this is for my own use only, I wouldn't be giving hacky half tested code to anyone else... unless it's a favour for a friend
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote