r/ProgrammerHumor • • Oct 09 '26

Meme howDareYou

Post image
11k Upvotes

75 comments sorted by

View all comments

355

u/Eastern_Equal_8191 Oct 09 '26 • Popcorn

The cool thing about code is that it always does what's written.

The bad thing about code is that it always does what's written.

162

u/Bwob Oct 09 '26

I really hate this damned machine.

I sometimes wish they'd sell it.

It never does quite what I want.

Only what I tell it.

-A sign on the wall of my comp sci lab

19

u/enternoescape Oct 09 '26

I remember when someone was hypothesizing about a new coding language using an LLM as the compiler. The further down the rabbit hole they got about dealing with consistency, the closer they got to re-inventing traditional coding, but still less predictable and worse. So you comment only holds true so long as this hypothetical compiler is never born.

15

u/ABotelho23 Oct 09 '26

From a single programmer's perspective, it isn't really true. Libraries have bugs, dependent code has bugs, firmware has bugs and even sometimes, hardware has bugs. Fundamentally it's more or less all human error, but the code I write doesn't always give the expected or designed result.

28

u/mmhawk576 Oct 09 '26

I mean, I’d love to be able to frame it like that, but like 90% of the bugs I encounter aren’t in third-party software…

8

u/ItchyConfusion9745 Oct 09 '26

To be fair, having 10% of your problems being outside of your controle tells me you are a really good programmer. I can almost never blame anything other than myself, because I'm bad

1

u/Grumbledwarfskin Oct 10 '26

It's easy to blame more than 10% of your problems on stuff outside your control...just be bad enough that you can't comprehend where the bug in your own code could possibly be.

Looking at you, Object emptyCell = new Object(); // with a random hashcode that occasionaly causes unexpected collisions

2

u/zackarhino Oct 09 '26

You're confusing what you want with what you specified.

2

u/NPCwithnopurpose Oct 09 '26

Some people do have significant others

1

u/aiij Oct 09 '26

It's still doing what's written, even when you include code that you didn't write yourself. Hardware bugs can happen of course, but they are pretty rare.

1

u/ABotelho23 Oct 09 '26

If using a library, and the library says it behaves one way, but actually behaves another, it's not really doing what's written from my perspective.

If I pass two numbers into a function that is supposed multiply them, but then it returns the sum, it's not really doing what I wrote.

1

u/Aelig_ Oct 09 '26

How far does this go though? I wonder when was the last time that a popular instruction set had a bug in it.

1

u/timok Oct 09 '26

I once had a comment change the output of some code. So yeah...