Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Good Coding?

by BazB (Priest)
on Jan 23, 2002 at 22:41 UTC ( [id://140975]=note: print w/replies, xml ) Need Help??


in reply to Good Coding?

To keep chromatic happy: test, test, test.

Give the code to your peers to review the code, do some QA testing.

After that, give it to a group of users that have no idea what the script is supposed to do - monitor how they're using the script - users have this annoying habit of breaking a piece of code you previously though was near prefect.

Modularise the code as much as possible and test each piece separately and as a unit.

Use CPAN modules for common tasks - they've been well tested and proven in real life, that hand-rolled parser (or whatever) hasn't.

I've already got several nodes on this topic listed on my homenode, but I'll reproduce them here:


Use Super search - I'm sure there are many more nodes on the subject.

Test, test, test.

Log In?
Username:
Password:

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

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

    No recent polls found