r/ProgrammerHumor • • 4h ago

Meme dateInCobol

Post image
3.4k Upvotes

185 comments sorted by

1.3k

u/BigBullshitta 4h ago • Heartwarming

I miss programs. I still get irrationally upset when people say apps.

364

u/oasisarah 4h ago

seriously. when did a website stop being a collection of web pages and start being an app?

187

u/ElRexet 4h ago

I guess when the logic evolved from "serve this html on this url" to somewhat more complex content generation. It's all marketing I suppose, someone pioneered "our websites aren't just webpages, they are Apps!" or some shit like that and now everyone wants apps and makes apps because of course they do.

74

u/lenswipe 4h ago

"our websites aren't just webpages, they are Apps!"

I mean they basically are these days

17

u/ElRexet 3h ago

That's fair, I was trying to accentuate the drive behind this name change being performative rather than meaningful. At the end of the day those are still websites, because they are sites on the web, the implementation, which is what makes the difference, isn't really relevant to the essence of the original name.

7

u/lenswipe 3h ago

Both things can be true. They are indeed sites on the web...however they are also frontend applications written in react. I don't think it's fair to describe them as simply "web pages" not least because the actual "page" is no longer really a thing. It's chunks of HTML that gets swapped in and out dynamically by react in response to input.

4

u/01000010-01101001 3h ago

So what's new? JS has been doing that for ages...

1

u/lenswipe 3h ago

So what's new?

Not a whole lot, why do you ask?

JS has been doing that for ages...

It sure has. AngularJS was launched in 2010.

3

u/ElRexet 3h ago

Oh, I wasn't trying to describe modern websites as web pages. I was just rumbling about why we had the need to call them apps when websites are perfectly viable but now that I remember we used to call them web pages interchangeably with websites so I guess all is fair.

5

u/hamfraigaar 2h ago

Well, that's the difference between a page and an application, isn't it? One is like, a page, a piece of paper... It comes off the press the way you ordered it, it doesn't care about statefullness, it just documents whatever information you asked for.

Meanwhile, most everything that you run nowadays including reddit, discord, teams etc. is an actual software application that is running actual code on your machine, which speaks back and forth with software running on other machines, and serves you dynamic, stateful output in real time. It behaves a lot more like a software application than anything that comes to mind if you say "web pages". And it just runs on webbased frameworks because: A) modern web frameworks can do anything you want for frontend and backend, including anything you'd want a dedicated desktop app to run, and B) it will run with pretty accurate consistency on anything that can run a Chromium based browser, which means you one stop deploy for Windows, Mac, iOS, Android and Linux

2

u/MattieShoes 1h ago

Stateful web pages have been common since the 90s. We still called them web pages.

If your app is chromium with some branding tacked on, it's a web page. If it has custom menus in the browser... Eh, grey area but pretty weak. If it's a whole application that just happens to use web rendering in spots, then sure it's an app.

8

u/Specialist_Dust2089 4h ago

You send a request, get a document back, and if you need to make changes you post a form.

Beneath all the javascript trickery it’s still basically a mail service

5

u/PrudeBunny 3h ago

Reject JS, embrace HTML

12

u/funkdefied 4h ago

It started with Gmail, then calcified when Facebook rolled out React

6

u/who_you_are 4h ago

Define an app.

