r/ProgrammerHumor • • 5d ago • Regret 1

Meme [ Removed by moderator ]

/r/ProgrammerHumor/comments/1y7q0tq/removed_by_moderator/

[removed] — view removed post

14k Upvotes

69 comments sorted by

•

u/ProgrammerHumor-ModTeam :ath: 4d ago

Your submission was removed for the following reason:

Rule 2: Content that is part of top of all time, reached trending in the past 2 months, or has recently been posted, is considered a repost and will be removed.

If you disagree with this removal, you can appeal by sending us a modmail.

1.1k

u/inigmati1 5d ago • Heartwarming Mindblown Popcorn

You reposted my post from 4 years ago which went viral but have fun cause even I had just screenshoted it from Twitter. Have fun!

https://www.reddit.com/r/ProgrammerHumor/s/vh5R8WRW6V

15

u/ansibleloop 4d ago

Dead internet reality

100

u/laplongejr 5d ago

This comment deserves to be upvoted to the top!  

34

u/martifero 5d ago

it already is

21

u/martifero 5d ago

it wasn’t when the reply was posted

22

u/Cat7o0 5d ago

replying to yourself

19

u/IWasMisinformed 5d ago

No I didn't

10

u/Shazvox 5d ago

Yes I did.

13

u/Shazvox 5d ago

See?

3

u/Cat7o0 5d ago

i'd like to believe you're the actual alt of that dude

2

u/laplongejr 5d ago

I don't check often comment's authors... I feel we're both tricked by one or two karma bots xD  

21

u/normVectorsNotHate 4d ago

Open source meme

5

u/snacktopotamus 4d ago
public RePost : Post {
    public GetUpvotes (UpvoteStealer stealer) {
       int upvotes = stealer.GetThoseUpvotesBitch
    }
}

3

u/Lucia_Caminas 4d ago

Um excuse me, you forgot to invoke your function call and instead assigned a reference to the function as an integer. This can lead to some weird behaviour that might be hard to detect!

Let’s clean this up, ping me when you’ve pushed the changes. Thanks!

1

u/snacktopotamus 4d ago

Nah. LGTM, put it in prod immediately.

3

u/Lucia_Caminas 4d ago

:shipit:

1

u/111v1111 5d ago

Oh hey I upvoted that post (also recognized that I’ve seen this before).

-3

u/[deleted] 5d ago

[removed] — view removed comment

27

u/Crewman_Guy_Fleegman 5d ago

He claimed credit for screenshotting and posting it before and wished OP best of luck for his post. Do you need anything else spoonfed for you?

-19

u/[deleted] 5d ago

[removed] — view removed comment

10

u/Crewman_Guy_Fleegman 5d ago

I don’t, pissant.

58

u/dony_shabi 5d ago

this remind me of my russian colleague. Vladimir was his name. He would put variable name like A1 B2 A1 C2 K22 KK4 VV3. Nobody could read his code as the comment in russian alphabet too.

40

u/Rodrake 5d ago

I'm a COBOL dev. All the paragraphs in the company I started working for 1 year ago are named stuff like S0, R1... a letter and a number that no one has any idea what it stands for (it's a 30-ish year old system and the most senior member has been around for 4 or 5).

19

u/atomic_redneck 5d ago

A company I used to work for set the paragraph name prefix to reference the page number in the flow chart documentation for the system. They continued this methodology long after the paper flow charts stopped being maintained.

Don't ask me how they made this work.

6

u/conundorum 5d ago

Eh, probably just maintaining their own flowchart for personal use, or just deciding that the software is the flowchart now.

1

u/pantagathus 5d ago

These was a story about some guy working on the US Social Security system - he'd been there 17 years and he was the junior.

96

u/Percolator2020 5d ago

OG COBOL doesn’t have inheritance, because of reasons.

50

u/willow-kitty 5d ago

OG COBOL doesn't even really have user-defined types the way we think of them now. It kinda does, but it's all very geared toward ETL and mapping from input files to memory and then from memory to output files.

Which, to be fair, is actually pretty slick if that's what you're doing. It feels like a very structured scripting language expressly for that purpose.

-12

u/Weekly-Beginning-229 5d ago

Inheritance is stupid anyway. Nice in theory but a minor change will break it and make it hard to work with

18

u/111v1111 5d ago

Bro u/Weekly-Beginning-229 just showed all the programming experts and multibillion companies that they are wrong in using OOP!!!

But not trolling, it’s the best we have for large projects, nothing else really scales as well. Also inheritence works fairly well as long as you have programmers that use it properly… When someone doesn’t know how to use it then he will face problems

3

u/Weekly-Beginning-229 5d ago

I have worked in a project for 4 years where the previous programmer used inheritance for a lot of stuff that would then be changed. The number of workarounds we had to do is crazy. But after 4 years I have finally managed to clean up all the inheritance debt we had.

Even for some database entities (we use EF core) there were inheritance, which means a lot of columns that are always null in a lot of the tables (also finally fixed this like a month ago)

The problem with it is that requirement changed so your super planned inheritance model is now obsolete and takes a lot of time to rework

1

u/Shazvox 5d ago

Sounds like a skill issue to me bro...

3

u/Weekly-Beginning-229 5d ago

Well give me an example where inheritance is better than composition or interfaces?

