News for hackers. Stuff that matters.
Re:Ask HN: How fast do you code? by j_baker on Saturday July 24, 2010 @05:46PM (#1544446)
I code as fast as I need to. I could probably do something in an evening if it was an easy project, but trying to make a one-week project fit into one evening is a bad idea. In short: just let it take as long as it needs to. It's going to be difficult for you to tell if you're putting the right amount of thought and effort into things right now because you're probably not going to be maintaining it very long.

Believe me, once you're out in the real world, you will find out if you took a shortcut you shouldn't have. Experience is a tough but quick teacher. Just make sure you're not "learning" the same lessons over and over again.

Re:Ask HN: How fast do you code? by rhythmAddict on Saturday July 24, 2010 @05:58PM (#1544461)
I'd agree with this general sentiment. If I need to finish something quickly, provided it's not ridiculous, I will. Also, keep in mind that when you've been writing code professionally, you have access to either code others have written at your organization, code you've written, or both. At times, this can help dramatically. There are countless times when I think "I know I've done this before" and I rip out 10-15 lines of something I worked on 5 months ago and go ahead and adapt it. There really isn't any reason not to do this, IMO...

Also, in general, I don't get a requirement/feature/enhancement/etc and start slamming away in my editor. My personal preference is to think about it, scratch some ideas down on paper/white board and just stare at my monitor while I run everything through my head. It's always my first reaction to think I need to start typing out some code - and [for me] that's usually not the most efficient approach. Once I have a concept/logical-flow in my head that I have run through several times, I'll write that in my editor as comments. After that, it's really just me writing code that adheres to my comments rather than trying to design the program while coding it.

I'm not at all saying this is the right approach for all, but that's certainly the case for me.

cheers

Re:Ask HN: How fast do you code? by j_baker on Saturday July 24, 2010 @06:50PM (#1544562)
"I'd agree with this general sentiment."

Are you saying you don't necessarily agree with the specific sentiment? :-)