Re:How I went from knowing nothing about programming to bein...
by nova2wl on Thursday April 26, 2012 @09:14AM
(#3893718)
I've always had a fear of writing spaghetti code that it had prevented me from actually coding. I think that has been a big hurdle for me starting out. Reading articles like this though definitely helps me out.
[ Parent
| on HN ]
Re:How I went from knowing nothing about programming to bein...
by gtrak on Thursday April 26, 2012 @11:10AM
(#3894273)
I always expect to mercilessly refactor what I write, though it's good to remember users don't care if your code is top notch, it's just something you do to make your own life easier, to simplify adding features. The ego aspects just gets in the way, especially if you're the only person working on it. In my experience, I'm always more productive with some code and building blocks to arrange than a blank canvas, and as you gain more experience it's easier to see corners before you code yourself into them.
Re:How I went from knowing nothing about programming to bein...
by gte910h on Thursday April 26, 2012 @01:20PM
(#3895012)
I'm a professional software product developer who writes messy code all the time (true spagetti code isn't really possible today, it's a thing done only in assembler).
After awhile you realize the pain of doing messy everywhere, and do it only where it makes sense (Prototypes, quick fixes, first implementations, etc).
But you know what runs worse than messy code? No code at all.
Re:How I went from knowing nothing about programming to bein...
by gtrak on Thursday April 26, 2012 @02:10PM
(#3895335)
you're from gatech, aren't you?
Re:How I went from knowing nothing about programming to bein...
by gte910h on Thursday April 26, 2012 @11:20PM
(#3897348)
Yes, although that was a few years ago.
Re:How I went from knowing nothing about programming to bein...
by weaksauce on Thursday April 26, 2012 @01:10PM
(#3894945)
Start writing. Commit often to a good source control system(git or mercurial but I prefer git). Refactor your code when you see an abstraction. The hardest thing about any task is just starting it.
Re:How I went from knowing nothing about programming to bein...
by pacaro on Thursday April 26, 2012 @05:12PM
(#3896158)
+1 to this.
For me learning to "Refactor your code when you see an abstraction" came only when I had to work in an environment where failing to do this caused pain (writing Win16 OLE/COM code in C)
I don't advocate masochistic practices as a means of self improvement per se, but the same habits can be built using intentional practice wherein you choose (for the purpose of the exercise) to take strong constraints on the style of your code.
Re:How I went from knowing nothing about programming to bein...
by mattmanser on Thursday April 26, 2012 @10:32AM
(#3894078)
I get this from time to time, analysis paralysis.
I go build some tiny and completely unrelated to get me to enjoy programming again. Usually works.