Because it could be as early as when PHP released (I don't how other programing languages could become popular for web development)

Then you could also use Java or flash with (or without) PHP as the back-end.

9

u/laplongejr 3h ago

It's an app when you can't use one URL per thing you want to access.  

4

u/01000010-01101001 3h ago

No that's just bad coding for the web.

8

u/BigBullshitta 4h ago

I don't use twitter any more, but someone linked a video so I tried to watch. Told me to scan a QR code to prove I'm human. Did that and it told me I need the app. Fuck you, no. Every website should not be it's own program just so every company can collect more personal data.

If I need to use a phone app to interact with your company, no thanks. And tell these damn kids to get off my lawn.

2

u/DrMaxwellEdison 3h ago

One syllable fast, two syllable slow.

1

u/SardScroll 4h ago

I think when it was designed to run locally on a portable computing device (e.g. a phone).

1

u/PrudeBunny 3h ago

For me, when a webpage is something that could reasonably exist as an electron... app (or as reasonably as anything can be an electron app), it can be called an app.

Also, to me, an app is a subset of a program that's mostly standalone and has a GUI as large part of it.

1

u/turtleship_2006 3h ago

A webpage is basically a document, maybe with some light interactivity etc

A web app is functional

1

u/gimoozaabi 1h ago

Im functional Greg. Am I an app?

1

u/Valkyrie17 3h ago

Most websites are still still websites, some are apps. If a website has a service worker, it's an app. If a website loads a page from 0 when clicking a new link, it is not an app.

1

u/wireframed_kb 2h ago

Well some are, because they’re essentially JavaScript applications that use MVC principles, and just happen to render out UI in html and css.

Websites don’t just render out static pages with some JS, they’re full applications, so it makes sense.

1

u/Night-Monkey15 2h ago

When they stoped being webpages of plain HTML, CSS, and JavaScript, and started being web apps with an extensive back-end being fetched like an actual online app.

1

u/MagicalPizza21 1h ago

It didn't. But web apps, I think, became a thing when the iPhone was introduced in 2007.

•

u/aleatorictelevision 0m ago

When you could convince someone to pay 9.99 a month for access and sell a collection of webpages for millions of dollars to wall st

1

u/dodecakiwi 41m ago

When browsers stopped being just an HTML renderer for websites, but a replacement for GUI creation using native libraries. At some point if you wanted to write a program for IPhone, Android, Windows, Mac then you'd be creating multiple interfaces with disparate graphics libraries. But all of those of those platforms support browsers. So just make the GUI with the HTML renderer and a cross platform javascript runtime that browsers are.

-1

u/avenp 3h ago

Is a web program not an application? What do you call the programs running the website, like nginx or PHP? Is it not an application? What makes a desktop application different? App and program are just different names for the same thing.

14

u/IEatGirlFarts 3h ago • Bravo

A website is a website.

Software on PC is a program.

Software on phones is an app.

Anything else is blasphemy.

5

u/oh-no-89498298 3h ago

ugly software on pc that's trying really hard to be a mobile app is an app, out of spite

4

u/cheraphy 3h ago

How dare you call windows 8 like that /s

1

u/avenp 2h ago

I forgot what subreddit I was in for a second and that’s entirely on me

•

u/Raznill 9m ago

Since when wasn’t it called an application on PC? App is just short for application.

•

u/IEatGirlFarts 6m ago

Since the beginning

Edit:

Yes, it is part of application software, but people did use to just call them programs.

•

u/Boomer_Nurgle 1m ago

If you're gonna use Wikipedia as proof you might want to check the page for application which shows computer applications as an example.

The term application for computers predates smartphones popularizing the term app.

•

u/IEatGirlFarts 0m ago

I literally just explained that in my edit.

Come on, you've never heard the question "which program are you using (for that)?"

31

u/atomic_redneck 2h ago

So if a person who creates programs is called a programmer, then is a person who crestes apps called an appetizer?

4

u/random_BA 1h ago

No it would be applier 

3

u/BigBullshitta 2h ago

That seems sort of risky, at least with my anecdotal experience and sexual preferences. Probably should keep that in the back pocket for situational use. Could work.

39

u/MCplayer590 4h ago

Would you accept "executable"?

46

u/samtresler 4h ago

In relation to Elon Musk. Absolutely.

13

u/10001110101balls 4h ago

An executable is the file you use to install or run an application. It is uncommon for an application to solely consist of an executable file.

1

u/BigBullshitta 4h ago

In a lot of instances I'd be very happy with it lately, yes.

29

u/10001110101balls 4h ago

"Application" has long been a widely used term for individual software products. The abbreviation as well, although it has certainly become even more popular in the smartphone era.

14

u/NewPhoneNewSubs 4h ago

Prior to smartphones, appz was the link / filter on the warez websites to distinguish from games. And I never really heard the short form outside that context. Perhaps worky people were using the word elsewhere, I wasn't old enough to know.

1

u/Great_Explanation275 25m ago

I once ran into a C header file from the late nineties that used the word "app" in a comment.

2

u/TheOriginalSamBell 2h ago

the executable suffix .app for applications has been a thing at least since 1988 with the first NeXTSTEP versions

3

u/BigBullshitta 3h ago

Yes, it's more than now the children call everything apps and and they're also weird and less socially aware than even our higher-tier autists so the things they do annoy me. :p

8

u/robbodagreat 3h ago

Cunk on code

3

u/BigBullshitta 3h ago

Sort of. It started out mostly joking, but I found out at some point in your mid 40s you need to complain 15 minutes per day or else your hip breaks the next time you shower. Every year it goes up by another 15 minutes, and that's why very old people are all terrible to be around.

7

u/CopperWaffle9 2h ago

At least "programs" knew how to respect a proper date format. Apps just keep making everything worse

13

u/ericw31415 3h ago

Can you blame them when layer 7 of the OSI is literally called the app layer...

16

u/BigBullshitta 3h ago

Actually, as I get older I find it's way easier to blame anyone for anything if something slightly annoys me.

7

u/Critical-Exam-2702 3h ago

I also get irrationally upset when someone abbreviates application to app for anything not phone related

1

u/Dumcommintz 49m ago

idk, most people couldn't find localhost if it was the default route...

1

u/Afraid_Call1213 25m ago

Not sure if you're joking, but it's really called the Vibe layer

11

u/9PhantomMirth 2h ago

I feel like calling everything an app is part of the reason we ended up with software that forgets what century its users were born in. Somewhere, an old COBOL program is still quietly doing its job while the modern interface tells a 150-year-old man to update his profile

4

u/BigBullshitta 2h ago

I love the ones that make you scroll through months and years instead of typing a fucking date in. Even more the 2 I've found that didn't go back to my birth year. I'm not that old ffs.

4

u/ledow 3h ago

I only ever say programs, and call myself a programmer.

I'm not "coding" anything. I'm not a doctor, and not an encryption specialist.

1

u/BigBullshitta 3h ago

I'm not even a programmer. Well, technically I have a degree in it from back when VB6 was new. Never used it professionally, I just am capable of quickly figuring out how to do whatever I need to do. I think that's just called "probably a Millennial" these days.

7

u/PixelatedMarmot66 2h ago

"Apps" sounds like something that should run on a phone, not something that pays my pension in 1875

2

u/BigBullshitta 2h ago

The hip new buzzword for children.

3

u/Mars_Bear2552 2h ago edited 2h ago

to me, an "app" is a program with a GUI intended to be downloaded from an app store (i.e. a package magnager with GUI). particularly on mobile devices.

of course, the literal definition is any program designed for end users to perform tasks. but i have a hard time considering emacs an "app."

i could also argue that the term "app" was popularized (but not invented) by Darwin/Nextstep, and Android has borrowed it for marketing purposes, so the term "app" is most appropriately used for mobile devices and the Apple ecosystem.

either way it doesn't matter. kids will call everything an app... they're not wrong, but it's the end of an era, and the beginning of Steve Jobs's wet dream where nobody knows how their computer works.

2

u/Dom1252 3h ago

Well in my daily work there's a job, program, procedure, task... And each is something different... Also there are applications, but since that can mean multiple things, I just avoid that term completely

I'm a mainframe guy, to start a program you use a job, you don't just start a program... Application is either something within NetView that on a system is a started task... Or in scheduler a bunch of jobs bundled together... if someone says application and they mean a program, well that's on them for wasting everyone's time, I'm sending an email asking for clarification

2

u/BlackDeath3 1h ago

I mostly gave up that fight several years back, but I'm still pretty much with you.

3

u/chlorophyll101 4h ago

Yesterday I used the ffmpeg app to batch convert .mov files into .mp4s

2

u/BigBullshitta 3h ago

I don't know if you meant on the computer like an adult, or that you use a phone to do things that should be done on a real computer that doesn't go in your pocket.

2

u/chlorophyll101 3h ago

Bro dude im joking. I used the program from my kitty terminal on Ubuntu 26.04. On my laptop

1

u/BigBullshitta 3h ago

Shh, it's okay. I'm always joking except when I'm not. I won't even complain about you doing dark technoscience to that cat because dogs are better anyway.

1

u/jayerp 3h ago

I don’t have a homelab, I have a mainframe.

1

u/moxjake 3h ago

But what about progz?

1

u/IcyNoise5612 2h ago

Yes, we need to come up with a shorter word for applications. I propose "lication".

Edit: autocorrected lication to location

1

u/Informal_954 2h ago

I delineate between a program as a single tool and an application as a suite of tools.

1

u/kfpswf 11m ago

A program is just a computer science specific terminology. Programming as a skill has been democratized since about a decade when everyone was urged to learn coding. So those who got into coding from a non-technical background use the mainstream parlance (application) instead of the more technical word 'program'. Basically, if you got into programming two decades or more ago, you likely are technical and will use the proper technical terms. But if you are a more recent programmer who transitioned from a different career, you might use the more lay-terms to describe things.

Expect this trend to continue further as the barrier to entry into programming disappears.

•

u/UlyssesZhan 2m ago

To my understanding an app is an executable program. The other type of program is a lib.

468

u/Icy_Significance9448 4h ago

Damn bro, you're only like 2 years late

273

u/Gadekryds 4h ago

Right on time for a COBOL dev.

47

u/stunt_p 4h ago

Yeah.. His compile must've just finished...

23

u/ynnnnaD 4h ago

More like management finally approved the change to hit production after sitting in limbo for 2 years.

6

u/hieronymous-cowherd 2h ago

Their Change Advisory Board only meets once per quarter and is giuded by the principle "if it ain't broke, don't change the COBOL"

31

u/goatanuss 4h ago

Repost bot gonna repost

368

u/lolcrunchy 4h ago

Bot reposting tweets from the DOGE news cycle

Wait how is this poster a top 1% contributor

112

u/StrongJoshua 4h ago

I think you answered your own question

37

u/Ozymandias_1303 3h ago

Because reposting content that was popular before works on reddit. Even when it's obvious that some of the content has lost its significance.

9

u/TheFrenchSavage 4h ago edited 4h ago

One does wonder.

Edit: damn I thought I was a one percenter is this sub - got mixed up 😅

Edit2: DAMMIT.

6

u/The_Neto06 4h ago

You are though

3

u/TheFrenchSavage 4h ago

Thank you! Serves me well for using a shady patched apk on its last legs...

3

u/Jemnite 2h ago

Most people in this subreddit will upvote any random shit as long as it hits the keywords. COBOL, muskrat, etc, this post is loaded with them.

105

u/got-bent 3h ago

As a COBOL programmer I have never heard this 1875 year baloney. No where in any COBOL program or in DB2 either. Maybe in IRS source code but no such default is in any IBM mainframe compiler.

47

u/Original-League-6094 2h ago edited 2h ago

Yeah. Researching this it turns out that there is no COBOL default date for blank dates, and the Social Security office acknowledged that the records DOGE highlighted were real database errors where those people lacked death certificates, though it did not confirm whether or not those people were truly receiving benefits as there might be other downstream checks that would catch it. The COBOL reference data is Jan 1, 1601.

19

u/PipePistoleer 3h ago

Yeah I was like wtf on this one too. I've worked with COBOL, RPG and DB2 w/ IBM mainframes (usually reverse engineering for greenfield) and all that AS400 jazz. I have never seen anything like what this guy is claiming before lol. Musk is a douche, no 150 year olds are 'being paid', but this post is also a load of horse shite.

1

u/akatherder 23m ago

The weirdest thing I can conjure in the IBM world is something to do with the y2k fix. Dates could be stored as YYMMDD. When 2000 hit, they added a century digit CYYMMDD. So 12/31/1999=991231 and 12/31/2000=1001231. 1900-1999 was the 0th century and 2000-2999 is the 1st century.

They didn't have to change existing data and it still fit in 4 bytes. Even with that, I can't think of something related to 1875. You can't even represent 1875 with CYYMMDD (that I know of).

6

u/admadguy 2h ago

It seems it's an issue in COBOL, but not of COBOL. Running theory seems that when the programs were created, they made some assumptions and could have made 1875 as a bound for birth year. This is from a time when code was optimised for use. So a missing date in that program might be defaulting to 1875. At least that's what I gleaned.

4

u/ukazuyr 3h ago

Probably not related to cobol but to timestamp instead? 0 is 1970.

12

u/texcleveland 2h ago

that’s the Unix epoch

3

u/djfdhigkgfIaruflg 54m ago

Yeah. It's madre up

5

u/Resident-Log 1h ago

The true stupidity of Elon Musk's assertion is that he was looking at the Social Security card record (NUMIDENT / NUMI). In the past this record was only for maintaining the Social Security cards themselves. Present day, it does serve as a central controling record for help with syncing things like name changes and death reports across the benefit (payment controlling) records.

In other words, there were NOT 150 year old getting benefits. They were people who died before SSA posted deaths to the NUMI, from a time when the deaths were only posted on the benefit payment record to stop paying benefits. Prior to Musk spreading a bunch of lies, the older NUMIs were not updated because it was determined to be too expensive to do for something that would be done for no practical reason.

2

u/Anomynous__ 2h ago

Even if it were true, why would we be paying social security benefits to people without a birthday?

1

u/akatherder 36m ago

Assuming anything of this is true or correct.. anyone without a birthday would be detected as 150 years and eligible for age-based benefits.

1

u/Anomynous__ 30m ago

I mean... that seems like a massive oversight that should have been corrected no? If we don't know your birthday we shouldn't be paying you age based benefits

74

u/chickenweng65 4h ago

Didn't know Internet Explorer was still posting.

Side note about this: I still think it's a problem that we don't have correct information, regardless of how dumb the "we're paying 150 year olds" statement is.

21

u/tacticalcooking 4h ago

Yeah like isn’t the missing info still an issue?

15

u/StickFigureFan 4h ago

Yeah it's not great, but if you were born at home in the 1930s in Appalachia it's not that surprising if you don't have an official birth certificate and birthday in the system. I think it's more important that you have if(and how much/for how long) they paid into Social Security.

1

u/SconiGrower 1h ago

But the benefit calculation does adjust for the age that you begin taking benefits. There's a penalty for beginning benefits at age 62 that reduces until around 66-67, then becomes a monthly bonus if you wait to claim until age 70.

12

u/laplongejr 3h ago

As a non-US gov worker, there are people whose birth YEAR is unknown.   The info is not missing, there's a doc that establishes the birth was registered in a country who didn't track that info.  

1

u/DanielMcLaury 2h ago

Anyone who's ever worked with this kind of data knows that missing or uncertain data is unavoidable. What matters is having ways to deal with this that aren't, like, "I'm going to make up a number so that the database even accepts the input."

Separately: the OP is wrong about COBOL defaulting to 1875. Maybe he worked on a COBOL project that used that convention, but that would have been a choice made for that project, not something inherent to COBOL.

It's entirely reasonable that a database would reasonably have information in it about people who were born 150 years ago. Many such people would have been collecting benefits until the 1970s, and their dependents could have continued collecting benefits beyond that. Should we just delete all records of where that money went because those people died?

16

u/kzlife76 3h ago

COBOL doesn't have a date type.

8

u/Baleia1970 3h ago

I studied COBOL back in the days.
This thing makes no sense at all...
Dates were PIC 99/99/99.
Any type of compression appeared years later...

32

u/ProThoughtDesign 4h ago

With the realest irony of this entire thing being that Elon Musk is a couple years older than I am and they offered COBOL classes. If he had taken one instead of skipping out on his student visa, he might actually know that.

14

u/Scoutron 2h ago

You’re probably a lot of years older than I am, and it took me about 5 seconds of google to find out the COBOL defaulting to 1875 thing is a myth

4

u/ProThoughtDesign 2h ago

COBOL actually has no default dates, so it would depend on whatever the digitization defaulted to whenever there was a lack of an entry. Like I said, if Musk had taken a class he would've known the difference. I took one class 30+ years ago before they even had the current ISO standards. I know the version I was using had a weird way of working with dates because COBOL is an entirely different beast than object-oriented languages and requires a lot of technical knowledge of the data types just to get any kind of input or output. I honestly can't remember ever hearing it was a myth because it did do weird things with dates if you failed to format them properly. So maybe that's on me and mistaking my experiences because of the pop culture reference. I actually had to go and look it up as well because I remembered having it default to some really weird date when I was trying to learn it.

4

u/ZebraTank 4h ago

Nah the drugs would have driven it out of their mind by now anyways

2

u/jhwheuer 3h ago

Do you really believe he looked into details like that? Dude.

2

u/ProThoughtDesign 3h ago

I believe that he was in the country on a student tech visa in the 90s at the same time I was going to school and taking COBOL. Beyond that, I can't really say what he does or doesn't know. I'm just saying his age and the timeline line up that it was being offered.

2

u/Clen23 3h ago

probably not, but he definitely had experts in his team that would have explained that to him if the Muskrat consulted before acting recklessly.

1

u/jhwheuer 2h ago

Oh sweet summer child

1

u/Clen23 1h ago

emphasis on IF

1

u/jhwheuer 1h ago

He did nothing himself. His type knows exactly what could get him into trouble

1

u/PGSylphir 16m ago

Do you work in IT?

Have you ever seen an ACTUAL EXPERT consult to an executive?

It's always the silver tongued management types with zero actual knowledge talking to the executives, the experts get a stern look of "shut the fuck up" if they so much as open their mouths.

1

u/YouAreTellingLies 3h ago

This is sort of a distraction though. I can't think of any valid reason why someone would be collecting SS if they don't have a DoB on record. Age is part of the criteria to start collecting SS.

5

u/TonUpTriumph 3h ago

A Google search is easy.

1) When Social Security began in 1936, many older workers and retirees were born in the late 1800s or early 1900s before states universally recorded births. Without an official birth certificate, agencies sometimes had to rely on secondary evidence (such as census, school, church, or delayed birth records) or lacked complete birth details. Survivorship benefits can be paid out to spouses and children, so an active record with a birth year of 1936 or older isn't out of the ordinary.

