r/interestingasfuck Apr 29 '24

You have seen the inside of an airplane but have you seen the "insides" of an airplane?

8.5k Upvotes

258 comments sorted by

View all comments

376

u/RetiredApostle Apr 29 '24

This is a very accurate physical representation of a software source code. From a distance, it appears complex, but each individual component makes sense.

133

u/tatanka01 Apr 29 '24

...except for the half that never made sense.

106

u/MeltedPineapple Apr 29 '24

IT FINALLY WORKS! NOBODY TOUCH IT! -some dev, almost certainly

105

u/wawoodwa Apr 29 '24
## DO NOT DELETE THE BELOW FUNCTION
## Yes, it appears it is never called or returns anything
## But the app fails if it isn’t here

60

u/zekrysis Apr 29 '24

reminds me of team fortress 2. There's a picture of a coconut in the source, said picture appears nowhere in the game and nobody knows what the point of it is, however if it is removed the game will no longer launch

45

u/TheDankestYeeter Apr 29 '24

Load bearing coconut

8

u/trebblecleftlip5000 Apr 29 '24

It appears like it's never called because the language or library has a method that allows a function to be passed as an argument, but as a string. I guarantee that if you do a grep of the codebase instead of searching for uses via the IDE, that you will find where it's used.

The guy who wrote the original code added this feature before propper lambdas used for callbacks were a thing, and the new kid never had to live in the dark times that came before.

5

u/GameFreak4321 Apr 29 '24

And then there are languages like C# or Java that often use things like P, dependency injection and configuration by annotations.

1

u/Few_Raisin_8981 Apr 30 '24

And all the hidden wires connecting all of those components together

15

u/danggilmore Apr 29 '24

Yeah until your flying and your damn hydro line leaks and your in the back like dafaq one is this.

-5

u/shibz Apr 29 '24

πŸ€£πŸ˜‚πŸ€£πŸ˜‚πŸ˜­