User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 455,972 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,808 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums
Views: 1474 | Replies: 2
Reply
Join Date: Nov 2007
Posts: 2
Reputation: sura91 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sura91 sura91 is offline Offline
Newbie Poster

5 Advantages of Using Procedures Within Pascal Programming?

  #1  
Nov 25th, 2007
5 Advantages of Using Procedures Within Pascal Programming?

any help here please?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Posts: 44
Reputation: Gotovina7 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Gotovina7 Gotovina7 is offline Offline
Light Poster

Re: 5 Advantages of Using Procedures Within Pascal Programming?

  #2  
Nov 25th, 2007
Makes your program look nicer/shorter?
Reply With Quote  
Join Date: Nov 2007
Posts: 22
Reputation: ecostas is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
ecostas ecostas is offline Offline
Newbie Poster

Solution Re: 5 Advantages of Using Procedures Within Pascal Programming?

  #3  
Nov 28th, 2007
Originally Posted by sura91 View Post
5 Advantages of Using Procedures Within Pascal Programming?

any help here please?


1) Debugging is easier. If the procedure is well written, it will do one and only one thing, making it easier to check

2) Lower maintenance cost. If you have the same code spread along your code, you have to remember where it is located and fix or at least cut and paste it several times

3) You can reuse the code. For example, you may place your procedures in a library and later use it in another program.

4) Greater understanding. Since the procedure is well defined and documented, someone interested won't have to scroll through the whole source in order to find the code he/she wants

5) Easier tuning. Performance usually comes from changing small pieces of code. With procedures these pieces are naturally separated and side-effects from changing variables or code are less likely to happen.

Hope it helps. Any book on software engineering may give these ideas and more.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Pascal and Delphi Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Pascal and Delphi Forum

All times are GMT -4. The time now is 9:13 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC