News for hackers. Stuff that matters.
Re:The Beauty of COBOL (2018) by the_af on Friday October 18, 2019 @09:04AM (#21291007)
I still have nightmares about COBOL. "Beauty" and "COBOL" do not mix in the same sentence. Forget this article, it's not a nice language at all. I'm not going to crap all over the language -- I understand the requirements of its time -- but now you'd have to be crazy to want to use it.

It's not even true that COBOL programmers earn a lot of money because it's a niche and there are few programmers still writing it and banks are in a hurry to hire them. That's not my experience: all the COBOL programmers I know are mostly old guys earning average/below average salaries. And dealing with banks and similar institutions, which is a hell of its own.

If you like writing software and enjoy nice programming languages, COBOL is not for you. If you want to earn a lot of money or work on interesting projects, COBOL is not for you. If you're a bank manager, maybe COBOL is for you.

Re:The Beauty of COBOL (2018) by commandlinefan on Friday October 18, 2019 @10:58AM (#21291914)
> "Beauty" and "COBOL" do not mix in the same sentence.

The author is falling into the trap of assuming that “easy to learn” = “optimal”. COBOL is extremely easy to learn; you can learn it in a few days. That simplicity comes at a price: you outgrow it _really fast_. You can’t even write a generic sort routine or a linked list data structure in COBOL; the language just doesn’t allow that sort of reuse. I thought it was almost comical that the author had so little experience with COBOL that he wrote that it allowed you to not repeat yourself: the painful experience of rewriting things like sort routines every time you had a different comparison condition or rewriting linked list traversal code when you had a structure with a different schema than the structure that you last wrote linked list traversal code for was the reason everybody started abandoning COBOL for more flexible languages like C (even Pascal was better).

Re:The Beauty of COBOL (2018) by vajrabum on Friday October 18, 2019 @12:04PM (#21292511)
I won't argue the merits of COBOL. I stopped doing it for a living 35 years ago for a reason, but sort is not a good example. COBOL has generic SORT and MERGE facilities built in as verbs. In an IBM environment (i.e. writing real applications) you'd be hard pressed to build something that has better performance than what's provided out of the box.
Re:The Beauty of COBOL (2018) by marktangotango on Friday October 18, 2019 @12:08PM (#21292551)
Those were good for working with flat files and nothing else!
Re:The Beauty of COBOL (2018) by vajrabum on Friday October 18, 2019 @03:51PM (#21294541)
You don't need sorting for VSAM or DB2 or their non-IBM equivalents.
Re:The Beauty of COBOL (2018) by marktangotango on Friday October 18, 2019 @12:06PM (#21292531)
Exactly right; all the Cobol jobs went offshore over the past two decades. There are 1,000s of former Cobol developers in my area alone. Cobol is a cost center companies seek to minimize.

All this talk about Cobol and nothing about it's characteristics that make it truly remarkable: all memory is statically allocated, there is no dynamic memory allocation. Makes streaming xml processing a true nightmare, but also make Cobol applications immune to entire classes of security vulnerabilities and exploits that plague every other language. Also, make performance reliable and easy to reason about with none of the "departures" common in other runtimes (ie thread pool exhaustion, stack overflow errors, heap exhaustion errors). Really dependable from a day to day management perspective.

Re:The Beauty of COBOL (2018) by ajna91 on Friday October 18, 2019 @02:03PM (#21293634)
There's this rather sad thread from a decade back of cobol developers discussing being stranded after the jobs dried up.

https://www.indeed.com/forum/job/Cobol-Developer/other-non-c...