Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Gaussian Elimination Algorithm

by ccarden (Monk)
on Aug 06, 2003 at 20:01 UTC ( [id://281567]=note: print w/replies, xml ) Need Help??


in reply to Gaussian Elimination Algorithm

Hi, grexman,

I like to be able to read code, too, and I've learned most about that subject from this very website.

Encapsulate more of your code into subs. It might make the code run a bit slower (hrdly noticable), but it will be much easier to derive what each section of code is doing simply by looking at the sub calls (assuming you can use descriptive names for your subs). Each of your major comments in your code probably mark good sections to sub-ify.

I was just turned onto the Getopt::Long and Pod::Usage modules, which have made my code infinitely more readable, easier to debug, and much more professional looking. They will add a bit of overhead to the size of your program, but you'll appreciate their benefits, too.

-- ccarden

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found