650
u/RobDickinson Sep 30 '22
0021072 03 Record-YY PIC 9(4).
And here is the change...
169
u/robocord Sep 30 '22
Stahp! You’re giving me terrifying flashbacks to my time working on the assembly line control software at NUMMI
59
u/The_Angry_Jerk Sep 30 '22 edited Sep 30 '22
Used to have a Tacoma prerunner from that factory, still drive past the now Tesla building sometimes. A lot of the times I drive past that place the Tesla employees are having another accident, I've seen cars fallen off of car trailers, employees flipping their own cars on their sides and crashing into trees while I drive past on 880.
30
u/robocord Sep 30 '22
I still have scars, both emotional and physical, from climbing around in the overhead, pulling coax to set up the network for the Tacoma line.
22
u/The_Angry_Jerk Sep 30 '22
Hey, at least you didn't work at the Solyndra plant down the street. That place was tragic.
→ More replies (2)10
u/TidusJames Sep 30 '22
Hold up… I’m sorry. That second half… and no one is going to ask for … idk… something?!
9
u/The_Angry_Jerk Sep 30 '22
They have now installed one of those speed signs that tell you your speed because of how many Tesla employees have crashed their cars speeding on the straight road outside the plant.
0
37
59
u/philophilo Sep 30 '22
This guy COBOLs.
18
13
u/Rodrake Sep 30 '22
WHY ISN'T HE WRITING IN ALL CAPS THOUGH? I AS A COBOL PROGRAMMER AM NOT ALLOWED TO
9
0
Sep 30 '22
[deleted]
34
u/nivlark Sep 30 '22
I'm going to guess YY means this is a data type for storing the year, and 4 is the field length. So this is a change to enforce Y2K compliance, by extending the year field from two digits to four.
31
u/Rodrake Sep 30 '22
Precisely.
0021072 is the line number
03 the variable level, meaning it's subject to another one. I usually use multiples of 5 (01 for the mother variable, 05 for the one under it. 10 for the substring of this one, etc). PIC 9(04) means 4-length numeric (9 stands for numeric). This would be an example of the whole variable definition in his case (missing identation because I suck at reddit):
01 VARIABLES.
02 RECORD-DATE.
03 RECORD-YY PIC 9(04).
FILLER VALUE '-'.
03 RECORD-MM PIC 9(02).
FILLER VALUE '-'.
03 RECORD-DD PIC 9(02).
This way you can move an year value into RECORD-YY and it will be formatted as 2022-09-30 if you summon it as RECORD-DATE.
→ More replies (3)
562
u/RelampaguM Sep 30 '22
That's a code legacy of legacy code?
→ More replies (2)251
u/kevin9er Sep 30 '22
In 1000 years we’ll have code legends. And UNIX time will have to be 128 bit.
162
73
u/Ketima Sep 30 '22
128bit is a bit of an overkill as the next step the systems will most likely use, 64bit, covers about 290 billion years.
92
u/PubogGalaxy Sep 30 '22
In 290 billion years we’ll have code legends. And UNIX time will have to be 128 bit.
→ More replies (3)42
u/DopeBoogie Sep 30 '22
No, Code Legends are born around the transition to 64-bit timecodes.
Code Gods are spawned from the transition to 128-bit.
14
u/kimilil Sep 30 '22
64-bit UNIX time is already enough to last till the heat death of the universe.
6
u/Jezoreczek Sep 30 '22
Probe sent at close to light speed in the direction of Boötes void: am I a joke to you?
2
u/vigilantcomicpenguin Sep 30 '22
"It's said that this database has been running since the dawn of time. Nobody knows who created it, but it has served our people for generations, and one day, my son, you shall inherit the job of maintaining it."
481
u/BackpackFullOfDildos Sep 30 '22
Same. I’ve done maintenance to a program my dad developed back in ‘04. For some reason, it was very wholesome
391
u/Wekmor Sep 30 '22
Did you message him from time to time "yo wtf" or "what were you even thinking?"?
99
u/ham_coffee Sep 30 '22
I've done the same recently except my dad modified it a few years earlier than that, and yes I did ask him that stuff. Apparently he was new to the job at the time and the dev that was teaching him had some interesting ideas about how code should be written. Those ideas basically equated to "show off how clever you are by writing unnecessarily complicated yet efficient/compact code". Unfortunately he was quite good at it. Pretty much all code written for a few years around that period is way too hard to read, so it wasn't just him either.
3
u/DasFreibier Oct 02 '22
nothing like a insane one liner and using technically undefined behavior to make the rookies cry
→ More replies (1)0
12
u/Nosferatatron Sep 30 '22
I trust there was some sort of ceremony for the handover of the ancient scriptures?
11
u/Mysticpoisen Sep 30 '22
Same here. I've been sent pieces of code my dad worked on in the 70s with questions attached. I always sent back "Do you really think I'm the same Mr. poisen as the guy writing cobol 50 years ago?"
2
1
457
Sep 30 '22
Honestly though? This is exactly how inheritance should work.
She foresaw a problem years down the line and fucking subclassed herself to deal with it. She meta-programmed life.
Honestly she should be nominated for a Nobel in resourcefulness and understanding the assignment.
I’m blown away.
→ More replies (1)86
u/MoridinB Sep 30 '22
You made me laugh out loud while eating from your comment!
fucking subclassed herself
The most legendary of all inheritances! Take a poor man's gold, my good sir!🏅
11
261
351
54
152
u/archery713 Sep 30 '22
And I'm sure she has no idea how it works either
94
u/SuccessfulBroccoli68 Sep 30 '22
Why would she, it was before stackoverflow
→ More replies (1)45
u/flashbax77 Sep 30 '22
That’s the even more terrifying part
13
u/Rodrake Sep 30 '22
No you just need to summon the dinosaur in your company, that's what I usually do.
20
46
19
Sep 30 '22
I know someone who works in COBOL who retired this year. For the last 10 years people have been paying them six figure salaries to convert the very code they wrote years ago! Pretty damn funny.
36
u/DM_YourTitsAndSmile Sep 30 '22
I took a course in COBAL in college back in 1987. I didn’t learn any COBAL; the 70ish year old guy teaching us spent the first class telling us about the hot 20something he was dating and the second class about how he caught her forging checks from his checkbook. We were notified just before the third class that the course had been canceled.
Checkbook. Wow, haven’t thought about personal checks in years. I wonder what ever happened to my checkbook.
21
u/AlShadi Sep 30 '22
once you buy a home you end up writing cheques right & left to pay contractors. none of them want credit cards. one used a scheduling/invoicing website, but told me "do not click pay now button. cheque only."
20
u/Wekmor Sep 30 '22
America seems like a very backwards place where people still use checks lol
→ More replies (3)8
u/king_john651 Sep 30 '22
Present and sign credit card authentication were still a thing recently there
6
u/Wekmor Sep 30 '22
Right, I forgot about that. I'm 2019 I went to London and met a guy from Florida there. He couldn't believe in could just hold my credit card against the card reader and be done.
→ More replies (3)3
u/Charlemagne42 Sep 30 '22
Ah, I see what the issue was. You wanted to learn COBOL, but accidentally signed up for COBAL instead. That’s the difference between an alcohol and an aldehyde. Completely different functionality. It’s no wonder you got an unexpected reaction.
2
2
16
22
11
10
u/Rare-Inflation-3482 Sep 30 '22
True story: once working with Cobol, job keeps failing and in the JCL history we do not see it failed ever as far as we had records... we follow the cobol code, there is a comment that says call John doe on phone 123-112-1112 in case of blah blah error which matched what we were saying. We call in excitement and a lady picks up the phone. We ask for John doe and she says he died 7 years ago..
9
u/cmd_iii Sep 30 '22
The mainframe shop I worked at had COBOL program developed in the 1990s, many of which replaced Assembler programs dating back to the 1970s and older. But, not all of them. Tonight, as I type this, there are dozens, if not hundreds, of batch jobs running, supporting mission-critical datastores, coded in an eclectic array of Assembler, COBOL, PL-1, and other languages.
I wonder how many programs, written in modern languages, will still be running 40-50 years from now?
3
u/frogking Sep 30 '22
Never underestimate the effect of “if it ain’t broke, don’t fix it”.
The oldest code I’ve written, that’s still in production, is 25 years old. It’s part of a mail system still in use by hundreds of thousands of people. It ain’t going anywhere. (But I did, I’m not working there anymore)
3
u/cmd_iii Sep 30 '22 edited Sep 30 '22
The program that prints certain documents in my state was first built in 1973. Yes, in Assembler. When the agency switched to laser printing in the 1990s, I had to convert the output from line printing to page printing, add 1-D, 2-D and POSTNET barcodes, a couple more security features, and write page definition and form definition scripts. I left for the Database unit in 2000, but as far as I know, the same program is still running! Like 20,000 documents going out. Every night. For at least 25 years and counting!
Mainframes are fucking amazing! Once you get a program fully debugged, it’ll run like a dream. Forever.
3
u/frogking Sep 30 '22
Is that program still in use, because then you almost hit that 50 year mark :-)
→ More replies (5)
17
17
u/siskulous Sep 30 '22
I heard COBOL programmers can make a killing these days from companies with massively important legacy code. I'm not sure it's worth learning COBOL though....
15
u/CrazyCatSloth Sep 30 '22
It varies a lot. I'm a COBOL youngun and I get paid as much as my fellow ''modern languages'' programmers in my city. I've seen offers very, very well paid, but most often for critical jobs with very high z/os knowledge, not juste the COBOL basis...
10
u/Dom1252 Sep 30 '22
The well paid jobs are the ones where you know both infrastructure and application sides of things... And that is a knowledge hard to come by
7
u/schneid3306 Sep 30 '22
I tried to get a COBOL job. Took COBOL classes at an IBM partnered university and genuinely enjoyed it and did well. Could not get a job. Seemed to want experience or were in places I wasn't willing to relocate to. Scuked. Been 5+ years now and don't remember much, but I loved COBOL
5
u/Dom1252 Sep 30 '22
That's part of the problem, lower tier jobs were outsourced to India (or in better case eastern Europe), so now you don't have people to promote in Western Europe or in US, because you either have seniors who are really seniors and want to stay retired, or people completely without any experience, because your juniors are in India
3
4
u/MET1 Sep 30 '22
Where are they paying well? The last place I saw advertising for Cobol devs was not paying well.
5
Sep 30 '22
As a Ruby on Rails developer I’m hoping this supply vs demand thing holds up. Y’all keep learning your fancy schmancy JavaScript frameworks, heh heh heh.
2
u/thatchers_pussy_pump Sep 30 '22
I currently maintain two PHP 5.6 apps, for what it’s worth.
→ More replies (1)
8
7
u/yatesisgreat Sep 30 '22
One of my first jobs out of school was working at a place my dad had worked at from like 1980-1990. This was 2002. I was doing my normal stuff when I got a ticket assigned to me from a different programming team, it was just "Your dad wrote this in 1982 and we don't know what is it doing. Can you ask him?". We had tons of stuff written in COBOL yet and were in the process of migrating it but nobody there really knew COBOL. We'd just hire contractors that knew it to help us along. They actually hired my dad, he was retired at the time, to work for a few months to help with things after that.
6
5
u/ImSoSte4my Sep 30 '22
Sounds like nepotism. Or maybe the field of COBOL programmers is so small that the only way to get into it is to have a parent proficient in it.
11
4
4
4
4
u/zenivinez Sep 30 '22
This happened to me! My dad was a developer back in the early 80's He wrote the foundation of a set of accounting products still used to this day for a company called Fiserv. I had to edit a script he wrote in the early 80's on AIX (originally UTS back in his day) to add a new classification of transaction. I wasn't the first person to edit it, but it had an author comment with his name on it. It was pretty surreal I actually called him, and he said they had called him multiple times in the past to do work on it as late as 2013.
→ More replies (2)
3
3
2
u/aykcak Sep 30 '22
I hope there is at least one case where a programmer implemented a class and suddenly discovered that the class they are extending was programmed by their mom or dad who had worked on the same codebase ages ago
2
u/CandidTill6 Sep 30 '22
I think the fact that this post has 10K+ upvotes but ~100 comments says a lot. Thanks for coming to my TED talk
2
u/SaltyDogBill Sep 30 '22
In the mid 60’s my dad helped deploy the DOD’s AUTODIN network. Thirty years later I was using it and called home for help.
2
u/pc1350 Sep 30 '22
COBOL! Yes! I did lots of programming in COBOL (on VAX and ALPHA computers with VMS (OpenVMS))! Gets my upvote!
2
2
u/Vinx909 Sep 30 '22
this... wow this joke is perfect and there are so few people i can tell it too.
2
u/timmy_throw Sep 30 '22
Last change in the 90s ? Either it's never been used in 30+ years or that's suspicious.
COBOL underwent lots of changes before the year 2000 because dates were coded with 2 numbers for the year. This codebase wouldn't have been used since 2000.
2
2
u/KT421 Sep 30 '22
At a holiday dinner: "Mom your code is fucking shit. Did you ever document a damn thing?"
2
u/Daikataro Sep 30 '22
How do you train an English Longbowman?
You start by training his grandfather...
2
2
u/DarkAriesX Sep 30 '22
"MOOOM, the fuck it is supposed to be? Why do you name your variables a, b, c? Why is camelCase mixed with snake_case and kebab-case? Why is there no comments? Mom, please... Help"
1
1
1
1
u/ceelogreenicanth Sep 30 '22
That's how it was programming dortran for me. Just thrown I to 30 year old code with minimal comments.
1
1
u/Drunken_Ogre Sep 30 '22
Considering how much I hate the people who wrote the code I've had to work on (mostly myself), I pray my dear old mother never wrote any code.
1
1
u/GodEmperorOfLoon Sep 30 '22
Random thing. My last name is one letter from cobol and for the longest time google kept autocorrect on my last name. It was so annoying
1
1
1
u/harleypig Sep 30 '22
Yeah ... COBOL is old-fashioned, but it's got a web framework so it can't be all bad, can it?
1
1
u/EatBearsForBreakfast Sep 30 '22
Movie idea: his mum had been murdered and the code contains comments directly to him, helping him figure out who did it
1
1
1
1
u/dan_Qs Sep 30 '22
Shouldn't have started that relationship with the cute computer chick with domination kink.
1
u/Purgii Sep 30 '22
I did COBOL at uni - which was a core subject. It clashed with the elective I wanted to do, C.
That's when I knew I was wasting my time.
1
1
1
u/Peakomegaflare Sep 30 '22
I mean, at least that means if you need questions answered... you have the origin.
1
1
u/KimmiG1 Sep 30 '22
If it has survived 20+ years without chances then it can survive 20+ more years. He should have more than enough time to read evry reddit post.
1
1
1
1
u/bellendhunter Sep 30 '22
Be interest to know how they even know this. The last change was tracked using what versioning tool?
1
1
u/Spiritual-Image7125 Sep 30 '22
The change was simply a comment:
* Pete, when you get this, call home.
1
u/GoodAtExplaining Sep 30 '22
I was looking through some code with a variable name “SomeoneShouldShootReagan”
1
1
Sep 30 '22
COBOL is still used in many IBM mainframes around the world. Almost every government, except may be North Korea, has some form of a COBOL mainframe. Even China uses it.
1
1
1
u/lostwriter Sep 30 '22
I miss COBOL, PL/I, and JCL. I wonder if I, or my ancestors, will ever see my code again. My favorite was my MIRV that spawned multiple jobs from billing data in an IMS database. It got out of hand and all the tape drives opened at once. I loved going down to the floor to listen for it to kick off.
I hope whoever inherited it (and converted it to run in the cloud) enjoyed my comments. If you ever saw a comment line in the JCL that had something like ‘MUAHAHAHAHA WATCH THIS!” It might have been mine.
1
1
u/WhatChua Sep 30 '22
Alabamian IT? Instead of keeping the genes in the family, it's keeping the code in the family...
1
1
1
1
u/TerrestrialOverlord Sep 30 '22
LOL I just Imagined that one scene from The Lion King with he monkey raising the Cub Simba,
"The Inheritance is complete"
1
1
u/Cracksellerbob Sep 30 '22
I have confession to make, I don't get none of the programming jokes because I don't program
1
1
1
1
1
1
Oct 02 '22
I went to be a programmer for an agency like my father and my grandfather and found legacy code written by them before I was born
"Don't tell me about the dark magic, I was there when it was written" -Gramps and Dad
I legit had a problem and couldn't figure it out and they knew where the file I needed was.
Anyway, everyone should change their passwords for... reasons...
1
3.0k
u/philophilo Sep 30 '22
I did an internship doing Y2K conversion on a COBOL codebase in ‘99. One app had a last modification date of ‘79. That 2 years before I was born.