Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol > Re: Interesting...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 20 of 74 Topic 4071 of 4195
Post > Topic >>

Re: Interesting take on Paradigms (OO vs Procedural)

by "Rick Smith" <ricksmith@[EMAIL PROTECTED] > Mar 28, 2008 at 10:47 PM

"Charles Hottel" <chottel@[EMAIL PROTECTED]
> wrote in message
news:13urbjoss3fk4bf@[EMAIL PROTECTED]
>
> "Rick Smith" <ricksmith@[EMAIL PROTECTED]
> wrote in message
> news:13ur1alih0ug9ae@[EMAIL PROTECTED]
> >
> >>"Kellie Fitton" <KELLIEFITTON@[EMAIL PROTECTED]
> wrote in message
> >
news:20701054-5cb5->4abb-b841-15b85c63b8f8@[EMAIL PROTECTED]
> >
> > [snip]
> >
> >>You might find what my COBOL teacher said about OOP interesting:
> >
> >>Begin quote:
> >
> > [snip]
> >
> >>Object oriented is simply an oversold and overhyped programming
> >>concept, without any clear benefits that can be fathomed in the
> >>IT world of business applications.   Nonetheless, object oriented
> >>design is mainly solutions to problems that COBOL does not have.
> >
> >>End quote:
> >
> > It is my understanding that, "in the IT world of business
> > applications"; most data is representational, not object.
> > The distinction is that the former has little or no behavior
> > while the latter does.
> >
> > One problem with attempting to add behavior to
> > representational data is that the process is potentially
> > never-ending. One may add methods to the class to use
> > the data in one way, then add more methods to use it
> > another way, and so on. In formal OO design, this
> > requires opening the class to add the methods--a no-no
> > that violates the Open/Closed Principle. If inheritance is
> > used to extend the class, then inheritance can not be used
> > also for sub-classing, without creating "class spaghetti".
> > To avoid this problem, one simply leaves the data as is
> > and creates separate cl***** that have the required
> > behavior. For business information, these cl***** use
> > the paradigm "clerks performing procedures on or with
> > data", which is pretty much what COBOL programs
> > do now.
> >
> >
>
> You can use the decorator pattern to add behavior to an object and the
> object does not even know about the new behavior.

The distinction here is that Decorator adds to an
individual object, whereas the addition I was referring
to was to the class and thus to all objects instantiated
from that class.

Choosing Decorator, when the addition is needed for
all, adds overhead and complexity that would not
otherwise occur since every access to every object is
indirect. Stacking Decorator for each change would
seem to make things much worse, much faster.

