News for hackers. Stuff that matters.

Little development time vs perfect code?

I am sure I am not the only one to have this "issue".

I have created some small libraries for my side projects (mainly C++ lately) but I keep spending an awful lot amount of time trying to make it look good and take into account all corner cases while I should probably just be hacking away to get something working (i.e some kind of prototype).

How do you guys deal that ?

( 6 comments | 5 points | on HN )
Re:Little development time vs perfect code? by tzaman on Monday August 27, 2012 @08:01AM (#4438385)
Hack away to get something working putting those libraries to good use. Code will be optimized throughout the process.
Re:Little development time vs perfect code? by symbion on Monday August 27, 2012 @08:08AM (#4438404)
You are right. Code optimisation should be a process rather than a task in itself.
Re:Little development time vs perfect code? by lumberjack on Monday August 27, 2012 @07:42AM (#4438327)
I use a priority list for each project. A working implementation would be a high priority. Security bugs too. Optimizing code a bit lower and so on and so forth.
Re:Little development time vs perfect code? by symbion on Monday August 27, 2012 @08:05AM (#4438397)
Priority list ? Good idea. I have a JIRA instance for my project with all tasks though none of them are prioritised. It might seems slightly overkill but I guess I could use it to prioritise task/issues with it.

PS: Lumberjack ? Are you the one who wrote the Cocoa Lumberjac logging API by any chance ?

Re:Little development time vs perfect code? by orjan on Monday August 27, 2012 @08:37AM (#4438484)
If you already have the tasks, prioritizing them should be fairly easy. Then just scan down the list until you find the first non-essential feature and there you draw the line. Anything after that goes into version two.
Re:Little development time vs perfect code? by lumberjack on Monday August 27, 2012 @08:35AM (#4438478)
> PS: Lumberjack ? Are you the one who wrote the Cocoa Lumberjac logging API by any chance ?

Nope, though I wish I could say I did.