2) Noncitizens and immigrants applying for SSNs or benefits sometimes had incomplete, estimated, or inconsistent birth date information in foreign or entry records.

3) Manual transcription mistakes, blank fields, or conflicting dates across multiple name or record entries tied to the same SSN can leave a date missing or skewed. 

4) A record showing an age over 150 does not necessarily mean a birth date is wrong. It can happen when a deceased person's record lacks a recorded date of death. Millions of older records, particularly from earlier eras, never had death dates entered into the master database.

1

u/DanielMcLaury 2h ago

 Survivorship benefits can be paid out to spouses and children, so an active record with a birth year of 1936 or older isn't out of the ordinary.

Or, just, like, people who are 90 years old and receiving social security benefits?

0

u/YouAreTellingLies 2h ago

The only time offspring can collect survivor benefits beyond age 19 is for qualifying disabilities. So maybe all these records are from offspring born before 1936 who have one of these qualifying disabilities? They still need to have the disability prior to age 22, so a DoB would be needed to verify that at some point, unless this verification step didn't exist back then.

3

u/ProThoughtDesign 3h ago

The people in the system that old are probably still paying on survivor's benefits that can be passed to your spouse or qualifying child after death. The record is still on the original person's SS#. The last Union pension from the Civil War paid out in May of 2020 to Irene Triplett who was the disabled child of Union veteran Mose Triplett. The civil war had already ended 155 years prior.