Using a "Clerk pattern" for each behavior is as simple
as it gets.
 




 74 Posts in Topic:
Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-28 12:08:44 
Re: Interesting take on Paradigms (OO vs Procedural)
Howard Brazee <howard@  2008-03-28 11:22:51 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-28 13:10:05 
Re: Interesting take on Paradigms (OO vs Procedural)
Howard Brazee <howard@  2008-03-28 12:31:28 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-28 14:33:27 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-28 14:53:00 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-03-29 10:16:59 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-28 18:01:42 
Re: Interesting take on Paradigms (OO vs Procedural)
"Charles Hottel"  2008-03-28 22:57:57 
Re: Interesting take on Paradigms (OO vs Procedural)
Alistair <alistair@[EM  2008-03-29 12:01:10 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-03-30 09:05:25 
Re: Interesting take on Paradigms (OO vs Procedural)
docdwarf@[EMAIL PROTECTED  2008-03-30 01:03:06 
Re: Interesting take on Paradigms (OO vs Procedural)
Robert <no@[EMAIL PROT  2008-03-29 23:19:59 
Re: Interesting take on Paradigms (OO vs Procedural)
Alistair <alistair@[EM  2008-04-01 11:23:23 
Re: Interesting take on Paradigms (OO vs Procedural)
"tlmfru" <la  2008-03-28 14:07:59 
Re: Interesting take on Paradigms (OO vs Procedural)
Howard Brazee <howard@  2008-03-28 13:54:59 
Re: Interesting take on Paradigms (OO vs Procedural)
Kellie Fitton <KELLIEF  2008-03-28 14:11:19 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-28 18:54:27 
Re: Interesting take on Paradigms (OO vs Procedural)
"Charles Hottel"  2008-03-28 22:50:47 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-28 22:47:17 
Re: Interesting take on Paradigms (OO vs Procedural)
Kellie Fitton <KELLIEF  2008-03-28 14:13:40 
Re: Interesting take on Paradigms (OO vs Procedural)
"Charles Hottel"  2008-03-28 22:55:47 
Re: Interesting take on Paradigms (OO vs Procedural)
Alistair <alistair@[EM  2008-03-28 18:10:10 
Re: Interesting take on Paradigms (OO vs Procedural)
Alistair <alistair@[EM  2008-03-28 18:12:53 
Re: Interesting take on Paradigms (OO vs Procedural)
docdwarf@[EMAIL PROTECTED  2008-03-29 01:15:20 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-03-30 08:59:23 
Re: Interesting take on Paradigms (OO vs Procedural)
Richard <riplin@[EMAIL  2008-03-28 13:41:46 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-03-29 10:42:50 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-28 19:20:59 
Re: Interesting take on Paradigms (OO vs Procedural)
"Charles Hottel"  2008-03-28 23:01:10 
Re: Interesting take on Paradigms (OO vs Procedural)
"tlmfru" <la  2008-03-31 12:20:41 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-01 12:44:13 
Re: Interesting take on Paradigms (OO vs Procedural)
docdwarf@[EMAIL PROTECTED  2008-04-01 00:01:46 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-02 10:50:55 
Re: Interesting take on Paradigms (OO vs Procedural)
Richard <riplin@[EMAIL  2008-04-01 16:24:52 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-02 13:40:05 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-28 19:51:12 
Re: Interesting take on Paradigms (OO vs Procedural)
Richard <riplin@[EMAIL  2008-03-29 00:11:50 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-29 09:24:32 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-03-29 10:09:10 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-28 20:12:49 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-03-30 09:22:58 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-03-29 18:21:54 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-01 12:57:36 
Re: Interesting take on Paradigms (OO vs Procedural)
"Charles Hottel"  2008-03-28 22:47:37 
Re: Interesting take on Paradigms (OO vs Procedural)
tim <TimJ@[EMAIL PROTE  2008-03-29 06:18:19 
Re: Interesting take on Paradigms (OO vs Procedural)
tim <TimJ@[EMAIL PROTE  2008-03-29 06:27:30 
Re: Interesting take on Paradigms (OO vs Procedural)
tim <TimJ@[EMAIL PROTE  2008-03-29 20:47:39 
Re: Interesting take on Paradigms (OO vs Procedural)
Joe Zitzelberger <zber  2008-04-11 00:15:30 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-11 16:39:41 
Re: Interesting take on Paradigms (OO vs Procedural)
Richard Brady <rrllbrr  2008-04-11 13:51:06 
Re: Interesting take on Paradigms (OO vs Procedural)
"tlmfru" <la  2008-04-11 12:54:50 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-12 12:50:19 
Re: Interesting take on Paradigms (OO vs Procedural)
"tlmfru" <la  2008-04-12 19:20:03 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-13 21:07:14 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-12 12:36:35 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-04-11 14:29:11 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-12 18:55:25 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-04-12 13:47:33 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-04-12 14:42:48 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-13 20:33:47 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-04-13 22:39:57 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-14 15:34:49 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-04-13 23:47:34 
Re: Interesting take on Paradigms (OO vs Procedural)
"William M. Klein&qu  2008-04-14 14:24:00 
Re: Interesting take on Paradigms (OO vs Procedural)
"Pete Dashwood"  2008-04-15 13:14:01 
Re: Interesting take on Paradigms (OO vs Procedural)
Joe Zitzelberger <zber  2008-04-17 00:45:33 
Re: Interesting take on Paradigms (OO vs Procedural)
Joe Zitzelberger <zber  2008-04-17 00:37:38 
Re: Interesting take on Paradigms (OO vs Procedural)
"Charles Hottel"  2008-04-12 12:14:32 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-04-12 15:11:35 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-04-14 13:40:11 
Re: Interesting take on Paradigms (OO vs Procedural)
"Rick Smith" &l  2008-04-11 13:03:05 
Re: Interesting take on Paradigms (OO vs Procedural)
Richard Brady <rrllbrr  2008-04-13 19:04:10 
Re: Interesting take on Paradigms (OO vs Procedural)
"Frank Swarbrick&quo  2008-04-14 18:10:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 22:56:45 CDT 2008.