Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 examining the Monastery: (9)
As of 2014-09-18 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (113 votes), past polls