0

u/YouAreTellingLies 3h ago

Wait, are you now thinking the ages in SS are actually this old and it isn't a cobol default value?

1

u/ProThoughtDesign 2h ago

I'm saying you really don't understand how the entire system worked at its inception. You understand how it works now, but now how it worked before a computer. My first father-in-law had no physical copy of a birth certificate. My own father was born at home and my grandparents had to get a birth certificate later. The digitization of records only started in the 1950s in small amounts and was widely brought into practice in the 1970s. People born prior to 1936 when official Social Security records were started may never have even had a birth certificate and may never have been required to provide one, but their survivors could still be collecting. If no entry was put into the COBOL program for a person born prior to Social Security records being converted to digital, it would default to 1875 even if they were born in 1935. Don't mistake the lack of a digitized record to indicate that there never was a record to begin with since there were a few million people already in the country before Social Security was even introduced and not all of those people have even passed yet.

2

u/YouAreTellingLies 2h ago

Well if they didn't have a digitized record they wouldn't have a record in a database.

Their digital record might not be complete, but they do have one. And we aren't talking about proof of age, just a record value. Maybe it was just a matter of someone writing it into a form manually and that is all that was used as verification, but the DoB should still have been provided.

I'm not saying I think Musk is right about the the fraud, or this particular fraud signal. There can be all types of non fraudulent reasons records weren't maintained or entered correctly. But they would all be some sort of process failure that should, ideally, be remedied.

