Skip to main content

benefits of object and frameworks

  • May 22, 2020
  • 1 reply
  • 0 views

Heather Caldwell

Can you give us an example of the benefits of using objects and Frameworks in our existing programs?


#VisualCOBOLUniverse2020

1 reply

  • May 22, 2020

Can you give us an example of the benefits of using objects and Frameworks in our existing programs?


#VisualCOBOLUniverse2020

You bet!  In COBOL we make a lot of use of arrays.  A COBOL array is no different than a C# array or a Java array.  But – the .Net and Java Frameworks contain Collection classes that are like arrays on steroids.  Much of the programming effort we do to utilize arrays can be eliminated by creating a List collection object, or a Dictionary collection object and using it instead of a plain array.  You can do this in your existing COBOL programs with a single line of code.  Inserting/deleting/sorting/searching can then be done utilizing proven, tested Framework code rather than having to write, test, and maintain our own implementation.