553
u/Aridross Jul 23 '22
As an old professor of mine was fond of saying, “Computers aren’t very smart. They do exactly what you tell them to, and they do it very well. If a computer isn’t doing what you want it to, the problem is not the computer, the problem is what you’re telling it to do.”
271
u/nipoez Jul 23 '22 edited Jul 23 '22
For my junior devs and non tech peers I shorten that to "computers do exactly what we tell them, whether or not that's what we want."
*Edit typo
35
u/growlgrrl Jul 23 '22
One of the things I stress to Jr Devs is that a bug is the gap between what you think the code will do and what the code actually does.
8
19
49
u/AydonusG Jul 23 '22
Related but not exactly the same -
Course I was doing had a program to scan your files for syntax and rules of the program, and the heads of the course said "if something is going wrong, it's not the program, it's how you're using it" and they kept saying it every time someone had an issue.
We had a test at the end of the first week where again they were repeating that the program worked perfectly and any issues were us using it incorrectly, only for every single person being unable to login to the test as the program was not in fact working correctly
14
9
u/TheHeroShadow Jul 23 '22
I like to say "Computers are like genies. They do exactly what you say, not what you mean."
→ More replies (1)6
u/adzymcadzface Jul 23 '22
Every now and then after I escalate an issue at work I get a one word response: PICNIC. Which means 'problem in chair, not in computer'.
10
11
u/bolacha_de_polvilho Jul 23 '22
Except for the somewhat rare scenario where it doesn't work due to a framework bug or even rarer a compiler bug. In that case the problem what someone else told it to do.
Or when it doesn't work because you wrote exactly what you should write according to documentation but the documentation is wrong or outdated, then the problem is what someone else told you to do.
3
u/Karsdegrote Jul 23 '22
Sometimes i do doubt whether a particular computer is speaking the right language. That moment when something acts as expected on one computer but not on the other...
2
u/BabyYodasDirtyDiaper Jul 23 '22
If a computer isn’t doing what you want it to, the problem is not the computer, the problem is what you’re telling it to do.
Tell that to my malfunctioning GPU.
1
u/HighOwl2 Jul 23 '22
Until you have a failing CPU and then it occasionally does whatever the fuck it wants.
Hardest bug I ever had to diagnose...wasn't a bug...it was failing hardware. Shit sucks even worse on cloud compute infrastructure.
→ More replies (4)1
u/BhortleMyCalls Jul 23 '22
Yes but see I told my code to do this, which told another section to do this, which called this from that, and that then loaded this, and then this displayed it to the user, and then that grabbed some data from that other place which was fetched (using 3000 lines of SQL) from that one table with a RIGHT OUTER LEFT JOIN and then brought into that other place which did some stuff and then finally spat out the rest of the things to the user
So now I'm sitting here looking through all of these this's and that's trying to figure out where tf the code is actually breaking, and trying to think who the hell thought MVC was a good idea
141
u/Proxtx Jul 23 '22
Once my code didn't work because these was an error in Chrome. I was incredibly angry until they fixed it...
57
u/LvS Jul 23 '22
I once found a bug where gcc emitted wrong code. That was the day I started calling myself "senior software engineer".
44
u/creed10 Jul 23 '22
the thing with finding compiler bugs is you have to be EXACTLY 100% sure beyond a shadow of a doubt that your code is flawless
34
26
u/LvS Jul 23 '22
Or you file a bug in the gcc issue tracker with a testcase and get the bug confirmed and fixed by the developers.
That's what I did.
51
u/KaamDeveloper Jul 23 '22
Once my code didn't work because it also had to work on IE11. I was incredibly angry until management decided to drop support for IE
30
Jul 23 '22
Thank god Microsoft has finally killed it
9
u/KaamDeveloper Jul 23 '22
I don't have to write any more polyfills and for that I am thankful.
3
u/ZylonBane Jul 23 '22
I would like to go back in time and murder whoever coined that meaning of "polyfill". To any sensible non-web programmer that term means "polygon fill".
5
u/slazer2au Jul 23 '22
Too bad it will be around forever. We have a couple of our government customers on AVD asking to keep IE on them because the systems they use only work on IE.
→ More replies (4)4
Jul 23 '22
once my code didn’t work because I was using my compiler wrong and I spent too much time debugging and tinkering until I realised I need to change profession
2
4
u/average_vark_enjoyer Jul 23 '22
I was going crazy trying to fix a search issue using ElasticSearch until I found a GitHub issue where the devs were like "oh yea this is fucked up, probably won't fix it for a while" REEEEEEE
113
u/bwowndwawf Jul 23 '22
Me: "Position: Sticky"
Div: Not being sticky
God I hate CSS
69
u/AzureArmageddon Jul 23 '22
Web code is merely a suggestion to the whims of the web gods, splintered among a vast and diverse pantheon, for whom the truth of their tales differs between each teller. - Someone.
9
u/_Weyland_ Jul 23 '22
"Internet is arcane knowledge. Some people may have designed it. Some people may have created it. But as we started adding more into it, we lost that arcane knowledge somewhere along the way. All we can do now is keep it operational and plug new working things into old working things. If something deep down breaks and stops working, there won't be anyone to fix that. We're fucked."
my friend who has shitty ISP and/or shitty connection and struggles with unexplainable errors each time he tries to play online.
→ More replies (2)42
u/Untitled__Name Jul 23 '22
Me: "Hey Javascript, can you do this?" JavaScript: "Sure!"
Me: "Hey CSS, can you do this?" CSS: "I will kill your family. Also your layout is broken now, have fun"
3
u/GayButMad Jul 23 '22
I recently took the time to dive in and really try to learn grids. I feel like I've barely learned shit because css is entirely black magic fuckery but the last couple of UI pages I've had to build have come together beautifully so some of it must be sticking.
8
u/_GCastilho_ Jul 23 '22
I was doing that yesterday
You need to define top/bottom for it to work
3
2
u/MRGrazyD96 Jul 24 '22
Also if any of the elements around it have
overflowproperty defined it won't work
114
Jul 23 '22
I got very angry for 10 minutes today because I reread my code ten times and still couldn't see why it wasn't doing what it was supposed to. I stepped away for 10 minutes and came back to it realizing I made a typo and there was a bracket in the wrong place.
So long story short I've learned nothing and will get angry at my code tomorrow when it doesn't immediately work.
37
u/NeedHelpWithExcel Jul 23 '22
So many times…. “Why isn’t my variable printing to the console??”
*looks at code
Console.logo(data)
7
Jul 23 '22
Mine was something along the lines of "if x[i] === x[j]" but what I actually typed was "if x[i === x[j]]". Dumb shit.
10
u/NoCryptographer1467 Jul 23 '22
The fact that this even compiles is an atrocity in itself
→ More replies (2)→ More replies (1)2
43
u/OraJolly Jul 23 '22
I am the father fixing a car yelling at my kid to bring me tools, and the code is my confused son holding a torchlight in his hand and tears in his eyes for not understanding.
88
u/gdobn Jul 23 '22
Simple: be mad because the code doesn't do what it intended to do.
46
u/KaamDeveloper Jul 23 '22
Look code, I intended you to be efficient and clean. You didn't keep up your end of the bargain!
9
4
21
u/doa70 Jul 23 '22
Written on the board on the first day of my first programming class, circa 1983:
I hate this machine, I wish they would sell it. It never does what I want, Only what I tell it.
Never forgot that little bit of wisdom.
17
Jul 23 '22
I always know I need to rtfm when I keep rerunning my code without really changing anything significant and I start to think the language is broken.
tl;dr: "No, I KNOW there is nothing wrong with this code"...
*finds something wrong with this code
16
u/Curley15 Jul 23 '22
I've litterally had a moment my code gave me a black screen. 3 reloads later without having changed anything it just... works.
17
7
10
u/MSDakaRocker Jul 23 '22
I never blame my code, I blame the dipshit that wrote my code.
2
7
7
7
u/seeroflights Jul 23 '22
Image Transcription: Text and Image
me: *gets mad at code for not doing what I coded it to do*
the code doing exactly what I coded it to do:
[Image of a white cat with brown fur at the top of its head. It has large watery eyes, and is gingerly holding up a small thumbs-up.]
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
4
4
u/Icelandic_Invasion Jul 23 '22
Reminds me of a quote: "Computers never do what I want them to, only what I tell them to."
3
3
3
Jul 23 '22
Look, half the time, it's definitely me.
But half the time, between me and the code is a FrAmEwOrK that makes all sorts of decisions about what I do and do not want and make my life easier by only letting me use very high level concepts that are completely unintuitive unless you've been living exclusively in that world. Just let me write my own loops!
3
u/artysmissiv3s Jul 23 '22
This is totally not relatable… wdym!? My computer just hates me and doesn’t listen to me, obviously
3
2
2
Jul 23 '22
Interesting way of looking at that sort of problem. "Well it's fucked cause you fucked it dummy" lol.
2
2
u/joopsmit Jul 23 '22
I really hate this damn machine,
I wish that they would sell it.
It never does quite what I want,
but only what I tell it.
Author unknown
2
u/FlyByPC Jul 23 '22
Sounds like Day 1 of Intro to Programming:
"The good news is, it will do exactly what you tell it to. That's also the bad news."
2
u/DrunkenFistStyle0 Jul 24 '22
The creation reflects perfectly the imperfection of his creator, see this comment as programming and religious symbolism.
2
1
1
1
1
Jul 23 '22
Don't worry guys i'll just create 1000 blank elements in this java array, no way is anyone gonna get upto let alone past 999
1
1
u/dewey-defeats-truman Jul 23 '22
The great thing about computers is that they do exactly what you tell them to do.
The worst thing about computers is that they do exactly what you tell them to do.
1
u/code_monkey_001 Jul 23 '22
I worked with a dude who, when confronted with a major defect in the feature he'd been assigned, replied "it works as coded", as if that resolved the issue and his keyboard diarrhea had redefined the requirement. No shit, Captain Tautology. All code "works as coded". Doesn't mean it's right.
1
u/unnecessarycharacter Jul 23 '22
“Computers don’t make mistakes. Computer programmers make mistakes.” —A high school teacher of mine
1
u/ahumanrobot Jul 23 '22
One time I was in a class and the IDE was fucking with me doing some weird shit
1
1
Jul 23 '22
Me trying to figure out why something wasn’t printing when I never called the function the print statement existed in
1
1
1
u/RandomAnimeWeebs Jul 23 '22
I think more anxiety is felt when the code you made works first time without any errors whatsoever
2
1
1
u/Imaginary_Manner_556 Jul 23 '22
I get mad at the computer for being so dumb that I have tell it everything it needs to do.
1
u/Solrex Jul 23 '22
Oh no guys, John is going crazy from coding. Guess we lost another one to believing code is an animated living creature.
1
u/scoreboard777 Jul 23 '22
the code in the silent "man you build me like this and i run like what you code without the slightest difference"
1
1
1
1
1
1
Jul 23 '22
I want this meme to be turned into a black mirror episode about a programmer just psycho gaslighting a sentient program he wrote...
1
u/howarewestillhere Jul 23 '22
Me: Why is this variable always null? Code: You keep using that variable. I do not think it means what you think it means.
1
u/Helagoth Jul 23 '22
I regularly shout at my computer "do what I want not what I'm telling you to do!"
1
1
Jul 23 '22
Pro tip: You can avoid this common pitfall by coding to painfully vague requirements. As long as you don't really know what you want your code to do, this is never a problem.
1
u/ITriedLightningTendr Jul 23 '22
Just do exclusively async programming and you'll never be at fault.
1
u/Th3At0mB0mb Jul 23 '22
Coding is great because when something doesn't work it's always your fault 👍
1
1
Jul 23 '22
When I encounter logical error, I always hear Nick Burns say "Oh, it's C that's stupid and not you right?"
1
1
u/serlagsalot Jul 23 '22
"A machine will do what you tell it to do, not what you want it to do"
My high school CS teacher implanted this in our heads.
1
u/shinydewott Jul 23 '22
Me:
WHAT DO YOU MEAN TAG IS NONE? I SET IT HERE IN LINE 144!!
Computer who just read “tag == x.name” at line 144:
1
1
u/EngineerBill Jul 23 '22
"I hate my stupid computer,
I think I'm going to sell it.
It never does what I want it to,
Only what I tell it..."
anon
1
u/justinlanewright Jul 23 '22
The great thing about computers is that they always do exactly what you tell them to do. The terrible thing about computers is that it's really hard to know what you're telling them to do.
1
u/pm_me_i_ll_read Jul 23 '22
And it's almost impossible to figure out what other coders in your team told them to do
1
u/Indifference4Life Jul 23 '22
It's never my fault until I realize that it was definitely my fault. Every. Damn. Time.
1
1
1
u/t230nu Jul 23 '22
Software won't always do what you want but it will always do what you program it to do..... Every Damn Time!
1
u/Red_Angry_Potato Jul 23 '22
Me today in unity:
The code: object x non referenced
Me: i told you to reference object x
The code: still not found
Me: its not my fault, stupid engine!
Me after 1 half an hour: dafuq i didn't referenced the right object >:(
1
u/elgabiss29_xd Jul 23 '22
El codigo cuando lo pongo a funcionar en un pc tostadora: me pican los cocos
1
1
u/damca10 Jul 23 '22
1
u/RepostSleuthBot Jul 23 '22
I didn't find any posts that meet the matching requirements for r/ProgrammerHumor.
It might be OC, it might not. Things such as JPEG artifacts and cropping may impact the results.
I'm not perfect, but you can help. Report [ False Negative ]
View Search On repostsleuth.com
Scope: Reddit | Meme Filter: True | Target: 75% | Check Title: False | Max Age: Unlimited | Searched Images: 289,728,726 | Search Time: 1.10004s
1
1
1
u/mosu95 Jul 23 '22
Happened alot.. and then iliterraly drew flow charts after to make myself understand why is it behaving that way. Realising after that the whole thing was wrong.
1
u/Technical-Bat-5198 Jul 23 '22
the problem is when you don't know why it isn't working properly, and you realize taht it's just a couple of things that you didn't write well, or they're not in their right place you know, so you got angry for a little detail.
1
1
1
u/juanvaldezmyhero Jul 23 '22
stupid code. doing what i told it to do instead of what i want it to do!
1
1
1
1
u/timsterri Jul 23 '22
Can’t tell you how many times my first assumption when something I was so convinced was going to work didn’t was that the computer must’ve had a weird glitch. 😂
1
1
Jul 24 '22
I like to insist my code is lying to me, knowing damn well its incapable of doing so. It's part of my process.
1
1
u/rk06 Jul 24 '22
Sometimes I really want to curse the idiot who wrote so many bugs in my project, but I have to remind myself that "past me" had good intentions.
1
1
1
1
1
1
u/Just_a_diy_dude Aug 05 '22
The code always does what you told it to do.... The code never does what you want it to do.
1
Aug 19 '22
I mean when its my fault I kind of understand, but I just spent 2 WHOLE DAYS TRYING TO FIX A BUG IN A PROJECT JUST TO LEARN THAT APPARENTLY FOR SOME REASON REACT RUNS CERTAIN THINGS TWICE WHEN IN STRICT MODE TO "eNsurE tHaT tHeRe aRenT aNy sIdE eFfectS" BULLSHIT IF I WANTED THAT FUNCTION TO RUN TWICE I WOULD HAVE RAN I TWICE MYSELF I HOPE WHOEVER CAME UP WITH REACT STRICT MODE AND WHOEVER MADE IT THE DEFAULT IN NEXTJS STUBS THEIR TOE EVER HOUR OF EVERY DAY AAAÀAAAAAAAAAAAAAAAAAA
1
u/matyklug Jul 23 '22
I find this meme to be here way too often and it's not really that funny anymore.
It really depends how deep you go. Technically speaking everything is doing what it should because laws of physics are rigid, but that's not really useful.
You can have bugs at so many layers the computer will, in fact, many times not do what you told it to do. That is unless you think of the layers below as doing what someone told them to do, including the hardware layer which can have bugs too.
Many times you can't debug the layers below because they are too complex. Thus the computer is just not doing what you told it to do and you have to work around it.
Thus is programming if you don't control the whole stack, and even at that point you have one layer below you, laws of physics.
2
u/bmothebest Jul 24 '22
Surprised I had to scroll so far to see something to this effect. The number of times the issue isn't the code, but the server, the certificate, SSL, outdated cache, specific browser, network issues, hardware issues, etc. etc. Most frustrating thing to troubleshoot
2
u/matyklug Jul 24 '22
Yep, also compiler bugs, hardware bugs, just bugs in the programming language, in a library, in a kernel, wrong documentation, in another program...
→ More replies (1)1
u/HighOnBonerPills Jul 23 '22
You can have bugs at so many layers the computer will, in fact, many times not do what you told it to do.
But aren't bugs still a byproduct of the code you wrote? In other words, the computer doing what you told it to? I mean, if there's something malfunctioning at the hardware level, I don't suppose that's the programmer's fault. But in most cases, aren't bugs created by the person writing the code? After all, the fix is typically to change some aspect of your code, which would indicate that's where the problem lies, right?
2
u/matyklug Jul 24 '22
Most programming involves writing in the upper layers, almost never do you control the entire stack.
You can change your code to work around someone else's issue, but that's not a fix, that's a workaround.
You can hit
Library Bugs
Compiler Bugs
Kernel Bugs
Operating System Bugs
Implementation Bugs
Browser Bugs
Other 3rd-party Bugs
Buggy API implementation on a server
And a lot more.

1.8k
u/grpagrati Jul 23 '22
Sometimes I revisit old code and find so many bugs I'm like, how did you ever work?