Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Proposal for new section: Code Improvements

by Cody Pendant (Prior)
on Jan 25, 2003 at 10:12 UTC ( #229820=note: print w/replies, xml ) Need Help??


in reply to Proposal for new section: Code Improvements

I like the idea of a place to fix up code which already works.

I got a hell of a lot out of reading those "script doctor" or "script workshop" or whatever they were called, articles by M-J D at perl.com.

So much of what goes on here is "my code is broken! Help ME!" that it'd be a nice change of pace to have a section where we post code that already works, but admit that it could probably do with improvement.

It should also be a change of tone; because so many of the problems we see on SOPW get answered with "use strict and you'd have an error message", "use warnings and you'd already know the answer" and so on, people can be a bit abrupt. If the code works, no matter how clunky, we're in a different atmosphere. The poster's done something humble, put their code on display for the monks, and the people who write back should also be more polite, because nobody's screaming "Help me my script doesn't work!!!" when they've just missed closing a set of damn quotes.

I know I've got scripts which could be better, but they don't need improvement in the sense of actually doing what they're supposed to do, because they work just fine. They're just probably not great Perl, that's all.
--
“Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.” M-J D

  • Comment on Re: Proposal for new section: Code Improvements

Replies are listed 'Best First'.
Re^2: Proposal for new section: Code Improvements
by Aristotle (Chancellor) on Jan 25, 2003 at 23:53 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://229820]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-11-20 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (220 votes). Check out past polls.

    Notices?