Learning COBOL: A Journey for the Modern Programmer
monadical.com
Learning COBOL: A Journey for the Modern Programmer
1–10 of 63 posts
Re: Learning COBOL: A Journey for the Modern Programmer
#2https://nymag.com/intelligencer/2020/04/what-is-cobol-what-d...
https://onezero.medium.com/our-government-runs-on-a-60-year-...
Just this one yesterday:
https://www.govtech.com/opinion/An-Apology-to-COBOL-Maybe-Ol...
Re: Learning COBOL: A Journey for the Modern Programmer
#3Re: Learning COBOL: A Journey for the Modern Programmer
#4Re: Learning COBOL: A Journey for the Modern Programmer
#5Interestingly, there is a AI startup that focuses on dev tools for COBOL: https://www.phasechange.ai/
Re: Learning COBOL: A Journey for the Modern Programmer
#6 PERFORM N TIMES
ADD 1 TO I
DIVIDE X2 INTO 1500 GIVING Y
SUBTRACT Y FROM 815 GIVING Y
DIVIDE X1 INTO Y
MOVE X1 TO X2
SUBTRACT Y FROM 108 GIVING X1
DISPLAY I'|'X1
END-PERFORM.
I wonder if someone has written a Python-to-Cobol translator so that you can program using regular math notation and then translate that into wordy Cobol.Re: Learning COBOL: A Journey for the Modern Programmer
#7Re: Learning COBOL: A Journey for the Modern Programmer
#8Re: Learning COBOL: A Journey for the Modern Programmer
#9Looking at COBOL code such as PERFORM N TIMES ADD 1 TO I DIVIDE X2 INTO 1500 GIVING Y SUBTRACT Y FROM 815 GIVING Y DIVIDE X1 INTO Y MOVE X1 TO X2 SUBTRACT Y FROM 108 GIVING X1 DISPLAY I'|'X1 END-PERFORM. I wonder if someone has written a Python-to-Cobol translator so that you can program using regular math notation and then translate that into wordy Cobol.
Re: Learning COBOL: A Journey for the Modern Programmer
#10Looking at COBOL code such as PERFORM N TIMES ADD 1 TO I DIVIDE X2 INTO 1500 GIVING Y SUBTRACT Y FROM 815 GIVING Y DIVIDE X1 INTO Y MOVE X1 TO X2 SUBTRACT Y FROM 108 GIVING X1 DISPLAY I'|'X1 END-PERFORM. I wonder if someone has written a Python-to-Cobol translator so that you can program using regular math notation and then translate that into wordy Cobol.
Yes. But worse. And used in the real world.
Whilst I cannot give all the details for obvious reasons, when I was assisting a particular bank with translating some of their stack from COBOL to modern Fortran, part of the problem was that a large amount of their COBOL code was actually generated.
It wasn't a Pythonish-to-COBOL, though. It was a mix of the C-preprocessor and Bash that generated the COBOL code.
(Problem for me was that all source code was printed, and not stored anywhere digitally, so I had to restore that evil Bash/CPP script just to be able to restore the code I had to retype by hand).