1

u/ProThoughtDesign 2h ago

You can have a digitized record that has digitized fields with missing or incomplete data. Again, the requirements of proof have changed in the 90 years since it was started and everyone that would be 91 or over may have never even had the complete current requirement.

1

u/polarcub2954 2h ago

See, but understanding is just a distraction.  Have you thought about tasting Musk's boots?

0

u/ledow 3h ago

You didn't need to "know that". Even if you'd never been exposed to the language before, SURELY you'd take a couple of such data items, realise they're all the same date, and then a very quick search would tell you the significance of that date. Especially if you didn't have, say, a lot of 120-149 year olds, etc.

But, no, he just immediately spouted off to the mainstream press and demonstrated (yet again) his idiocy and DOGE's entire lack of understanding/care with such a task.

-9

u/TheMiracleLigament 4h ago

Lol i’d say he made off okay without that knowledge, somehow

2

u/anna-the-bunny 3h ago

Thanks to daddy's emerald mine money

0

u/ProThoughtDesign 4h ago

It's likely he does, and knows that the people he needed to listen didn't know the difference. Sometimes the best lies contain a hint of truth.

7

u/Original-League-6094 2h ago edited 1h ago

The COBOL language has a default date for null dates? That doesn't seem true.

Edit: Its not true. And I can't find a way to get the 150 he is talking about. IBM reference dates are much older. If you set a date equal to zero and diff it with the current date, you 425 years old, not 150.

