Re: Thoughts on teaching OO concepts to COBOL programmers



On Fri, 11 Apr 2008 01:02:32 -0400, Joe Zitzelberger <zberger@xxxxxxxxxxx> wrote:

But I would really appreciate hearing about your experiences going from
COBOL to any OO style of programming. What were your pitfalls, what was
helpful, etc.

One pitfall is they will find ways to turn OO design back into Cobol concepts. It will
happen during maintenance, after designers and developers have moved on. Suppose one
method requires a logic change. Instead of doing it the OO way, they'll copy and paste the
logic into their client program, just to change a few lines. Before you know it, there
will be ten slightly different versions of the method.

They will say a change to the base method would have required re-testing every application
that used it. This way requires testing only one. And an overload is inefficient.

If the object is a structure that will be stored in a database row, they'll replicate
fields into other structures stored in other tables. Their rationale will be efficiency
and simplification. No one will question how redundant unsynchrnized data makes the system
simpler.
.



Relevant Pages

  • Re: IrfanView is not affected by the MS JPEG vulnerability.
    ... >> design and its almost direct connection to virtually all computational ... >> machinery humans have built, the delightful idioms, expressive power, ... written in COBOL that might fill more than a dozen pages. ... limited programming skills, COBOL might be easier to follow. ...
    (rec.photo.digital)
  • Re: superseded by c++?
    ... overly bloated COBOL. ... This in turn tends to encourage cut-and-paste programming, ... just being a competent C programmer is not enough.) ... the key design goals of COBOL is to allow developers to write code that ...
    (comp.lang.c)
  • Re: Why read CLC?
    ... My number 1 is "Design top-down, ... everything top-down, and to trivialize programming. ... the interface", ... It is an echo from the days when COBOL was the only game in town ...
    (comp.lang.cobol)
  • Re: How proprietary is the "COBOL file system"
    ... It's pretty easy to check the "growth" and popularity of COBOL vs the ... to web programming, or even application programming that is component ... Cobol until you learned Java first. ... The language should not be a factor when learning design. ...
    (comp.lang.cobol)
  • Re: mfc pitfalls
    ... In most MFC apps, you are writing code in that kind ... virtual methods usually work better than callbacks for most ... no syntax in the design for function pointers. ... programming in OO environment requires new ...
    (microsoft.public.vc.mfc)