HACKER Q&A
📣 azhenley

Any open source COBOL projects?


I'm finding it very difficult to find resources for learning COBOL. In fact, I can't find any examples of non-trivial programs written in COBOL. GitHub searches seem to just show homework assignments or benchmarks.

Does anyone know of any out there?


  👤 simonblack Accepted Answer ✓
The way to learn any language is to give yourself a project. Any project, it doesn't matter what. You will throw that 'learning one' away anyway, because the more-learned you will see how primitive it is, and rewrite it several times till you are (pretty much) satisfied with it.

A simple enough project, but one that is sort of useful, is to use your own income/expenditure information to produce the sort of information that you (or your accountant) will require to work out your taxes.

That's one of the projects I have used anyway. I first wrote mine in BASIC, then in COBOL, and my latest in a mixture of C and SQL.


👤 cpach
Interesting!

There are some COBOL resources at the Internet Archive: https://archive.org/search.php?query=cobol

Not sure if they have actual COBOL application code though.

You might also find interesting stuff at Bitsavers: https://www.google.com/search?q=bitsavers.org

Best of luck!