25 ms·
An Apology to COBOL: Maybe Old Technology Isn’t the Real Problem
- 908B64B197 6y agoThe language is fine: It's the ecosystem that's not. Nobody in the top 50 CS programs worldwide teaches COBOL. Most of the COBOL programs run on mainframe where it's at least a few k$ to even get a look at the documentation or hardware. So nobody bothers with it. And most (older) programs don't folow modern conventions either. Custom application specific databases? Check. Lost source code/incomplete? Check. No version control? Check. And most folks running these programs are in orgs that are chronically underfunded anyways.
- tyingq 6y agoWell, and the COBOL is also likely running in an ecosystem with similar skill shortages. AS/400, or z/OS, MPE, etc. Things like file transfer, message queues, backups, batch jobs, os specific file formats,and so on won't be in COBOL. They will be in various different proprietary setups.
- monkeycantype 6y agoI'm really curious how the hiring for jobs on legacy mainframes works. My Dad was the consultant IBM hired to fix issues in system/32/34/36 and AS\400 software for customers in Australia. He had a title related to RPG, but I don't know what it was. Growing up we had a (functioning) system/36 and later an AS\400 in the shed. He's never stopped developing, still works as a .Net developer, but hasn't been able to get through the recruiter filter for RPG and cobol jobs, possibly because he hasn't worked with recent generations of these tools, even as he is getting hired for .Net jobs on major systems.
- tyingq 6y ago"He had a title related to RPG, but I don't know what it was." That's pretty neat. RPG is apparently the default high level language used on IBM midrange systems (AS/400). I looked at a beginners tutorial here: https://www.ibm.com/support/pages/coding-rpg-iv-beginners-tutorial https://www.ibm.com/support/pages/coding-rpg-iv-beginners-tu... It seems very similar to other procedural languages, and one of the examples shows a very easy FFI interface to call out to C. They make a wrapper for printf.
- LegitShady 6y ago>Custom application specific databases Not doing COBOL but am working with an ancient application supporting business operations and this is my hell. Also, the databases are likely ancient, outdated, and poorly documented (at least according to my PTSD). "Oh it uses an oracle db? What version? 10? FML - you know that versioncan legally drink in Canada, and the EOL for that product is going to have a bar mitzvah in a couple years, right?"
- p_l 6y agoAt least with IBM the documentation is freely available, but you're pretty SOL if you encounter non-IBM platform. Some have docs, some don't, but finding IBM is at least reasonably easy.
- 908B64B197 6y agoDoesn't matter: the industry has moved-on. They had to make it open decades ago. Now it's too late.
- gnu8 6y agoI don't think that is really accurate; nothing processes transactions like an IBM mainframe. To draw a crude automotive analogy, no matter how much you soup up a truck, it is never going to be a locomotive. It is simply a different scale of machine.
- astrange 6y agoAre there actual objective benchmarks for things like this? Everything you actually see out of IBM is so bad (blockchain 5G AI cloud nonsense) and Moore's law exists, so it's hard to believe this stuff is that good as opposed to just having a really good moat. I am surprised how many government/bank systems run on 50s-70s code; it makes you wonder if we kept in practice writing those kinds of things since then.
- bawolff 6y agoIBM is a shell of what it used to be. I don't know if what the grandparent is saying is true, honestly i highly doubt it, but its unfair to compare old ibm with its current incantation of marketing fluff and bad high priced consultants.
- rbanffy 6y ago> Are there actual objective benchmarks for things like this? Probably not, but they are machines designed for throughput, with a multitude of intelligent peripherals that pipe data in and out of the CPU, which will be running at close to 100% speed all the time. The CPUs themselves are quite impressive (they present at Hot Chips regularly) and each cluster of 4 sockets share almost a gigabyte of L4 cache. Everything is also constantly checked, audited, logged for security and reliability. I wouldn’t be surprised if these machines thoroughly smoked a rack of souped up x86s at a similar budget in transaction processing applications.
- pjmorris 6y agoSounds like a pretty solid moat around the business model.
- throwawayboise 6y agoTop CS programs are not about learning any specific language.
- 908B64B197 6y agoCorrect, but they'll have students coding in a real environment as a side effect of submitting assignments. And nobody does that on mainframes or using COBOL.
- throwawayboise 6y agoDatabase will be DB2, VSAM, or ISAM files. At worst, this is no worse than the seat-of-the-pants noSQL, YAML garbage that underlies many "modern" apps.
- sien 6y agoOr IMS - a pre SQL database. Or Object Star. Or M204. These can be done better than a seat of the pants noSQL database, but sometimes people also got creative in the past too. I've seen all of those databases being used in legacy government departments.
- el-salvador 6y agoA few years ago my country's and other Latin American import and export system still partially run using an MS Dos app. I wouldn't be surprised if they would still be using it now.
- 908B64B197 6y agoAt least MS-DOS is pretty well documented.
- hatmatrix 6y agoMaybe COBOL needs a Racket-type implementation that can be hacked upon to make it cool again.
- musicale 6y agoWell, people still use Lisp, Fortran, BASIC, and C. According to the TIOBE Index, C (1972) is the most popular programming language in April 2021 (followed by Java, Python, C++, C#, Visual Basic, JavaScript and, uh, Assembly Language. Fortran was at #20.) So COBOL is in good company. ;-)
- anthk 6y agoCurrent C is not 72's C, not even ANSI C.
- accelbred 6y agoMy job is writing code in ANSI C89 so cant say that's true everywhere.
- anthk 6y agoAnsi C is fine, but anything before TCPL 2E it's out of question.
- bregma 6y agoCurent object-oriented COBOL 2014 isn't Admiral Hopper's system programming language for writing missile defense systems in in the 1960s either. Your argument doesn't hold.
- pasttense01 6y agoCOBOL was never "Admiral Hopper's system programming language for writing missile defense systems in in the 1960s either." It was always designed for business type applications. Back in the 1960s assembly language was used for writing the missile defense systems and other systems programming [later C and Ada, etc became prevalent].
- ihumanable 6y agoHaving spent some part of my career rewriting COBOL into Java (1.4, so, you know, not cutting edge) I don't really have much good to say about COBOL but I have found the coverage of COBOL so weird in the media. As you very rightly pointed out, no one ever goes, "The networking stack in your smartphone is written in C, a nearly 50 year old programming language" but governments underfund their IT infrastructure and then go, "Welp, nothing we could do, COBOL is sooooo old." The amount of mismanagement that gets deflected away by pointing at COBOL and tapping into the largely justified distaste the development community has for COBOL is a real convenient out for the people responsible for that mismanagement.
- spaetzleesser 6y agoI can’t wait until the Kubernetes/container/Microservice beasts we are building today become legacy in 20 years. Fixing a COBOL application will probably look simple in comparison.
- musicale 6y agoEven more than the efficiency penalties, it's the drastic increase in complexity that makes me want to stay far, far away from microservice architectures.
- gonzo41 6y agoLike all legacy tech. Wrap it in a box of tests don't touch it and just manage the risk down over 20 years. Just like migrating away from a mainframe.
- yaml-ops-guy 6y agoAm I doing myself a disservice by actively avoiding shops that want to go down the k8s road? Asking in interviews questions like “how many namespaces are you managing or expecting to manage” and often times teams are talking about a single microservice and bringing in k8s “just in case” To which I’ve oft said “good luck in your endeavors”
- goodoldneon 6y agoK8s solves a specific set of problems that mid- to large-sized companies face. If the company is big enough to have multiple K8s experts then it can be successful
- jjav 6y ago> Am I doing myself a disservice by actively avoiding shops that want to go down the k8s road? From the resume-driven-development angle, probably. I do the same though. If you prefer to work in a sane environment though, wise choice.
- mathgladiator 6y ago
- snurfer 6y agoAt least there's little chance of suffering ageism as a career COBOL technician.
- yeneek 6y agoSorry to disapoint you. My friend who works in recruiting told me, that one company wouldn't accept perfectly skilled candidate, because he was around the same age as their current COBOL developer. They argumented, that they don't want both of them die around the same time.
- nw05678 6y agoNot really sure that's agism.
- mandelbrotwurst 6y agoIt is at least according to the law, i.e. that you don’t discriminate against protected classes, regardless of why.
- deleted 6y ago[deleted]
- ben509 6y agoNo, you can discriminate on any basis if there's a "reasonable factor" unrelated to that basis. Models and actors, for example, are selected by age, race and sex quite routinely.
- lazide 6y agoEh, that’s not how it’s written I believe? Not that it really applies here, but you can (and have to) discriminate against a protected class if it is a core part of the job requirement that excludes them and there is no reasonable workaround. For instance, if there are no accessible robotic exoskeletons around, discriminating against someone unable to lift 50 lbs because of a physical disability if the job requires someone to lift 50 lbs all day is perfectly legal. If you’re hiring someone to act as a 20 year old, you can discriminate against people because of their inability to look 20 all day long, etc. The problem is such as this case where the company seems to think that people aged the same die at the same time? Which doesn’t seem to have any plausible basis in fact or a reasonable job requirement.
- agumonkey 6y agoIssue with COBOL is not COBOL, it's stretching its use ad absurdum. It's not C or lisp.. whenever you try to make something convoluted.. the language will fight you and it will end up in spaghetti mess (never written cobol, but I've seen enough pages to see). Added bonus, years of code generators on top of old sources.. not pleasant.
- GartzenDeHaes 6y agoI think people tend to under estimate how primitive COBOL is. For example, COBOL does not have variables. Instead, COBOL programs have a raw memory buffer called working storage with named character offsets called records. Both working storage and records can be treated as a raw memory array and it was a common practice to do so. In an analysis of a 5 million line COBOL code base, about 60% of the programs used this feature.
- ydr45 6y agoYou are also somewhat describing C, in one manner of speaking. Yes, C helps you with syntactic approaches to manage stack and locals, but a large amount of written C operates exactly as you describe for a wide, wide variety of useful reasons from embedded to DSP to OS development to performance-sensitive code (when needed). Most assembly language architectures operate the same way. There are strong arguments for the mechanical symmetry and sympathy this provides. Even Erlang or Haskell or JavaScript eventually operate in such an environment, where “variables” are memory offsets parsed a certain way, because that is the inescapable operating model of a modern computer processor. That being hidden from high-level programmers does not make it primitive; it makes it useful, increasingly arcane, valuable knowledge in the right hands. Until one understands this thoroughly, as in knowing when a C union would be useful, as one example, there is always more to learn to improve even high-level programming. Primitive is not the right word to use here. Low-level, perhaps, but the antonym of high-level is very rarely “primitive,” depending on what you’re doing. Yours is an interesting take given the article’s context.
- GartzenDeHaes 6y agoYes. A lot of COBOL compilers are designed to interoperate with C using a struct and unions as an overlay for working storage. It works, but it's not a convenient way or natural way to program in C.
- ydr45 6y agoThat depends on how long your memory is regarding C. Working that way was natural and idiomatic C, once upon a time. It reflects the computer, remember.
- carols10cents 6y ago> “COBOL doesn’t present any security problems because it doesn’t really talk to any resources,” Malik said. “It just says ‘read’ or ‘write.’” Can someone knowledgeable of COBOL expand on this? It sounds... not quite right, like it's missing some surrounding context. I feel like plenty of C's common security problems could be boiled down to "just reads and writes".
- jussij 6y agoI could be wrong here so others can correct my errors as required. My take of that comment is COBOL is very popular on mainframe systems and those mainframe system work around the concept of transactional batch processing. Processing is done in batches and the batches are control bay a transaction manager (i.e. CICS for example). In that model a COBOL program is just a step in the processing and is fully controlled the transaction manager. So in that sense it does just read and write data as one step in a much bigger batch of steps. As such the security is handled by the transaction manager layer.
- Aloha 6y agoCOBOL on System/Z doesnt even know how to do file I/O, you set up the I/O in the JCL job that loads the COBOL application.
- p_l 6y agoThat's just the default way of handling I/O on MVS descendants, but it's not the only one - pretty sure you can allocate and configure new "file open records", but it would make your program less portable ;) and there's rarely a need.
- rbanffy 6y agoThe very concept of files is alien. You have datasets that look like card stacks or tapes. You don’t expect files and directories on machines that predate disks.
- nulbyte 6y agoI see two problems with such a claim. First, a practical one: COBOL programs can call external functions[0]. Second, a theoretical one: Even if a given program does not call external functions, they often read data written by other programs and write data read by other programs. The security implications seem obvious; a bug in a COBOL program can cause undesirable consequences outside of the program. [0]: https://www.ibm.com/docs/en/zos/2.1.0?topic=cbcc-calling-between-c-cobol https://www.ibm.com/docs/en/zos/2.1.0?topic=cbcc-calling-bet...
- cratermoon 6y agoThe article quotes Marianne Bellotti quite a bit, and I recommend her newish book "Kill It With Fire"
- cwyers 6y ago> “COBOL doesn’t present any security problems because it doesn’t really talk to any resources,” Malik said. “It just says ‘read’ or ‘write.’” Well, in a world where "talking to resources" is most of what we want software to do, that doesn't sound great, frankly. You can see how that would cause problems with people who are trying to use a website to interface with an unemployment system written in COBOL, which is the example the article leads off with.
- thinkharderdev 6y agoThank you. That line made my head turn as well. All IO is just saying "read" and "write." And all systems that do any real world work are doing network IO.
- orionblastar 6y agoCOBOL lives on modern technology: https://gnucobol.sourceforge.io/ https://gnucobol.sourceforge.io/ Free as well! Take it for a spin.
- thesecretsquad 6y agoComing from a C#/Java background, discovering Smalltalk was an eye-opening experience regarding supposed "legacy" programming languages. I would argue it's a more expressive language with simpler syntax (I dare say the simplest) and has had language features for decades that Java and C# have only recently added. That's how I learned newer isn't always better. This bit of the article struck a chord with me: "The issue is institutional knowledge — when the people who wrote an application 20 years ago leave, the remaining people often don’t know the application with anything close to the same intimacy." Code readability, testing practices, and the types of patterns employed (or really the types of anti-patterns avoided) are more important than the language used if you expect anyone to be able to maintain a system over time. These are like embedding artifacts of institutional knowledge in your code to guide future maintainers. The choice of language alone doesn't carry any institutional knowledge.
- valenterry 6y ago> Code readability, testing practices, and the types of patterns employed (or really the types of anti-patterns avoided) are more important than the language used This is very true, but also a bit of a fallacy - in particular for unexperienced developers. Saying it in the way you did can create the impression that the choice of the language is not important as long as the mentioned properties are taken care of. But it does not mention that these things are not independent of each other. The choice of language has a huge impact on readability, testing and patterns (all else being equal). I would phrase it the other way around: because code readability, testing practices, etc. are so relevant, it is important to choose a language that makes these things as easy and productive as possible.
- simiones 6y agoI think much more than language syntax and features, it was impressive until ~5-10 years ago just how advanced IDEs for Smalltalk and Lisps were compared to any other language. There has been a massive catch up in recent years, though I think many dynamic languages are still behind on their IDE support compared to these ancient technologies.
- 6y ago
- pjmlp 6y agoA note to remind that latest revision is from 2014 and there are even graphical enviroments, https://www.microfocus.com/en-us/products/visual-cobol/features https://www.microfocus.com/en-us/products/visual-cobol/featu...
- galoisgirl 6y agoThat's Microfocus VisualCOBOL, IBM Enterprise COBOL had a release in 2019: https://www-01.ibm.com/common/ssi/cgi-bin/ssialias?subtype=ca&infotype=an&supplier=897&letternum=ENUS219-404 https://www-01.ibm.com/common/ssi/cgi-bin/ssialias?subtype=c...
- pjmlp 6y ago2014 is the year of ISO standard.
- euske 6y agoThis is probably a dumb question, but what language an early COBOL compiler was written? Is that assembly? How the language runtime was connected to the I/O? Was there even an operating system? COBOL and mainframe seems so arcane to me that I'm not sure where to start understanding the whole stack.
- williesleg 6y agoThe problem isn't the old code, it's the new h1b visa assholes writing shit code. They're gonna turn all of the systems everywhere into the shit hole that is india. Think about that