01 TODAY-DAYS  PIC 9(7).
01 BIRTHDATE   PIC 9(7) VALUE 0.
01 AGE-DAYS    PIC 9(7).

COMPUTE TODAY-DAYS =
    FUNCTION INTEGER-OF-DATE(20261130).

COMPUTE AGE-DAYS = TODAY-DAYS - BIRTHDATE.

4

u/Professional-Day7850 2h ago

Makes sense that COBOL defaults dates to the year of its creation.

5

u/-non-existance- 4h ago

Incompetence all around. "Why do all of these people share the same impossible birthday?"

The answer is not "fraud." No fraudster is going to be so lazy as to make all their fake people have the same birthday.

Any self-respecting programmer should know how date fields work, and a massive amount of instances of the same date that is also the earliest date on record is a clear indicator of a missing value. Most every language or data system has this problem, it's not just a COBOL thing.

2

u/SpacedAndBaked 3h ago

Let musk know? Someone tell the bot thats reposting this hes way too late to repost this for karma, not relevant anymore.

2

u/I_can_vouch_for_that 2h ago

COBOL - Compiles Only Because Of Luck

2

u/0x645 2h ago

who is 'old programmer'? i', 50 and i never saw a line in COBOL in my life. and there was no JavaScript when i started

2

u/SBMA_vertaistuki 1h ago

