Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: IYHO, what do you consider good code?

by castaway (Parson)
on Jun 13, 2003 at 08:56 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://265611]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-18 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found