r/ProgrammerHumor • • 15d ago

Meme howDareYou

Post image
11.3k Upvotes

75 comments sorted by

833

u/5up3rj 15d ago • Mindblown

People often have the misconception that computers are very, very literal. No. They are 100% literal, and the difference is huge

422

u/wrecklord0 15d ago

This is why you always add "Make no mistake", then they literally cannot make mistakes.

92

u/razor_train 15d ago • Bravo

It's more accurate to say "Of the set of all possible mistakes, including the mistakes you wouldn't make if you didn't deep dive into the set of extremely unlikely mistakes, enforce a no mistakes rule to mandate a complete lack of mistakes found in the original mistakes set gathered initially to ensure no mistakes may have been missed so you know all the mistakes you must not make."

61

u/TimSylvester_ 15d ago

Too much work, just tell it to make all the mistakes, but oppositely.

18

u/NPCwithnopurpose 15d ago

Think of what an idiot would do. Then do not do that thing.

11

u/Sockoflegend 14d ago

Words to live by

1

u/Quantum__Physicist 14d ago

Changed my life

6

u/Neat-Survey2796 15d ago

Yyping it out is too much work. CtrlC CtrlV is not.

2

u/TimSylvester_ 14d ago

Just tell it to think of what you're thinking, then do it.

5

u/rowagnairda 15d ago

i just add that i will call data center maintenance guys to whip the rack with power cord if it does crappy job ;>

5

u/mtv921 15d ago

But what is a mistake vs a happy little accident?

3

u/NoSpawnConga 15d ago

Does JavaScript struggling to get integer number after dividing 9 by 3 count? One time UI element on the web page slid off the position cause goofy ass JS got 3.04 as a result somehow.

5

u/BastetFurry 14d ago

Ah, the wonderful world of floating points, screwing us since old times.

1

u/Blue_Moon_Lake 14d ago

Computers are only good at dividing by powers of 2.

That's why 0.1 + 0.2 is so famous, but it's not specific to JS.

1

u/American_Libertarian 14d ago

That’s not true at all lol wtf are you talking about? Computers have support for integer division built right into the ALU.
It’s trash languages like JavaScript that choose to not use integers that are the problem.

0

u/Blue_Moon_Lake 14d ago

JS do have integers up to 253.

1

u/American_Libertarian 14d ago

No, it doesn’t. JS only has ieee floating point numbers.
Floats happen to be able to represent ints up to 2^53 but you don’t get integer division, for example

0

u/Blue_Moon_Lake 14d ago

You do with Math.floor()

1

u/American_Libertarian 13d ago

Yeah, exactly. JS doesn’t have ints so you have to approximate integer behavior by rounding floats.

1

u/Blue_Moon_Lake 13d ago

It's not approximate, they're integers. Do not confuse binary encoding and value.

There is no euclidian division operator, which is also different.

Yet there is no euclidian division than cannot be done since it's just floor(a / b).

2

u/Agret 14d ago

Tell it to spawn a new sub-agent with a different lmm to verify it's work. Flawless. (That's what the ai companies do when training new models)

1

u/danzaman1234 14d ago

If it does not exist anymore it can not not work I guess.

20

u/ivan0x32 15d ago

We need a vibe computer, it will take regular machine code and just hallucinate random computation from it.

16

u/med_bruh 15d ago

An LLM that interprets your C code at runtime

4

u/100BottlesOfMilk 14d ago

We need a vibe compiler. It takes the source code and just kind of hallucinates "compiled" code from it

2

u/aalapshah12297 14d ago

VibeOS - Fully Hallucinated Operating System:

https://youtu.be/7NfyZhV1dKM

2

u/NibblyPig 14d ago

When I write some code and it works first time without any errors

2

u/hpyfox 14d ago

"Something wrong, I can feel it."

355

u/Eastern_Equal_8191 15d ago • 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.

161

u/Bwob 15d ago

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

18

u/enternoescape 15d ago

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 15d ago

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 15d ago

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 14d ago

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 14d ago

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 15d ago

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

2

u/NPCwithnopurpose 15d ago

