Quote:
Originally Posted by Kostly
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
