9 ms·
COBOL: Thinking about it wrong
- nyerp 4y agoPopup ad with 15 second delay was too annoying. Didn't read the article.
- smarks 4y agoClick on the link to skip the delay.
- ElfinTrousers 4y agoEven after a 44% bump, the salaries for COBOL positions aren't impressive compared to other specialties. And that's before the quality-of-life question.
- ptero 4y agoThe quality of life may not be bad at all. I have a relative who maintains old code for a public utility (I think most of it is PL/1). While the salary is not FAANG-like it is OK and the job security and the sane 9-5 schedule with the opportunity to work remotely are pretty big benefits for someone on the wrong side of 60. My 2c.
- kjs3 4y agoYeah...I know quite a few Cobol programmers. They make good, not extravagant, money. But they also have low job stress, no 'crunch mode'. Production changes are very carefully considered and controlled because of the consequences of botching one. No 'move fast and break things'. They're home with the family at a reasonable time every day. So it's a tradeoff, and a good one for many people.
- MelvinButtsESQ 4y agoCOBOL is easy. JCL is the hard part.
- cratermoon 4y agoCOBOL is good for dealing with money because it was built with the sort of numeric types required as a natural part of the language. Popular programming languages treat them as an afterthought and provide awkward library functions, if they have anything at all.
- AndrewDucker 4y agoC# has Decimal built in. Enough precision for any money-related calculation.
- ElectricalUnion 4y agoLots of languages have Decimals (and arbitrary precision integers for another example) builtin, but they're usually never the default.
- cratermoon 4y agoWhich of the top 10 languages from the Tiobe index have a decimal type baked* into the language? * Is a type in the standard library "baked in"? I lean towards no, but I'll give the language A for effort anyway.
- AndrewDucker 4y ago1) Python - added to the standard library in 2003. 2) C - no. 3) Java - BigDecimal in the standard library. 4) C++ - no. 5) C# - built in. 6) VB - Currency type kinda does what you'd want, but doesn't scale down very far. 7) Javascript - no. (Use https://github.com/MikeMcl/bignumber.js) 8) SQL - Yes. But check your dialect. 9) PHP - No. 10) Go - No. (Use https://pkg.go.dev/github.com/shopspring/decimal)
- JohnFen 4y agoshiver That's a fact. A couple of years ago, I had to brush off my JCL skills for a job. It reminded me of why I was so happy when I didn't have to use JCL anymore.
- LangIsAllWeNeed 4y agoYa Cobol is the future!
- W-Stool 4y agoPeople that have not been exposed to legacy industries (banking, insurance, etc) would simply not believe how many of these large/huge companies run the majority of their business on an IBM mainframe running COBOL code. I've seen it firsthand and I didn't believe it. For them, it just works.
- chocolatelab82 4y agoOne of the slides by some IBM consultants presenting at the financial firm I used to work stated "Western Civilization runs on the mainframe." Considering how much banks still use mainframes, this is probably true.
- LeonenTheDK 4y agoI recently listened to a podcast episode which featured a gentleman who teaches mainframe related things at a university in the US and is deeply involved with the Open Mainframe Project. His statistic was 95% of financial transactions touch a mainframe somewhere along the way. From what I know, considering it's not "just" banks but pretty much any long running financial business (IE insurance companies), I believe it's one of the most used but least talked about technologies out there.
- mrobins 4y agoCan confirm. In a past life I had the pleasure of auditing the COBOL code of a major US insurer. They had a separate program for every line of service (Auto/GL/etc.) that would read every claim record and produce their actuarial tables. It was pretty fascinating to see how it all came together. Also despite the languages age after analyzing it for a length of time it was clearly elegant for that type of financial processing.
- JohnFen 4y agoNot just financial businesses. For instance, I worked on a product also used by one of the largest package shipping companies. A couple of their key systems consisted of mainframes running COBOL code.
- moomin 4y agoI'm pretty sure I'm thinking about it right. How much COBOL code can run on a regular Ubuntu machine? What's the package manager for OSS packages? What test frameworks are in common use? You know you're in trouble when "There's a syntax file for VSCode." is the height of your modernity.
- bitwize 4y ago> How much COBOL code can run on a regular Ubuntu machine? All of it. GNU Cobol exists, as do proprietary solutions from companies like Micro Focus that target the JVM and .NET (which is what you're looking for for a real COBOL solution). But why is it so important to run COBOL on Ubuntu? If you need Linux, create a Linux LPAR on your mainframe. > What's the package manager for OSS packages? COBOL code runs Western civilization. Not having muh NPM is a feature, not a bug. > You know you're in trouble when "There's a syntax file for VSCode." is the height of your modernity. Dude. COBOL has entire modern IDEs written for it.
- VulgarExigency 4y agoThere are several programming languages with package managers that work better than NPM. Not having one is not a positive no matter how you try to spin it.
- JohnFen 4y agoI think this is a point that reasonable people can disagree about.
- YeGoblynQueenne 4y agoWhat exactly would you package manage if you had a package manager for COBOL? You will never get paid to work on any COBOL code that isn't proprietary, and sealed with the blood of innocent victims. You are not going to be installing the latest hot js framework on a mainframe.
- msla 4y ago
- benjaminpv 4y agoCOBOL was actually in the CS curriculum for my university, a fact that several of my friends brought up when the 'COVID is prompting a real need for COBOL programmers in light of the need to change benefits rules and unemployment!' stories were a regular feature on the nightly news. 'You should do it, man!' Yeah, sure. I'd already suffered through the liquidation of my entire department in 2018, the prospect of the heat around COBOL dying down and facing that once again with the additional stain of 'oh, what've you been doing? Cool, popular JS frameworks? No, COBOL? Pass.' on my CV during my next round of interviews didn't seem at all appealing. That mentality should set the expectation for anyone looking into a COBOL job. It's not just this job, it's the next one.
- haskellandchill 4y agoYou don't really want to work with those people anyway. Some hiring managers will see it as a cool thing. As long as you do a project in whatever you want to target next to stay fresh you shouldn't have any problems except from those who hire superficially.
- JohnFen 4y ago> the additional stain of 'oh, what've you been doing? Cool, popular JS frameworks? No, COBOL? Pass.' on my CV That's pretty much the last thing that I'd worry about. A company that evaluates potential hires that way is not a company that's worth working for, in my opinion. And most companies I've encountered wouldn't think that way.
- deleted 4y ago[deleted]
- SamuelAdams 4y agoYou would be surprised. Don’t get me wrong I would love for companies to not show prejudice based on a candidate’s current tech stack. However once you are outside of the SV bubble you will notice a lot of companies dismiss candidates based on their tech stack. The only time I’ve ever seen an inexperienced tech stack hire is from personal referrals from someone already working at said company.
- mattnewton 4y agoI have never written cobol, but I wonder if there is a market for a COBOL transpiler to something like C#/Java/typescript, or even python would be a viable business?
- yobbo 4y agoI suspect it's not the language itself but the systems already in place. Transpiling to something else wouldn't help.
- NeutralForest 4y agoIt's a mix of both, I know that some companies do make a good living writing transpilers to languages like Java or C#. But it also require lots of business knowledge to keep track of the changes so you're definitely right in that aspect.
- JohnFen 4y agoYes. I know of companies that run mainframe emulators purely to keep using the existing COBOL codebase that was written for them. They go to that level of weirdness because replacing the existing codebase would not only be much more expensive, but would introduce a great deal of risk that they aren't willing to take on. A transpiler would not really address the needs of that sort of company.
- sidpatil 4y agoThe US DoD recently migrated some of their COBOL systems to AWS GovCloud. One of the steps was automated translation of COBOL to Java. https://tsri.com/news-blog/u-s-department-of-defense-mainframe-cobol-to-java-on-aws https://tsri.com/news-blog/u-s-department-of-defense-mainfra...
- cutler 4y agoSo it's true - Java is the new COBOL.
- GartzenDeHaes 4y ago
- scarygliders 4y agoAs someone who learned COBOL in British college in the late 1980's, I can confirm that the language was/is quite readable and accessible. I still have the COBOL textbook from back then; Andrew Parkin, COBOL For Students, second edition, ISBN 0-7131-3477-1 I distinctly remember at the time really enjoying learning to code in it - it spoke to my logical-thinking (but quite young) brain a lot. However, after college, for whatever reason I didn't use that COBOL knowledge at all. If only I knew then what I know today - that COBOL is still somewhat in demand and that if only I kept in with it over the years, I could quite probably have made quite a good living from it. Young me was quite naive and silly ;)
- yobbo 4y ago> with 800 billion lines running in production systems daily Unrealistic. This would be equivalent to 100.000 linux kernels.
- Hardwired8976 4y agonot really, cobol is really verbose and there is heavy use of macros
- hiAndrewQuinn 4y agoHow would one even go about finding opportunities to program COBOL professionally? I feel like I'd actually go for it if I was able to do it remote, but mainframes conjure up this image for me of sitting next to a tiny green terminal somewhere deep underground, leashed to The Beast or Blue Giant or some other whimsically-named thing.
- greenyoda 4y agoThere's lots of software for emulating IBM 3270 terminals over TCP/IP using the tn3270 protocol. https://en.wikipedia.org/wiki/IBM_3270#Telnet_3270 https://en.wikipedia.org/wiki/IBM_3270#Telnet_3270
- BlandDuck 4y agoI have seen the COBOL issue come up a number of times, and I just don't get it. Am I thinking about this wrong? COBOL seems to be a straightforward language by modern standards. Any programmer with experience with imperative languages should be able to pick it up. Learning the language itself cannot be a real barrier. The barrier seems to be the enormous amount of legacy code that has to be digested and understood. But wouldn't that barrier be pretty much the same regardless of the programming language. I mean, if it were 800 billion lines of Perl code, would that make the problem any easier? So isn't the real problem that we have 800 billion lines of legacy code that needs to be understood and maintained; it just happens to be written in COBOL?
- JohnFen 4y agoYou're not thinking wrong. COBOL is, compared to modern languages, very straightforward. It's also very different, though, and so it can feel alien to programmers who only know the new stuff.
- rbanffy 4y agoNo direct experience with either, but, from what I understand, a COBOL application written to run in CICS looks a lot like a serverless app, with the difference that the company owns the multi-million dollar server.
- JohnFen 4y agoThis is sorta true. CICS is a whole different topic all by itself, and is independent of COBOL. I've written CICS applications in COBOL, C, C++ and even Java.
- altacc 4y agoYou raise a good point. I can read COBOL to get an idea of what it is doing and how it is structured takes a little getting used to, but so do most languages. However, in my company (insurance) we have 3 COBOL systems (thanks to mergers) and one is on a rapid track for decommissioning not because it is COBOL, but because it is COBOL written in an obscure framework that was never popular and also coded in a non-English language, requiring knowledge of that language to understand the business logic. We can outsource some mainframe maintenance but not that one. The other mainframes will be around for at least the next 10/15 years.
- heisenbit 4y ago1) popup 2) only opinion no meat 3) paper pointed to is a one pager with stats incl. numbers from stackoverflow Not saying that there is not an argument to be made that the Cobol/Mainfram approach has it advantages. It is a straight jacket but some applications are really efficient compared with what is done these days.
- aeschinder 4y agoIn the 1980s, COBOL was taught in my computer database class. I actually used my COBOL skills at the federal government Veteran's Affairs job I had for several years after college. If you are always chasing the latest language and get high on syntactic sugar, you are likely going to be a problem for management if you work at an IT shop because you'll be writing important one-off programs in various languages that people after you will be required to support or rewrite. John Carmack wanted to hire only C++ devs when he was at Oculus but had to relent and hire JavaScipt bros because of Meta. TCO isn't just a question on your business class exam.
- SoftAnnaLee 4y agoI keep hearing about COBOL and how there is demand for it. But I'm wondering if there are any avenues to learning how to write COBOL and get experience writing the kind of code that these industries require?
- jimt1234 4y agoMy mother built her career on COBOL from the mid-70s to the late-90s. She's retired now, but still talks about what a great language it is. She tried learning Java in the late-90s, toward the end of her career, but hated it. "What's an object? Everything? Everything is an object? That's just dumb." LOL And yeah, she still gets offers for consulting work, but she wants no part of it. She's done working.
- drewcoo 4y agoCOBOL (COmmon Business-Oriented Language) was designed by Grace Hopper to make it easier for business folks to write code. https://www.zdnet.com/article/cobol-grace-hoppers-gift-to-the-world-of-business/ https://www.zdnet.com/article/cobol-grace-hoppers-gift-to-th... That goal a flop, so programmers had to take over. Wasn't there a Cucumber/Gherkin story here really recently? That grew out of Fit/Fitnesse (from Ward Cunningham of "tech debt" and "the wiki" fame), which was intended to have business folks write test cases to define how the delivered software would work. And as many people in the Cuke threads pointed out, Cuke fails, too. (As did Fitnesse.) https://en.wikipedia.org/wiki/FitNesse https://en.wikipedia.org/wiki/FitNesse Bottom line: There is a ridiculous impedance mismatch between the business side of the house and engineering. Engineering attempts to create a programming language for MBAs is not a solution, but an expression of that mismatch.
- kps 4y ago> COBOL was designed by Grace Hopper to make it easier for business folks to write code. Not quite; it (FLOW-MATIC, rather) was designed so that senior management could feel that they could read their organization's code. > I suggest a reply to those who would like data processing people to use mathematical symbols that they make the first attempt to teach those symbols to vice-presidents or a colonel or admiral. I assure you that I tried it.
- tragomaskhalos 4y agoThere is always money to be made by peddling the idea that you can bypass those pesky programmers and get Don from accounts to write his own applications instead. See also: most low-code / visual programming environments.
- jmclnx 4y ago> That last application garnered plenty of attention during the pandemic when state UI systems running COBOL were unable to handle the unprecedented flood of new applicants COBOL was not the issue, it was all the "webizied" front end developed for people to use via a browser that had the issues. A couple of articles came out with details that, as usual, the mainstream press ignored.
- 1bent 4y agoMy mom learned COBOL while she was getting a degree in accounting; according to her, the language is such a clear mapping from narrative jargon usage in accounting and bookkeeping that she was using features her class hadn't covered, in test solutions, without realizing it, until her teacher asked if she was studying outside materials. My conclusion was, if ever I want to do business data (transaction) processing, I'll learn it. I also programmed a mainframe, with JCL on punch cards, in assembler and PL/1, in college; I'm glad I did; without that experience it might be hard to appreciate how radical and revolutionary unix was.
- hosh 4y agoI grew up hearing COBOL as a joke language, until one day, I learned that COBOL has the most accurate arbitrary precision math, surpassing modern languages. This is crucial for financial applications. When I then think about how it doesn’t seem any more verbose than SQL, COBOL seems to me like a very respectable language. Somewhere early in my career, I worked with an accounting app that thought a double float is good enough for a ledger. It was not. We spent too much time trying to track down discrepancies when closing the book for the year, only to find out that a double float is not precise enough for bookkeeping. Lesson learned.
- valenterry 4y ago> I learned that COBOL has the most accurate arbitrary precision math, surpassing modern languages. Maybe that was true 20 years ago.
- dragonwriter 4y agoIt was not, but for the most part languages don't default to arbitrary precision (i.e., sinple mathematical operators with decimal literals typically gets you binary floating point, not arbitrary precision decimal), even if they have arbitrary precision available at the language or standard library level.
- hosh 4y agoGuess I was wrong. It’s fixed point, and also what you said — COBOL defaults to it. It still makes it easier to write software that need to do a lot of calculations like that. https://medium.com/the-technical-archaeologist/is-cobol-holding-you-hostage-with-math-5498c0eb428b https://medium.com/the-technical-archaeologist/is-cobol-hold...
- valenterry 4y agoYeah so that article also mentions something that I'd like to highlight: > Overall we assume that the reason so much of civil society runs on COBOL is a combination of inertia and shortsightedness. Well, there's more to it. Unfortunately, the better a programming language is, the easier it is to understand, change and also replace code. And in reverse, a bad language is therefore harder to replace and more likely to stay. Mind that I'm not saying that cobol is bad or was a bad choice. This is really a general thing, but I believe it applies to cobol at the current time.
- santoshalper 4y agoThis article is extremely disingenous. * Can you build "modern" style software in COBOL? - Sort of yes. * Should you build a new system today using COBOL? - Absolutely not. * Is ANY of the COBOL code you run into in the wild going to be architected in a recognizable way to modern sofware engineers? - lol no.
- xiaodai 4y agoI would do cobol if it's 2000 a day
- skissane 4y agoCOBOL (or at least some of its dialects) has some really weird features I’ve never seen anywhere else. For example, only just the other day I learned that IBM mainframe COBOL has a “REVERSED” clause on its OPEN statement, which opens an input file for reading backwards. Apparently it only works for fixed length record format files, and only for files stored on tape. It relies on the fact that the (non-SCSI) IBM mainframe tape command set has a “READ BACKWARDS” command which reads blocks off a tape in reverse order, by playing it backwards. Back in the day, memory was very small, and hard disks were unavailable or very limited in capacity, so many COBOL programs used tapes as input, output, and temporary storage. OPEN INPUT REVERSED meant you could write out a temporary file to a tape, close it, and then immediately re-open it to start reading it back in (albeit backwards), without having to wait for the tape to rewind in between. It was particularly used to speed up external sorting algorithms (although those were more commonly done in assembler than COBOL, to maximise efficiency)
- jasomill 4y agoIBM 3590 and 3592 SCSI drives support the "READ REVERSE" SCSI command[1] which (in variable-block transfer mode) is equivalent to the "READ BACKWARD" channel command. For application details, see Knuth volume 3 [2], which even has a fold-out chart illustrating tape (and tape operator) movements involved in various sorting algorithms[3]. In brief, reading backwards allows you to use tape as a stack. [1] https://www.ibm.com/support/pages/system/files/inline-files/$FILE/3592%20SCSI%20Reference%20(EXTERNAL)_3.pdf#page=194 https://www.ibm.com/support/pages/system/files/inline-files/... [2] https://archive.org/details/B-001-001-250/page/299/mode/1up https://archive.org/details/B-001-001-250/page/299/mode/1up [3] https://archive.org/details/B-001-001-250/page/n356/mode/1up https://archive.org/details/B-001-001-250/page/n356/mode/1up
- taraharris 4y agoBut I don't think about COBOL at all, and neither should you. The problems that legacy banks, airlines and government institutions have are not my problems. The management class doesn't want to hear this. Their only goal is to lower maintenance costs on their legacy systems by bringing in new people to ensure lower wages, so they fund all this nonsense about this very dead language. "What is it with these nerds that don't want to write COBOL code? It's all just coding, isn't it?" You know they're desperate when they resort to astroturfing.