Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: ShadowAce

I became a COBOL programmer back in 1983. One of the arguments an old Assembler guy and I used to have was regarding “efficient” vs “easily maintainable” code. Even back in the 80’s computers had become so fast that we were more concerned about the cost of maintenance rather than the cost of processing.

I rewrote a batch “local long distance toll rating” program and reduced it from 10,500 lines to 5,600 lines. It even had “alter go tos” in it. In the process of rewriting it, I found four problems that, when the SME was notified, turned out were problems they were aware of, but had no idea which program was causing them.

Some sections were accessed through “go to” and were accessed from other sections via “perform”, and sometimes “perform through”. It was a mess.

I had been trained by Boeing in “Pretty code”. It mattered. This was in 1993. I’m shocked I still remember this while I can’t remember where I laid down my phone.


6 posted on 07/17/2025 11:06:48 AM PDT by cuban leaf (2024 is going to be one for the history books, like 1939. And 2025 will be more so, like 1940-1945.)
[ Post Reply | Private Reply | To 3 | View Replies ]


To: cuban leaf
Yeah--I spent the first half of my career in COBOL. Pretty code is Goodtm.

But improvements to compilers should be the priority. It does not seem to be that way these days.

8 posted on 07/17/2025 11:18:23 AM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 6 | View Replies ]

To: cuban leaf

Interesting- a program I was working at BA used Python and Jinja to create templates for C++ modules.


17 posted on 07/17/2025 12:34:44 PM PDT by RitchieAprile (available monkeys looking for the change..)
[ Post Reply | Private Reply | To 6 | View Replies ]

To: cuban leaf

We did a lot macro’s for BASM. It helped a little bit, also subroutines were helpful but not near as neat as functions in ‘C’. Having to save and restore registers was always the biggest issue.


18 posted on 07/17/2025 12:45:38 PM PDT by ImJustAnotherOkie
[ Post Reply | Private Reply | To 6 | View Replies ]

To: cuban leaf
I found four problems that, when the SME was notified, turned out were problems they were aware of, but had no idea which program was causing them.

In my experience. going back into old code to "make it pretty" is often how that kind of problem is found and corrected.

Some sections were accessed through “go to” and were accessed from other sections via “perform”, and sometimes “perform through”. It was a mess.

Sounds like a true coding abomination. Congratulations on sorting out such a thing. A lesser talent might have run screaming for the door with their hair on fire.

How long did it take before the nightmares stopped?

20 posted on 07/17/2025 2:05:47 PM PDT by flamberge (The times, they are a' changing.)
[ Post Reply | Private Reply | To 6 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson