in reply to Does bad code really teach you to write good code?
Even better than reading good code, however, is getting comments back on your own code, bad or otherwise. There's almost always a simpler, easier, more efficient way to solve a particular problem. Whenever possible without being annoying, submit your code for review. New SoPW questions are good for this, once you get past the basic newbie barriers of learning how to use strict, use warnings, use CGI (and other basic modules that everyone should use in the proper situations, like Digest::MD5), and how to manage references and nested data structures. When I first joined PM, I didn't know a lot of this stuff, and I imagine I annoyed a lot of people by posting my solutions with global variables and subs for processing form data and so on. My algorithms were good, but my code was crap.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Does bad code really teach you to write good code?
by Gekitsuu (Scribe) on Jun 18, 2005 at 07:05 UTC |