Yes, somewhat for fun and somewhat for work. There are online cobol fiddle environments that can help you. Data is stored in something like a c Union on a buffer, and the programming style is pre-procedural, sort of like a very easy assembly language. The language is very wordy, and there aren't a lot of standard libraries. It is ok for storing and updating records, but writing complex algorithms would be slow
Ask HN: Has anyone here learned COBOL for fun?
21–30 of 82 posts
Re: Ask HN: Has anyone here learned COBOL for fun?
#22Re: Ask HN: Has anyone here learned COBOL for fun?
#23Assembler is more rewarding as an intellectual exercise. Unless you really want to do rote record processing, in which case knock yourself out.
Re: Ask HN: Has anyone here learned COBOL for fun?
#24I've actually seen some of the COBOL that underpins these financial entities. Typically the code base and writing style has morphed into a number of nearly incompatible dialects over the decades it has ran at these places. I've never really learned enough about it to understand copybooks and the other functions/file types it has.
Re: Ask HN: Has anyone here learned COBOL for fun?
#25http://www.coboloncogs.org/INDEX.HTM
Haven't used it in anger though.
Re: Ask HN: Has anyone here learned COBOL for fun?
#26Like with most languages, learning the language is easy. Learning all the libraries, especially the undocumented proprietary ones, is the hard part.
In one word - minefield!
Re: Ask HN: Has anyone here learned COBOL for fun?
#27I have programmed in COBOL on ICL and IBM computers. You don't just program in COBOL, you need to learn SQL, JCL, TSO, CICS, etc. Maybe it is simpler with MicroFocus (or similar) COBOL on Linux, haven't ventured there.
Re: Ask HN: Has anyone here learned COBOL for fun?
#28I had to deal with a bunch of mainframes in a previous job and tried to learn a bit of COBOL. One interesting thing I learned early on was that programs are almost never written exclusively in COBOL. The language isn't Turing complete (by design), so a significant portion of a program's logic will be captured in the JCL (Job Control Language) script that configures how the program will run and orchestrates multiple p…
Re: Ask HN: Has anyone here learned COBOL for fun?
#29I had to deal with a bunch of mainframes in a previous job and tried to learn a bit of COBOL. One interesting thing I learned early on was that programs are almost never written exclusively in COBOL. The language isn't Turing complete (by design), so a significant portion of a program's logic will be captured in the JCL (Job Control Language) script that configures how the program will run and orchestrates multiple p…
In non-mainframe realms, while the good news is that there's no JCL, the bad news is that individuals and companies have pretty much reinvented the JCL wheel over and over again, creating their own hodgepodge of unique, non-standard efforts to deliver smidgeons of similar functionality hacked together from a mix of shell scripting, environment variables, YAML, JSON, other config files, manual prompting, third-party libraries and software, and even hard-coding resources in programs.
Grass is always greener, as they say. :-)
https://www-40.ibm.com/servers/resourcelink/svc00100.nsf/pag...
Re: Ask HN: Has anyone here learned COBOL for fun?
#30Learn COBOL in a day
https://news.ycombinator.com/item?id=37388560
COBOL gets new life in the cloud thanks to Watsonx and AI