Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: IYHO, what do you consider good code?

by kodo (Hermit)
on Jun 13, 2003 at 06:33 UTC ( #265595=note: print w/replies, xml ) Need Help??

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

Hi Doss,

for me good code means what was already mentioned but also to have good structured code. Don't use to much subs, but try to give it a structure which also helps to make it reusable. If it's getting big think about putting parts of the code you might want to use again in a small module etc...
Also learn to have a strict an clean style, which you always use and not change to often. I personally prefer to have a more K&R-styled style than the usual perl-style...
Also only use tabs for indenting and not for lining up stuff etc. Have a look at perltidy if you can't manage to have a strict style yourself.

  • 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://265595]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2018-06-19 06:04 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.