7 ms·
Cobol is alive the same way Latin is. Unless you're sure you can get a job in the Vatican you're screwed if you learn it.
by konjin 6y ago
Cobol is alive the same way Latin is. Unless you're sure you can get a job in the Vatican you're screwed if you learn it.
- gumby 6y agoI understand and agree with your point but hey, I got a lot of benefit from learning Latin, arguably more than I got for learning Lisp (which was is what I used for the first 10 years of my career. It was a fun and quite lucrative period). For graduates of my (very small) high school, Classics was the number one choice of college major and though I'm not in close touch with all of them I never heard any of them claim that they had made a mistake. Cobol is sort of like Lisp* in that regard: the options are quite limited, but as the supply is too you'll probably do better than fine financially. * wow is it painful to write that.
- konjin 6y agoLisp is interesting because it always has a first mover advantage in any field, i.e. I can code up something that does 80% of what I want in 10% of the time of any other language. Cobol's only use is that it's entrenched. Which is why I used the vatican comparison.
- kazinator 6y agoIn a nutshell, Cobol fails to inspire throngs of youngsters to write "toy Cobol" implementations. It is also relatively rare for new languages cite Cobol as an inspiration for any of their features. Cobol has a feature whereby dissimilar structures can be assigned. The structure members which have the same names are identified between the structures and the data is moved accordingly. Or something like that. A programming language which has such a thing could claim to have had that inspired by Cobol. If I ever add that to TXR Lisp, I will be sure to drop a Cobol reference into the documentation. I might have learned about this via Knuth; I think there is a mention of it in some passage in TAOCP.
- gumby 6y ago> Cobol has a feature whereby dissimilar structures can be assigned. The structure members which have the same names are identified between the structures and the data is moved accordingly. Or something like that. This horrifies me on several levels, though I suppose it could be considered a sort "cast to a superclass".
- kazinator 6y agoIt seems to make sense in data-oriented programming. Say you want to create an invoice from a purchase_order or something. They have the same the order number, items, and figures. Just assign one to the other (or use it as a template for construction) to get the common values in, and fill in the rest.
- svat 6y ago> I might have learned about this via Knuth; I think there is a mention of it in some passage in TAOCP. Indeed, see Volume 1, section 2.4 (Multilinked Structures). Page 426 has the example of the statement “MOVE CORRESPONDING DATE OF SALES TO DATE OF PURCHASES”, which, if I understand correctly, means something like “for each field foo in Purchases.Date, copy Purchases.Date.foo into Sales.Date.foo”. The discussion is in the context of what kinds of data structures would be needed to compile such statements, which I guess makes sense considering that the original publisher offer for TAOCP was to write about everything a programmer would need to know to write a (60s-era) compiler. (Coincidentally: I've started attending an online meetup that someone is running for reading TAOCP—we usually read about four pages in the two hours—and this is the very topic that we're going to read tomorrow.)
- aduitsis 6y agoUnless your job is to teach Latin :). Quite a few schools around the world are teaching Latin or even Ancient Greek. Are Latin and Ancient Greek dead? Ostensibly yes. But not useless. Besides teaching, there is a tremendous amount of books and texts written in Latin and Ancient Greek. To study them, one would invariably need to learn the language.
- Koshkin 6y agoMuch of that heritage has been translated into modern languages.
- nescioquid 6y agoI believe this comment betrays a mean ignorance of philology -- a discipline to which I'd expect most hackers would be sympathetic, at least insofar as the art of n-way merges may apply, and a vain commitment to the search for (optimal) objective truth. Texts from the ancient world are handed down to us not from on high, or a single authoritative source (please consider the problem of duplication prior to computers or mimeographs), so considerable effort and erudition is entailed in comparing sources, filling in lacunae (here's a true warrant for what most consider a sesquipedelian word), all of which is predicated on perusing (in vain) an intuition for "pure et clare latine" and a hard-nosed insistence on _attested sources_ on matters of usage and expression. I treasure, uncountably, the continuity afforded by training new generations in "antique" languages and dialects. It addresses a much deeper and more valuable problem than shitting out the next side-hustling platform.
- nescioquid 6y agoLoquendi ars latine vivendius quam lingua ista, ut mihi videtur. Non doctus sum (et plurima menda facio faciamque), et clare non dives causae haec lingua, at vita mea bene ornatur a hac lingua.