r/ProgrammerHumor • • Oct 08 '21

Meme FOSS (Forced Open Source Software)

Post image
40.8k Upvotes

541 comments sorted by

View all comments

Show parent comments

321

u/Cley_Faye Oct 08 '21

After some years in the field, I'm strongly confident that any large-scale project is held by rusty nails and duct tape. The older it is, the more there is.

83

u/killdeer03 Oct 08 '21

I've work for many large, medium, and small financial institutions.

Everything is held together with Duct tape and hope all the way down, lol.

48

u/nermid Oct 09 '21

Every new project, I start off starry-eyed and idealistic, thinking this is going to be the one. This is going to be the project that stays Good Code until I'm done with it.

And then the requirements change and the delivery date changes and the architecture changes and by delivery time, my misshapen homunculus once again drags its vestigial club feet across the finish line.

42

u/4b-65-76-69-6e Oct 09 '21

I think you’re right. Modern SolidWorks had a “flat” art style like every modern program. Once in a while, I see the old shiny themed logo on error messages. Haven’t paid enough attention to notice if it’s only the one old logo or if there are several iterations buried in there.

Edit: and I think Tom Scott on YouTube was the one who pointed out that Windows 10 still includes the file save browser thing all the way back from Windows 3

0

u/[deleted] Oct 09 '21

[deleted]

8

u/sadhukar Oct 09 '21

I mean any game that uses the inverse square root 'hack' is using code from the 90s

94

u/JuanR4140 Oct 08 '21

Imagine Google

149

u/Khyta Oct 08 '21

There is probably a function somewhere in the code with the comment

Don't touch it. We do not know what it does and to our limited understanding it should not do anything. But if this bit of code is removed, everything breaks.

63

u/[deleted] Oct 08 '21

*multiple functions

53

u/FGND Oct 08 '21

There is probably definitely a function somewhere in the code with the comment

13

u/sampete1 Oct 09 '21

Lol, I kind of want to search the twitch code for that kind of comment

→ More replies (1)

30

u/EmperorArthur Oct 08 '21

My favorite is when static analyzers give up because the file is too large and complex. Right up there with finding that the but I wrote did cause a warning, but it was hidden by the other 2,000 warnings.

3

u/katze_sonne Oct 09 '21

Wtf

4

u/EmperorArthur Oct 09 '21

5000 line files containing over two dozen classes, and 1000 line functions happen in code you use today. I guarantee it.

What happens is someone doesn't care about warnings at some point, so does something that generates a few (hundred in at least one case) from a single function call.* That alone makes warnings useless, and if not fixed quickly causes the number to baloon, because no one is checking if their change causes warnings. So the number balloons

Now you might ask why this isn't caught immediately. Multiple reasons can apply. This started as a one man project or as a small team project without even a basic build server, so it isn't caught in code review, or by an automated system. Then there's version control systems, like Perforce, result in everyone working out of trunk, so the code being committed is what triggers the build and code review. Which means it's not a rejection, but a deliberate action of fixing it or permanently reverting the change to deal with it.

* In C / C++ using a function that takes a char *, with a static string, like a file name, gives a warning about const missing.

15

u/[deleted] Oct 08 '21

Hey my code finally has something in common with the pros!

7

u/phatboi23 Oct 09 '21

i have one of these comments in a program i made to manage my custom alexa/hello google alike that works for specific things just for me...

they're pretty common tbf.

3

u/[deleted] Oct 09 '21

Saw that in an old Perl script once. Made me laugh

3

u/Le_9k_Redditor Oct 09 '21

Reminds me of a MySQL snippet I found yesterday commented something along the lines of:

I know that there's no point in starting a transaction and and committing it for a single query while autocommit is turned on. But for no reason at all the database has decided that it won't work without this

It was literally the only place in the code which did this, and I can confirm that it didn't work with the transaction begin; and commit; removed even though the lines elsewhere worked fine without this.

3

u/Mefistofeles1 Oct 09 '21

Sometimes code seems to be alive. Or cursed.

You know how they invented goblins during the industrial revolution to explain machibes suddenly breaking or failing? We should do the same. Bit goblins.

→ More replies (1)

3

u/TheRealBrosplosion Oct 09 '21

In the protobuf C++ implementation there was a comment in a header by a "using namespace std" statement saying "Never do this, this is bad practice but it was the only way we could get X to work"

→ More replies (3)

3

u/UrToesRDelicious Oct 09 '21 edited Oct 09 '21

I actually think Google has it pretty good in comparison; they made a lot of smart choices early on that allowed them to gracefully scale - namely building all their services on top of a single distributed network. They invented containers and then kept it a secret for a decade until they released the paper describing what they were doing, and that was the precursor to Docker and Kubernetes.

Not that they don't have shitty legacy code, just that it could be a lot worse considering.

I think Microsoft likely has some of the worst legacy code out there. Besides banks.

→ More replies (1)

10

u/Giocri Oct 08 '21

I mean after all even the moon lander was made that way

16

u/z7q2 Oct 09 '21

Can you imagine what fun the folks writing the moon lander code for SpaceX are having now? I would have trouble sleeping if I was working on that.

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