News for hackers. Stuff that matters.
Re:What's wrong with this code, really? by RyanMcGreal on Friday September 16, 2011 @09:25AM (#3004332)
Understood, but I would caution that even an inexperienced, inefficient programmer should still understand what their code does and why it works. The best way the more experienced can exercise patience is by giving inexperienced programmers enough time to figure it out rather than pressuring them to flip random switches frantically.
Re:What's wrong with this code, really? by tsumnia on Friday September 16, 2011 @09:42AM (#3004396)
I think that just touches on documentation, extensive commenting, and generally writing straightforward code. I didn't really know the importance of this until I had to step-by-step rewrite my thesis after it fell apart completely. Now, I make sure to document at the least a small explanation of what my lines of code mean and the end result, no matter how simple.
Re:What's wrong with this code, really? by onemoreact on Friday September 16, 2011 @10:00AM (#3004458)
With a little time, inexperienced and inefficent programmers can understand often understand the crappy code they wrote just fine. What they can't do is avoid writting it in the first place. For most of them if you say great this works now make it better they will have zero understanding in what direction they should try and improve things.
Re:What's wrong with this code, really? by throwawayday on Friday September 16, 2011 @10:35AM (#3004568)
it's called experience for a reason - the coder has to try (and fail) until they learn enough to code good, efficient, clear code