Yeah, maybe as an example of what not to do!
I can't tell whether I should be more scared about his defensiveness at being called to the carpet, or the fact that the script has about a half dozen eval-string ops, generally taking their operand from unchecked CGI form fields. Yuck.
*sigh* (Score:1)
His retort [yahoo.com] is interesting:
He's right that new Perl programmers won't jump right in to packages and objects -- though I don't know what makes him think they'll jump in to a 5000-line auction script.
And if a 5000-line script isn't screaming for modularization, I don't know what is.
Re:*sigh* (Score:2)
A long time ago I learned a term that's stuck with me to this day: position release. When I have an obstacle to personal growth or learning, it means that I have some sort of personal position on a matter that I need to let go of. Even to this day, I have to constantly remind myself that when someone points out another way of doing something, even if I disagree with it, I need to figure out why they're pointing it out so I can attempt to learn from them. It's a tough thing to do.
Alternate realities (Score:2)
Not that I ever apparently do that, of course. {grin}
using packages (Score:2)
Telling a beginner how to use a package that cuts down the code they would write from 5000 lines (to choose a random number :-) down to a few dozen lines that focus on the overall operation and leave the details to the underlying package is a necessary and important lesson that should happen early.
Ugh indeed (Score:1)
Every CGI I write uses taint-mode, warnings, strict, and CGI.pm.
I can't tell you how many times I've had people call me to do maintenance on an old script to add some small additional functionality and I've had to either convince them that I should rewrite the entire thing from scratch, or turn them down outright since I won't add my name to the list of people responsible for it breaking or being c
Re:Ugh indeed (Score:2)
I have a friend who's doing a complete rewrite of Webmin using strict, automatic tests, modules, etc. I believe he wants to sell it as a commercial product, though.
Re:Ugh indeed (Score:1)