Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: IYHO, what do you consider good code?

by castaway (Parson)
on Jun 13, 2003 at 08:56 UTC ( #265611=note: print w/ replies, xml ) Need Help??


in reply to IYHO, what do you consider good code?

Good style? I'd consider properly indented and commented code good style, indenting especially helps you or other people to understand what is going on later.. Also try not to re-use big chunks of code, one or two lines repeated is ok, but if you find yourself formatting text a certain way, or similar, write a sub for it.. It helps later if you need to change how that works/looks..

Can't think of much else at the moment, I'm not a 'strict' person (tho warnings is good).. Whatever works :)

I'm surprised no-one has mentioned the style guide yet!

C.

# This script does not use strict, because most of mine don't
# (Is that enough of a 'why no strict' comment? ,)


Comment on Re: IYHO, what do you consider good code?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-12-22 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (121 votes), past polls