View Single Post
Old 2008-10-14, 06:39 AM   #17
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Quote:
Originally Posted by MadCat View Post
There's a difference though between "good" as in syntactically correct, and "good" as in maintainable........
The idea is to write code that works for you, I was not suggesting he set up a script writing service, just write Perl to use on his own computer and scripts to use on his own site. I find that if I leave in enough comments I can see what I did the first time if I want to change something or add a bit on. If you are writing for your server, rather than just scripts to use on your own computer then obviously you have to know enough about security, and also be competent enough not to crash the server with bad code. But you appear to want to write code to impress. There is no need for that, no one is going to see the code (unless you share). Just learn Perl, write what you need, and try not to make it as complicated as you seem to want to make your code.

There is (nearly) always more than one way to do it. Pick the quickest, easiest way. No one will see your code but you, so there is no need to make it dance a jig and whistle the national anthem backwards while counting hits and filing them under referrers. Stick to that rule, and writing Perl IS easy!
ecchi is offline   Reply With Quote