Post #196,891
3/2/05 6:56:50 AM
|

Oh, man.
I feel for you. I hate COBOL. It was designed so that it can be easily read by non-programmers, maybe, but only if it's well written.
Damn.
[link|http://forfree.sytes.net|
] Imric's Tips for Living
- Paranoia Is a Survival Trait
- Pessimists are never disappointed - but sometimes, if they are very lucky, they can be pleasantly surprised...
- Even though everyone is out to get you, it doesn't matter unless you let them win.
|
Nothing is as simple as it seems in the beginning, As hopeless as it seems in the middle, Or as finished as it seems in the end.
|
|
Post #196,943
3/2/05 6:45:05 PM
|

No it wasn't.
Imagine hundreds of special cases like this: \n090396* JJW SKIP RECORDS PER MEMO OF 08-21\n IF IN-RECORD-TYPE = '40' AND\n IN-ITEM-NAME = 'TRVGENNOPHPH' AND\n (IN-MEMBER-NUMBER = '81313973 ' OR '81127887 ' OR\n '81127817 ' OR '81127815 ' OR\n '81127789 ' OR '81127888 ' OR\n '81127462 ' OR '81127101 ' OR\n '81127100 ' OR '81127017 ' OR\n '81127016 ' OR '81127015 ' OR\n '81126833 ' OR '80831411 ' OR\n '80831410 ' OR '80831409 ' OR\n '80831408 ' OR '80831407 ' OR\n '79605765 ' OR '71823026 ' OR\n '70313054 ' OR '69262548 ' OR\n '78644991 ')\n ADD 1 TO WS-SKIPA-COUNT\n GO TO 220-READ-NEXT.\n\n
|
Post #196,945
3/2/05 6:51:39 PM
|

Again, I hate COBOL.
[link|http://forfree.sytes.net|
] Imric's Tips for Living
- Paranoia Is a Survival Trait
- Pessimists are never disappointed - but sometimes, if they are very lucky, they can be pleasantly surprised...
- Even though everyone is out to get you, it doesn't matter unless you let them win.
|
Nothing is as simple as it seems in the beginning, As hopeless as it seems in the middle, Or as finished as it seems in the end.
|
|
Post #196,999
3/3/05 9:33:43 AM
|

Oh, that's not COBOL. I can write that kind of code in Java.
Would you like fries with that?
--
And what are we doing when the two most powerful nations on earth -- America and Israel -- stomp on the elementary rights of human beings?
-- letter to the editor from W. Ostermeier, Liechtenstein
|
Post #197,004
3/3/05 9:49:49 AM
|

That KIND of code, sure.
It was still written in COBOL. I can tell, it sent a shiver down my spine.
[link|http://forfree.sytes.net|
] Imric's Tips for Living
- Paranoia Is a Survival Trait
- Pessimists are never disappointed - but sometimes, if they are very lucky, they can be pleasantly surprised...
- Even though everyone is out to get you, it doesn't matter unless you let them win.
|
Nothing is as simple as it seems in the beginning, As hopeless as it seems in the middle, Or as finished as it seems in the end.
|
|
Post #197,000
3/3/05 9:37:31 AM
|

That looks like some of my QuickBASIC code. :-/
|
Post #198,195
3/12/05 11:06:12 AM
|

Now I see why it's a bear to maintain....
Hardcoded values in programs.
|
Post #198,199
3/12/05 11:55:47 AM
|

Now???
Does that mean you've been coding stuff like that, just not quite as bad?
|
Post #198,201
3/12/05 12:11:41 PM
|

No.. I stopped coding like that 10 years ago....
when I had to maintain someone's crap that was written like that.
But you're right, you have to go through it carefully, analyzing all the pieces and figuring out what you can "safely" extract. It takes months (or years if it's big). But the last time I did one like that was 1997, before Internet time.
|