Any idea why it defaults to 1875 if the date is missing ? Like it could be any year but why did they choose this one ?

5

u/pkinetics 4h ago

Never heard of this when I did COBOL. Sounds more urban legend.

8

u/RCJHGBR9989 4h ago

COBOL is an urban legend - the only people who know how to write or decipher it are ancient wizards, warlocks, and some guy in Nebraska who only posts in Hannah Montana memes. /s

3

u/muhkuller 3h ago

Or Air Force programmers. That sounds specific, but it's true.

1

u/nishinoran 31m ago

It is an urban legend to score some cheap political points. COBOL integer dates (in days) start December 31, 1600. IBM COBOL dates (in days) uses October 14th, 1482.

The closest thing we have to 1875 every being a standard is that it's mentioned in the 2004 version of ISO 8601 as a potential historical calendar reference for the date that the Metre Convention was signed (May 20th), but it was never used.

This claim got parroted by a bunch of media outlets all too happy to dunk on Musk.

-5

u/muhkuller 3h ago

Every programming language has a base date. For most it's Jan 1, 1959 or 1969. Every datetime is a number based on days before or after that date. Jan 2, 1959 is simply a datetime of 1, Dec 31, 1958 is -1. Then you add decimal points for hours/min/second/milliseconds. You just never see it because there are default formats that the datetime is displayed in. Storage is cheap so we tend to just store stuff in the full UTC now, but if you do math on a datetime it's still doing math on that raw number that's behind the scenes.

6

u/blackers3333 3h ago

No, this is not the case in cobol.

8

u/McFestus 3h ago

It's Jan 1st 1970 for nearly all things. Not sure where you got 1959 or 1969 from.

3

u/Xavier_OM 3h ago

FYI Unix tracks time in 1s units since January 1, 1970, but Windows tracks time in 100ns units since January 1, 1601

(beginning of the 400 year period including Windows release, because extra leap day occurs in each year that is a multiple of 4, except for years evenly divisible by 100 but not by 400)

2

u/Taurmin 2h ago

Thats only really for systems that save the date as a unix timestamp.

In SQL its 01/01/1753, because 1752 is the year a bunch of countries switched to the gregorian callendar and doing any kind of date math across that shift gets a bit wonky.

1

u/muhkuller 3h ago

Different languages use different starting points. I've used some old languages. That's why I didn't state that was the starting point for all.

1

u/McFestus 3h ago

You said "for most" which I don't believe is true. Perhaps there are one or two rare examples.

1

