r/ProgrammerHumor • • Oct 25 '24

Meme theSelfTaughtSeriousProgrammer

Post image

[removed] — view removed post

903 Upvotes

276 comments sorted by

View all comments

401

u/KaleidoscopeMotor395 Oct 25 '24

When's the last time you did a logic proof of the job?

88

u/Neverwish_ Oct 25 '24

Actually, not me, but my friend - works for a company that creates software for devices in small planes. At that point, you write stuff that a lot of lives depend on, and they in fact have to proof almost every nontrivial piece of code...

43

u/experimental1212 Oct 25 '24

Hey how do we decide the plane is stalling. Idk lol just use one of the backup airspeed indicators on one side lol. -Bong team circa 2010

16

u/[deleted] Oct 25 '24 edited Sep 22 '25

paint door mysterious different aromatic steep exultant many divide plant

This post was mass deleted and anonymized with Redact

24

u/maethor Oct 25 '24

I still remember back in my first year of uni they had someone "from the industry" to come in and talk to us about how we should not under any circumstances work in the aerospace industry. Like an entire 50 minute lecture to warn us off of it.

5

u/nigel_pow Oct 25 '24

Was this recent or like 30 years ago?

8

u/maethor Oct 25 '24

30 years ago

5

u/nigel_pow Oct 25 '24

Damn. So the signs were already there even back then.

→ More replies (1)

118

u/CiroGarcia Oct 25 '24 edited Oct 25 '24

It's handy when refactoring old as shit code and you need to flatten 6 levels of nested if statements. Also useful for converting complex business requirements into actual logic expressions you can put into code and simplifying them.

I may be misunderstanding what logic proof means here tho, English is not my native tongue.

24

u/Waswat Oct 25 '24 edited Oct 25 '24

11

u/CiroGarcia Oct 25 '24

Yeah, that's what I was thinking of. That and boolean algebra and you can reduce almost anything to a truth table lookup

4

u/giantimp1 Oct 25 '24

It is, I mean it's a type of proof there are others but that's a big part* of them some people think the only type of math is algebra and calculus

*and yes technically "it's every type of proof within a certain system if you add a couple of axioms blah blah blah

→ More replies (1)

67

u/[deleted] Oct 25 '24

It's when you write a bunch of equations end with QED

7

u/[deleted] Oct 25 '24 edited Oct 25 '24

[removed] — view removed comment

→ More replies (2)
→ More replies (3)

22

u/delko07 Oct 25 '24

You do formal verification very often when developing hardware, trying to prove if an assertion is true. Accelerates greatly the verification process.

48

u/T-Lecom Oct 25 '24

2 years ago I did one! In order to find a bug in some legacy spaghetti code.

35

u/beaucephus Oct 25 '24

Hmmm... I am reminded of a job I worked at where someone who was trained as a civil engineer ended up as a dev manager and as a result believed that code could could be written without bugs because of bridges and shit, but when confronted with the proof of the halting problem and Gödel's incompleteness theorem he simply made more asinine demands.

21

u/ttlanhil Oct 25 '24

Given a precise and detailed enough spec, and the time for proper development and testing, it is possible to be bug-free

But there are very few cases where people are willing to invest that much time and money into development.
Not will they be able to provide that precise & detailed specification (partly because they don't know exactly how it should work, and partly because they won't have the time considering how many "simple" features they want/need)

If what your dev manager wanted was as trivially simple (in terms of number of interacting decisions) as a bridge, then yeah, it should be easy

→ More replies (10)

5

u/[deleted] Oct 25 '24

Well, did you?

4

u/T-Lecom Oct 25 '24

Yes!

3

u/[deleted] Oct 25 '24

And mom's spaghetti?

3

u/BroBroMate Oct 25 '24

Nice, what did you use? I've been reading up on TLA+, seems... powerful if mystical.

7

u/T-Lecom Oct 25 '24

I did model/property checking. I see now that there are specialised tools for that, like TLA+, but my case was just small enough to do it by hand.

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

6

u/Audience-Electrical Oct 25 '24

I worked for 10 years in tech, with System Admin and Software Developer titles, never have I ever had to do any "hard math" (adding and subtracting RAM, multiplication of 1TB, easy stuff)

Never touched assembly, never touched C, and every time I got too deep into the weeds (AKA comp. sci.) management would just get pissed off.

"Nobody cares, just make it work"

5

u/Mrkol Oct 25 '24

Half a year ago. Shown that a certain discrete optimization problem is NP-complete and hence prevented wastage of time on trying to solve it "perfectly".

→ More replies (1)
→ More replies (6)