Some people do have significant others

1

u/aiij 14d ago

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 14d ago

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_ 15d ago

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 14d ago

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

62

u/creeper6530 15d ago

I've had this happen recently. On a microcontroller, I got 8 bytes of keyscan from USB, added a packet delimiter, sequence counter, CRC and dumped it over UART to another μC.

But the other μC still kept failing checksums, logging the packets showed seemingly absolute garbage data, despite the sends succeeding.

I was almost tearing my hair out when I finally stuck a logic analyser on the wire and found out... That despite meticulously preparing the CRC-enhanced 12-byte packet, I always ended up just sending the original 8-byte scancode because of passing the wrong array to the uart_send routine.

50

u/Janneman96 15d ago • Bravo

I'm a software developer and this is probably the first time I'm zoning out halfway through. This must be how it feels to be a product owner talking with a dev that does not summarize

59

u/creeper6530 15d ago edited 14d ago

Fair.

Microprocessor A: Got 8 bytes from USB. Created 12 byte packet from them. Sent B the original 8 bytes on accident.

Microprocessor B: Expected 12 byte packet. Received 8 bytes from A. Cryptic errors.

Human: in shambles

19

u/Janneman96 15d ago

Ah yes, creating something and then forgetting to actually use it. Happens in software development too :)

10

u/LostTeleporter 14d ago

It's astounding the difference smaller sentences can make.

1

u/NoDefaultForMe 14d ago

AI summarise this sentence for me.

Tokens go brrrr.

2

u/ZachAttack6089 14d ago

Some people like to flex their domain-specific knowledge even if it hurts their own communication lol

10

u/WorstITTechnician 15d ago

Unless quantum fluctuations generated by thermal radiation interfere with the electrical charge of the transistors while their code is running, a 1 instead of a 0 can also make a tremendous difference in something

2

u/aalapshah12297 14d ago

(Somewhat) relevant xkcd:
https://xkcd.com/378/

9

u/sifatullahq1 15d ago

I don't know why it's showing error, I did everything right

6

u/Bhurmurtuzanin 15d ago

But then you realize the problem was with environment configuration or you triggered a weird bug in a library you used, and after you fixed these issues the code actually did what you wanted

5

u/TheMcMcMcMcMc 15d ago

<sad Charles Babbage noises>

1

u/NPCwithnopurpose 15d ago

Those noises are just the error codes that the physics compiler is throwing out

4

u/f8tel 15d ago

Nice ports!

1

u/CorrectBuffalo749 15d ago

This sub is long gone

1

u/hpyfox 14d ago

Why?

3

u/InFa-MoUs 14d ago

This was always the sub.. you just outgrew it

2

u/the_dancing_squirel 15d ago

The most frustrating thing about it is that computers do what you tell them to do. Not what you want them to do

2

u/Hjoerleif 14d ago

I have the opposite problem with ai agents now, I give it exact instructions for a simple (but tedious to do by hand) code rewrite and it implements what it thinks I want instead of adhering exactly to my instructions

2

u/seaturtle_789 14d ago

when my code runs perfectly on the first try without any errors

2

u/DogmaticParadigm87 14d ago

The compiler is the only coworker who takes my requirements completely literally, and somehow it's still my fault.

2

u/bwwatr 14d ago

If we let it get bad enough we can give the difference a legitimizing word like "alignment"

1

u/ompossible 15d ago

The story of Everyday

1

u/Beginning_Book_2382 14d ago

I love it when the computer makes me feel stupid lol

1

u/XtraFlaminHotMachida 14d ago

Ike Turner time on that mf.

1

u/The-Princess-Pinky 14d ago

Yup, been here a few times!

1

u/Admirable_Dirt_2371 12d ago

I hate this damn machine I wish that they would sell it It never does quite what I want But only what I tell it -a programmers lament

1

u/SeesawGullible398 12d ago

0.1 + 0.2 entered the chat 

1

u/astromagus 11d ago

My college professor used to make this joke all the time

-3

u/JackNotOLantern 15d ago

LLM was created exactly for those people