5 ms·
Worth noting even its creators say JCL is the worst language ever invented.
by rbanffy 6y ago
Worth noting even its creators say JCL is the worst language ever invented.
- ardy42 6y ago> Worth noting even its creators say JCL is the worst language ever invented. I don't dispute that, but I'd kinda like to hear the specifics of their reasoning. I've never actually used JCL, but I'm willing to cut it a little slack because, IIRC, it literally started in the 60s as a way to specify job-execution information on a punched cards for batch processing systems that had as little as 8K of memory. What I've read about very early personal computers with similar amounts of memory makes me think it requires serious compromises to implement anything that actually works on such a system.
- protomyth 6y agoJCL was not exactly fun to write, but M4 gives it a run for its money.
- jeffrallen 6y agodnl And the comment syntax is nuts!
- protomyth 6y agoI think anything that becomes a right of passage (editing the m4 file for sendmail) has to have a mention when discussing bad implementations.
- worewood 6y agoDo you have a source for that? I'd like to show it to some mainframe fanboys at work that praise that abomination
- jonjacky 6y agoFred Brooks led IBM 360 software development. From his oral history at the Computer History Museum [1] (on p.33 of 49): That’s the worst mistake we made was JCL. Yeah. Well the existence of JCL was a mistake. Building it on a card format was a mistake. Building it on assembly language was a mistake. Thinking of it as only six little control cards instead of a language was a mistake so it had no proper sub-routine facilities, no proper branching facilities. It kind of grew. It kind of grew but when you end up with your data definitions doing all the verbiage things because you’ve limited yourself to six verbs that’s a language mistake. We didn’t see it as a language was the fundamental problem. We saw it as a set of control cards. And lo and behold they’re still around, the dusty decks that nobody dare touch because they run and nobody knows what’s inside Incredibly complicated, the keyword parameters and the set goes on and on and on and on ... [1] https://archive.computerhistory.org/resources/access/text/2012/11/102658255-05-01-acc.pdf https://archive.computerhistory.org/resources/access/text/20...
- addicted 6y agoThis does not sound like they are saying the language itself is bad for the users. It sounds more like they are saying it’s a nightmare for the creators of the language to maintain.
- monocasa 6y agoIt sounds to me like they think it's a terrible language for the users because they never put the normal engineering rigor that they would normally for a full new language. It grew 'organically' to it's own (and it's users') detriment.
- rbanffy 6y ago> And lo and behold they’re still around, the dusty decks that nobody dare touch because they run and nobody knows what’s inside Any language that allows its users to do that to themselves is a very bad language. Good languages encourage good practices.
- 6y ago
- js8 6y agoLike everything on mainframe, JCL is old and has lots of warts. But it is, essentially, what is known today as "infrastructure as code".
- kodah 6y agoAs someone who doesn't know what JCL is, this is an enlightening statement. Anyone that's used IaC oriented languages know they suck too.
- commandlinefan 6y ago> old and has lots of warts It was still the worst programming language ever created even when it was new and wart free.
- rbanffy 6y agoSome programs have warts before the first line of code is written.
- Aloha 6y agoI had to learn some JCL to do the mastering the mainframe challenge, other than the syntax being really odd, its not awful.
- bobbydreamer 6y agoYeah. JCLs been that way for long time. That's why it's recommended not to keep JCLs very creative. It should be easy for the operator to understand what to do if job fails. Re-run from top or restart from particular step. If you don't make thing complicated, it's easy.
- rbanffy 6y ago> That's why it's recommended not to keep JCLs very creative. That's solid advice for any language. Clever code actually isn't.
- throwawayboise 6y agoI worked with mainframes long ago, for about a year. When it came to JCL, the advice I got and what everyone I worked with did, was to copy working JCL and modify it. I never wrote it from scratch, nor did I know anyone who did.
- NikolaeVarius 6y agoI challenge them to try out DOORS DXl