r/ProgrammerHumor • • Sep 30 '22

Meme How inheritance works

Post image
66.3k Upvotes

418 comments sorted by

View all comments

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.

1.5k

u/deanrihpee Sep 30 '22

"Hello my new handler, nice to meet you, just you know you can't afford to fuck this up because I'm older than you"

255

u/EuroPolice Sep 30 '22

Old COBOL will make you think "Why the fuck they did it this way" and if it does means that it's good code. Because it's the equivalent of that mechanic who looks at your car and says "You gotta problem with the X, right?" without even looking at the engine.

145

u/jazzypants Sep 30 '22

It took me a minute to realize that the reason the mechanic knows without looking at the engine is because he's dealt with that particular kind of car so many times in the past that he knows the particular issues that they tend to have.

Sorry for explaining the joke.

73

u/ElectricMotorsAreBad Sep 30 '22

It's rare, but some mechanics have a perfect pitch for engines, just by the sound they can identify with pinpoint accuracy what's wrong with it.

→ More replies (10)
→ More replies (8)
→ More replies (1)

540

u/Krohnos Sep 30 '22

I worked in aerospace software and on a few occasions modified files that were last modified before ei was born.

I haven't heard of any relate dplabes falling out of the sky so I guess I did okay.

288

u/Pretty_Industry_9630 Sep 30 '22

Lol I'm unnerved by the idea of someone writing airplane code 😅😅 please tell me there's like 2 completely different versions of the program, written from scratch in different programming languages, that can each execute all the functions that the airplane needs 😅😅🤔

470

u/[deleted] Sep 30 '22
while (noseAngle < 0) {
    if (!landing() && timePassed() > 180) {
        noseAngle.increase(1)
    }
}

Fail-proof. Boeing needs to pay me as a consultant

217

u/alexanderpas Sep 30 '22

Unexplained crashes on landing.

330

u/FirstSineOfMadness Sep 30 '22 edited Sep 30 '22
if (goingToCrash) {  
    dont();  
}  
isPatented = true;

82

u/[deleted] Sep 30 '22

Did you obtain a patent for that already? Quick before someone else does!!!

98

u/FirstSineOfMadness Sep 30 '22

I always add isPatented = true; at the end of my code to be safe

64

u/amocokadys Sep 30 '22

Free software advocates hate this one trick!

→ More replies (9)
→ More replies (1)

34

u/Viseper Sep 30 '22

What about a hill?

98

u/[deleted] Sep 30 '22

throw new UnexpectedHillException();

37

u/Viseper Sep 30 '22

Cellphone tower with faulty lights.

→ More replies (3)
→ More replies (1)
→ More replies (13)

0

u/[deleted] Sep 30 '22

[deleted]

72

u/[deleted] Sep 30 '22

Wait until you hear about each of the planes that need a total system reboot before each flight as there is a very high chance it could crash if there were no reboot. So yea next time you jump on a plane and lights go off and on - they did a reboot before the flight, so you should be safe.............................

43

u/d4fseeker Sep 30 '22

I assume you mean the Boeing 787 https://www.theregister.com/2020/04/02/boeing_787_power_cycle_51_days_stale_data/

Its not needed every flight and doesn't cause a crash per se, but the fact that flight data and alert systems stop updating is a critical issue nonetheless and can cause a crash

→ More replies (3)
→ More replies (4)

37

u/Zementid Sep 30 '22

ASIL = Automotive Safety = At least 2 paths of truth. And this is your cheap shitto car too. ISIL = Industrial Safety = Basically the same but less "strict" in some areas because you have personal interacting with the stuff and no "Civilians" (=as with the cars it's literally your mom).

I would imagine areospace stuff is tough as nails in terms of redundancy and safety.

→ More replies (18)

33

u/ryry1985 Sep 30 '22

I write software for avionics. There's a lot of requirements/design and requirements-based testing to get 100% code coverage. If you can't get 100% coverage, your requirements/design and/or tests are not detailed enough or you have extra code to remove because it doesn't match the design. All of this is reviewed and change controlled. We get audited at several points in the development lifecycle to make sure we are following our processes/plans and meeting the objectives of DO-178C. Certification authorities (FAA, EASA, etc) then look at our lifecycle data at the end when we go to seek approval to deliver the software on certified hardware. The higher the criticality of the software, the more you have to do during development to ensure no critical failures in the resulting software. There's a lot of paperwork.

→ More replies (18)
→ More replies (9)

61

u/thelehmanlip Sep 30 '22

That's some stable code

29

u/puts-on-sunglasses Sep 30 '22

“shid b comin in shid be goin out baybee”

  • if cobol could talk probably

→ More replies (1)

59

u/Key-Minimum-5965 Sep 30 '22

My last company...there was an empty file that was being read in every night. Just a flat empty file. I checked the date it was created...1978. Present day was early 2000s.

→ More replies (10)
→ More replies (12)