Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Subroutines versus straight top to bottom scripts

by chime (Friar)
on Jun 03, 2005 at 14:46 UTC ( [id://463289]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Subroutines versus straight top to bottom scripts
in thread Subroutines versus straight top to bottom scripts

I have constructed my programs so that they consist of a main() sub which made up of a list of smaller subroutines.
Each line of the main() is commented.

The effect is similar to a novel with the main equivalent to a list of chapters with the sub routines making up like the contents of a book.

Also when I need to check any part of the program I can see in the main where about it is
and can quickly "find" to the sub.

Making changes updating or removing is made alot easier especially when there are no inner subroutines.

Of course not all the sub routines are listed in main() as some are within called with others

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found