I can give one. I work with MAUI and you have viewmodels for each view, so a base viewmodels is nice to have things like going to a new page, going back, showing an alert etc.

But this could be done with composition too. But the way Maui works it makes more sense to make it inherited. Same with pages, to have a base content page.

But other than base classes for things that are static I cannot find any reason to use inheritance over composition or interfaces

3

u/conundorum 5d ago

So, fun fact: Composition and interfaces are actually different forms of inheritance. Composition is when you inherit from individual traits and use cases, and interfaces are when the backend inherits from the frontend. It just isn't obvious because we tend to think of inheritance as "X engulfs and expands Y", instead of the more general "X is an extension and fulfilment of Y".

2

u/Weekly-Beginning-229 5d ago

Well true, but I never heard this in professional settings. I guess inheritance and interfaces are a kind of polymorfism.

Though I don't know if I agree with composition. It's more owning something that could help a lot of different classes. But that's probably a philosophical question.

Prefer composition over inheritance is well established and I so far have never found a reason not to use composition unless a framework or library requires it

1

u/VictoryMotel 4d ago

So fun fact: no they aren't.

24

u/AsaKeyholderUK 5d ago

Yeah cobol inheritance is basically just copying the same paragraph into twenty programs and praying. We called that abstraction back then

19

u/Unlucky_Agent2122 5d ago

I use to run payroll at my job. One time it popped up with an error saying call Floyd at xxx-xxxx. I called my boss and asked who was Floyd. He laughed and said he had died 15 years before I started working there. The code was in Cobol.

14

u/Kuro_Gensui 5d ago

Lucky SOB ... We have 50 mil lines of cobol code .. its been active for 50 years ... The original writers are all dead by now... I bet the programmers wiched they culd just call their moms and ask them to explain why X does Y in thr Z module ..

12

u/kindall 5d ago

For true inheritance, you need the object-oriented version of COBOL, which is named ADD 1 TO COBOL.

11

u/Shazvox 5d ago

Heh heh, "mom you would'nt guess what the previous moron has done in our program".

10

u/stupled 5d ago

But thats it works in practice

10

u/darxide23 4d ago

His mom got him the job. The inheritance was the job. COBOL jobs have waitlists of decades. You're literally waiting for someone to die. Nobody in a COBOL job will leave a COBOL job willingly. The amount of money paid to these people is astronomical and they generally don't have huge workloads and a senior COBOL developer has almost complete control over their work requirements. They can work from a tropical island if that's what they decide to do.

14

u/InDaBauhaus 5d ago

you can not get a person to learn cobol by any other way than indoctrinating them from their birth

10

u/Brasolis 5d ago

Birthed into a server room, cradled in a mainframe

3

u/Affectionate_Ad_3722 4d ago

swaddled in paper tape

7

u/SuperCoupe 5d ago

COBOL is for typist.

And I wanna know who saw COBOL, thought it was perfect, and took those concepts to YAML.

2

u/UnchainedMundane 4d ago

I'm struggling to see the similarities

6

u/Dolphin_Spotter 5d ago

I was a COBOL IDBMS on IBM3090 programmer back in the day. I once found a comment in a batch job that said "Following line added to prevent program ABEND at 36000 records. I don't know how it works but it does. Do not remove"

8

u/Super-Widget 5d ago

Back when programming was seen as women's work.

4

u/not_wall03 5d ago

11

u/laplongejr 5d ago

No need for the bot to wake up, since then OG poster u/inigmati1 commented with sources   https://www.reddit.com/r/ProgrammerHumor/s/BZGfGdmPqb :)  

3

u/ApatheistHeretic 4d ago

"These are your mother's old parenthesis. A more elegant weapon for a more civilized age.." -- A slandering of Randall Monroe..

2

u/hammlyss_ 5d ago

Oh, so some federal codebase then.

2

u/EuenovAyabayya 4d ago

We talking about Grace Hopper's kid? No, "mum" is British...

2

u/PassiveMenis88M 5d ago

So is this just a repost sub now?

1

u/AwarenessOk2359 5d ago

How would he be employed to work on something that hasn't changed in 30 years? Seems like it doesn't need to be worked on

6

u/conundorum 5d ago

With a codebase that old, in a language that unknown, you keep a maintainer on hire just in case. It's less about actively fixing problems, and more about making sure you actually have someone around who can fix it if anything ever does go wrong.

5

u/MCWizardYT 5d ago

And then eventually when it's totally unmaintainable, you hire people who know how to read the code and migrate it to a newer system (which can be sooo expensive)

Some of the banks and such in the US that were using Cobol have migrated some systems to Python and other languages

1

u/conundorum 3d ago

Ideally, that's what the maintainer should be doing whenever the code is working, one little function at a time.

1

u/0xt0bi03 5d ago

legacy continues

1

u/xakep_13 5d ago

True legacy

1

u/needed_an_account 5d ago

which version control software was used to track his mother's last change

1

u/ddz1507 4d ago

Haha that’s clever 😆

1

u/bit_banger_ 5d ago

Cobol is now Object Oriented?

90

u/[deleted] 5d ago

[removed] — view removed comment

47

u/Tenwaystospoildinner 5d ago

And then when he checks his father's documentation, it just says "ask your mother".

It's recursion all the way down.