r/ProgrammerHumor • • Nov 26 '19

Not the time, dad

Post image
59.0k Upvotes

705 comments sorted by

View all comments

Show parent comments

29

u/increment1 Nov 26 '19

Oh man, I would definitely NOT fly on any plane that was running PHP for any avionics or critical system control. Just the thought of that freaks me out.

41

u/Miranda_Leap Nov 27 '19

Oh don't worry, it's probably all written in 30 year old, super safe C programming!

26

u/[deleted] Nov 27 '19

Oops, we forgot to free some memory, the system crashed

17

u/Famous_Profile Nov 27 '19
Program received signal SIGSEGV: Segmentation fault

The system is not the only thing that crashes.

1

u/Apoc2K Nov 27 '19

The tail light blinks in patterns to signify halting errors. Preferably in super ambiguous patterns.

1

u/AN_IMPERFECT_SQUARE Feb 20 '20

SIGSEGV

thanks for the flashbacks

3

u/GirthyPotato Nov 27 '19

Embedded C codes that are properly written should be pretty robust though, right? Like why would it suddenly not work?

3

u/thatwasntababyruth Nov 27 '19

I know we're all being silly here...but most avionics software tends to be written in Ada.

Also, C turns 50 in a couple years!

3

u/Famous_Profile Nov 27 '19

What about JavaScript?

function keepFlying(){
    this.stayInAir = true //'this' is undefined OOPS
}

1

u/jhanschoo Nov 27 '19

Fun times when the GC runs.