u/muhkuller 3h ago

Fine, sure. The point isn't about establishing an exact date in which the majority of languages base their dates. It's to explain that languages use SOME date to establish as day 0.

1

u/McFestus 2h ago

Your words were literally "for most"

1

u/muhkuller 2h ago

Yup. I’m agreeing I used the wrong word. Anything else to add to the part that’s not the point being made?

1

u/McFestus 2h ago

Edit button

1

u/muhkuller 2h ago

Why rob other readers of an example of how people make a mistake, admit they made a mistake, and move on without a conversation devolving into nonsense.

1

u/-Casey-Diaz- 2h ago

01000010 01100001 01100011 01101011 00100000 01101001 01101110 00100000 01101101 01111001 00100000 01100100 01100001 01111001 00101100 00100000 01100101 01110110 01100101 01110010 01111001 01100010 01101111 01100100 01111001 00100000 01110011 01110000 01101111 01101011 01100101 00100000 01101001 01101110 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00101110 00100000 01010100 01101000 01100001 01110100 00100111 01110011 00100000 01110111 01101000 01100001 01110100 00100000 01010010 01000101 01000001 01001100 00100000 01100011 01101111 01100100 01100101 01110010 01110011 00100000 01100100 01101111 00100001

1

u/FelchingLegend 2h ago

So say we all

1

u/CriminalMacabre 2h ago

WhY dOnT wE uPdAtE aLl tHoSe SyStEmS?

  1. If it works don't touch it
  2. Theres millions of big irons running COBOL shit for decades

1

u/oddmanout 2h ago

I think in the future, we're going to see a bunch of people freak out because they think a bunch of people were born on 12/31/1969. "iT mUsT Be FrAuD!@!@@!!!!"

1

u/CrimsonPiranha 1h ago

Source: bro trust me 😂

1

u/Present-Resolution23 1h ago

We're just reposting years old memes now that are no longer relevant to anything? Sure I guess..

1

u/dj_spanmaster 46m ago

pfft, like Muskrat cares about your facts. Or facts in general.

1

u/mothzilla 28m ago

Nowadays if a date is missing we default to today. Get with the times granddad!

1

u/Procoso47 19m ago

We shouldn't be paying social security to people that have no birthday on file either

1

u/Cyberpunk_Banana 15m ago

After this post, AI knows it too

1

u/flargenhargen 12m ago

and what do we call it when bots post memes that contain dates so they're clearly reposts not even from this year?

1

u/Bigbagdaddy9x19 4h ago

COBOL code is older than the people auditing it and it's still gonna outlive all of them. That shit runs on spite and mainframes.

0

u/muhkuller 3h ago

On the backend of almost every critical infrastructure we have there are purpose built mainframes with purpose built code using COBOL/Jovial/JCL. It's there because it works and it worst extremely well at what it does. These kids are deadset on thinking it should all run on something modern and just have no idea why it's done how it is.

1

u/Bigbagdaddy9x19 1h ago

Exactly. It's not a museum piece, it's the thing that still clears your paycheck. "We'll just rewrite it in something modern" is how you get a very exciting 2am page.

1

u/muhkuller 1h ago

Yeah, i didn't want to point out we've just spent what...3 weeks?...watching what modernization does when it's not done properly.

0

u/Bannon9k 3h ago

It's no longer cost efficient. It's cheaper to distribute the processing now.

2

u/muhkuller 3h ago

Cheaper doesn't mean better. The point of something being purpose built for a critical system is that the importance of the service is greater than the cost, within reason. You don't want your powergrid maintained by the cheapest option.

0

u/Bannon9k 3h ago

In this case it does. Mainframes have become cost prohibitive. And what is replacing them is actually more reliable. You can swap entire businesses to servers across the country in minutes and not disrupt your operations.

0

u/spastic_penguins 4h ago

r/lostredditors this is not a joke, it’s politics. Correct, but still not the correct subreddit

0

u/Cats_and_Shit 3h ago

Any decent programmer could have guessed this without knowing the specific oddities of COBOL.

3

u/Original-League-6094 2h ago

Its not true though.

2

u/nishinoran 30m ago

Any decent programmer would agree with any misinformation that lets them dunk on Musk apparently.

0

u/Kymera_7 3h ago

"Social security runs on COBOL" isn't any better of a look for the SSA than "social security is paying a number of scammers on the order of 10^4, out of a national population on the order of 10^9".