Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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!


# 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://265611]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2018-05-25 03:58 GMT
Find Nodes?
    Voting Booth?