Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
On Tue, 19 Jul 2005 11:02:50 +1200, "Pete Dashwood"
<dashwood@enternet.co.nz> wrote:

>
>"Howard Brazee" <howard@brazee.net> wrote in message
>news:dbge55$gm2$1@peabody.colorado.edu... 
>
>I'd be interested to know what those environments were, Howard. Never
>encountered it myself, and am having great difficulty imagining it.
>
> 
>
>A very fair question. If no human is going to maintain it, you could well
>argue that duplication is irrelevant. However, it isn't . Here are some
>reasons why even a  code generator might avoid duplicated code:
>
>1. Isolation and reuse of functionality. Refactoring code into component
>functions means that the code can be shared and reused. Even if you are not
>maintaining it, you might want to export the functionality to other systems
>or include it in new features of existing systems. (This is the main
>advantage of component based systems.)
>
>2. The less code that is generated, the faster it will run.

Not necessarily.  Some of the wild optimizations of IBM's mainframe
COBOL include moving the code for PERFORMed paragraphs inline
replacing the PERFORM depending on how many places the paragraph is
PERFORMED from.  I am certain that the same exists in other compilers
for various languages.
>3. It is easier to maintain an inventory of discrete functions if their
>functionality is not duplicated all over the place.

This is true.  This gets into a whole host of questions on tradeoffs
on maintainability, control of introduction of new functions, the
efficiencies of compile time versus bind time versus run-time binding,
especially with parameter checking.  NOTE CLEARLY, this is not an OO
versus non_OO question since run-time binding is being done in a large
percentage of z/OS COBOL shops today (all CALLs use the DYNAM option). 

Report this thread to moderator Post Follow-up to this message
Old Post
Clark Morris
07-25-05 01:17 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:14 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.