r/ProgrammerHumor • • Jul 23 '22

Meme Every damn time.

Post image
66.7k Upvotes

257 comments sorted by

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?

88

u/IBN_E_KHAN Jul 23 '22

Yesterday I was looking at the code I wrote during my freshman year.

I kept asking myself, "How tf did this sh*t even work??" Lol

892

u/dorkmania Jul 23 '22 edited Jul 23 '22

When I go over old code, I can't help but exclaim something like 'what kind of idiot wrote this!?' despite being aware of exactly who wrote it.

Edit: If git blame's got you feeling down, presenting: git-blame-someone-else.

264

u/[deleted] Jul 23 '22

the other day I was refractoring some modules and swearing for whoever idiot wrote those lines of code and surprise it was me ...

180

u/ShadeFK Jul 23 '22

"Of course I know him, he's me!"

0

u/[deleted] Jul 23 '22

[deleted]

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

52

u/DelcoScum Jul 23 '22

Going back and seeing all your !!! TOFIX!! comments feels like the archeologists discovering the people of pompeii frozen in time.

28

u/bolacha_de_polvilho Jul 23 '22

// TODO:

Also known as "i should get back to this but probably won't"

10

u/TurtlePig Jul 23 '22

create an issue/task/whatever and link it in your to-do comment

→ More replies (1)

11

u/cabramattaa Jul 23 '22

Your code is like that child that doesn't succeed in doing anything no matter how many tuition, soccer and piano lessons you put them through

→ More replies (1)

36

u/[deleted] Jul 23 '22

But always remember that idiot is who made who you are today

22

u/DrakonIL Jul 23 '22

Truly, the most idiotic thing that guy ever did.

23

u/Drunken_Ogre Jul 23 '22

Look at these assholes... claiming to be able to read their old code. Pffft... That shit is gibberish!

16

u/Captaincadet Jul 23 '22

Lol so in work this week I was going through a code and a bug and thinking “which idiot programmed this… of course it’s going to crash”

Looked up in git blame… came back as me 6 weeks back

11

u/countzer01nterrupt Jul 23 '22

That is a good thing, as it implies improvement of your skills and an increase of your experience over time.

10

u/FlyByPC Jul 23 '22

When I go over old code, I can't help but exclaim something like 'what kind of idiot wrote this!?' despite being aware of exactly who wrote it.

2010s-me+: Pretty decent code, commented, modular, and easy to maintain

2000s-me: Fairly modular, with some comments and useful variable names

1990s-me: Some functions and modularity, but mostly spaghetti code.

1980s-me: GOTOs. Line numbers. LET statements. Single-letter variables. No comments. Allllll the bad habits.

(Kids, don't learn programming on a TS/1000.)

6

u/HighOnBonerPills Jul 23 '22

You've been at it since the 80s? Damn, you're an OG.

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

1

u/DJThomas07 Jul 23 '22

If I had a dollar for every time this joke is posted on this sub..

5

u/dorkmania Jul 23 '22

You'd have almost enough money to pay yourself to write a bot to automate your response.

→ More replies (8)

38

u/royi9729 Jul 23 '22

Whenever I show colleagues my code, I start frantically thinking about ways to refactor it.

I often have more comments than the one doing the CR.

30

u/MSDakaRocker Jul 23 '22

I have never felt imposter syndrome more than the day we decided to update to new standards in a project we created 2-3 years ago.

Looking at my code thinking that I should just quit and become a potato farmer.

18

u/invisibo Jul 23 '22

3 years into potato farming: "how the fuck did these even grow?!"

4

u/choicesintime Jul 23 '22

“Looking at my potatoes thinking I should just quit and become president”

4

u/invisibo Jul 23 '22

4 years into being president: “how the fuck did I not get kicked out of office? I should run again”

13

u/OrangeVapor Jul 23 '22

It didn't really.

You were just looking at it as a proud parent. You didn't really care that it shit itself, you were happy it walked.

Now you go back and watch your 24 year old shitting themself while trying to walk and it's not so impressive.

6

u/Ok-Stage-6981 Jul 23 '22

༼ つ ◕_◕ ༽つ 🍪

5

u/noob07 Jul 23 '22

I am currently doing KT for a project I am leaving. I have to walkthrough some of the services and I mostly excliam, this shouldn't be written like this or which idiot wrote like this. Then i check the blame and I see I wrote that 6 months ago. This has happened way too many times now.

4

u/[deleted] Jul 23 '22

It's amazing because I'm not a programmer and i can relate to this.

4

u/capcadet104 Jul 23 '22

That's the secret.

It never did.

3

u/bevelledo Jul 23 '22

Me looking at the code I wrote two weeks ago lol

2

u/WarHundreds Jul 23 '22

Sometimes I get a ticket where I have to write new code in a component that I’ve worked on previously. And sometimes I look into the code written in that component thinking, who’s the asshole that wrote this?

Git blame says I was that asshole.

2

u/kdwebb Jul 23 '22

What's worse is looking at it and thinking, What the f*** was I thinking

1

u/[deleted] Jul 23 '22

We want it to be better than us

1

u/raymendx Jul 23 '22

Sentient code.

1

u/iavicenna Jul 23 '22

then you fix the bug but actually realize it was not a bug but a previous fix to an edge case bug

1

u/tei187 Jul 23 '22

Sometimes I revisit old code and hope that no one is using it anymore cuz it's just dangerous.

1

u/tappinthekeys Jul 23 '22

That's why being new is great. Everything I write is perfect because I don't fully test things. So I don't know bugs exist. Ignorance is bliss.

1

u/[deleted] Jul 23 '22

It's not really a bug then. More like a vulnerability in hiding.

1

u/comp_scifi Jul 24 '22

This is what AI will think of us.

1

u/[deleted] Jul 30 '22

"It's her CHOICE"

24

u/[deleted] Jul 23 '22 edited Jul 11 '23

[removed] — view removed comment

7

u/HighOnBonerPills Jul 23 '22

That's actually kinda sick. You had very limited knowledge, yet you didn't let it stop you from coding something interesting just because.

2

u/ModPiracy_Fantoski Jul 23 '22

End of year projects for IT option in high school do that. "Learn to code in two weeks and code something whose grade will count in the country's most important exam's mark".

1

u/AutoModerator Jul 10 '23
import moderation

Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

return Kebab_Case_Better;

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

→ More replies (2)

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

u/nipoez Jul 23 '22

Oh I like that a lot

19

u/Legend_is_me Jul 23 '22

*what we want

Thanks in advance for correcting it

18

u/nipoez Jul 23 '22

Joys of mobile keyboard while waking up. Thanks for letting me know.

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

u/Aridross Jul 23 '22

Something something, decidability problem, something something

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

u/B4-711 Jul 23 '22

PEBCAK

2

u/HighOnBonerPills Jul 23 '22

What's this one?

3

u/B4-711 Jul 23 '22

Problem exists between chair and keyboard

→ More replies (1)

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.

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

→ More replies (4)

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

u/wsbTOB Jul 23 '22

Hmmm, guess I’ll never find one

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

u/[deleted] 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

u/[deleted] 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

u/Proxtx Jul 23 '22

Only logical conclusion. If you can't fix your problems just ignore them.

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

u/_Weyland_ Jul 23 '22

Instructions unclear.

Defined power bottom.

2

u/MRGrazyD96 Jul 24 '22

Also if any of the elements around it have overflow property defined it won't work

114

u/[deleted] 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

u/[deleted] 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)

2

u/_Weyland_ Jul 23 '22

Console.loco()

→ More replies (1)

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

u/raoasidg Jul 23 '22

I am altering the deal; pray I don't alter it any further.

4

u/[deleted] Jul 23 '22

Damn it! Start doing what I want you to do, not what I told you to do!

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

u/[deleted] 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

u/AlternativeAardvark6 Jul 23 '22

Put it in a loop and ship it to production.

7

u/jk147 Jul 23 '22

You mean the ol clear cache and restart trick?

Stupid cache.

10

u/MSDakaRocker Jul 23 '22

I never blame my code, I blame the dipshit that wrote my code.

2

u/iamGobi Jul 23 '22

which is you

9

u/MSDakaRocker Jul 23 '22

That would be a correct assessment.

5

u/[deleted] Jul 23 '22

4 AM me is different than competent me. Can't be to blame for that idiot's mistakes.

7

u/GameCult_PixelBro Jul 23 '22

Do what I mean, not what I say

7

u/kilkil Jul 23 '22

me raging at the punch card for having a hole punched in the wrong place:

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

u/PapaGynther Jul 23 '22

the compiler is always right

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

u/Ok-Stage-6981 Jul 23 '22

༼ つ ◕_◕ ༽つ🍪

3

u/These_Hair_3508 Jul 23 '22

“Look buddy, I’m not mad, just really disappointed.”

3

u/[deleted] 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

u/dapperslendy Jul 23 '22

Why arent you working!!!… oh wait i forgot a colon

2

u/boadie Jul 23 '22

DWIM: Do What I Mean!!!

2

u/[deleted] Jul 23 '22

Interesting way of looking at that sort of problem. "Well it's fucked cause you fucked it dummy" lol.

2

u/[deleted] Jul 23 '22

2

u/DreamlyXenophobic Jul 23 '22

Do what i want you to do, not what i tell you to do dammit!

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.

1

u/DingoCertain Jul 23 '22

Stupid code doing what I tell it to do instead of what I want it to do

1

u/tochigi Jul 23 '22

code never dissapoint me

1

u/The_Truce Jul 23 '22

I still don’t get it

1

u/[deleted] 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

u/DKSAMURAI Jul 23 '22

Is human error.

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

u/[deleted] Jul 23 '22

It's that darn word "exactly". Why can't it read my head?

1

u/[deleted] 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

u/freudian-flip Jul 23 '22

Do what I meant! Not what I said!

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

u/Fuzzy-Help-8835 Jul 23 '22

“Wait a minute, wtf is going on here?” 😂

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

u/UserSnafu Jul 23 '22

Been there, done that. too many times

1

u/DetachedHat1799 Jul 23 '22

You only have yourself to blame

1

u/AutoXmachine Jul 23 '22

“Assumed”

1

u/LGamerDelta Jul 23 '22

I heard that coding takes a lot of math. Man it must be hard.

1

u/7cents Jul 23 '22

ffs read the room code

1

u/[deleted] 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

u/amhedplayzxx Jul 23 '22

I tried codeing my CMD to download GitHub and my modules didn't work

1

u/[deleted] 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

u/high_WHILE_droolin9 Jul 23 '22

my facial expression

1

u/[deleted] 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

u/Notyourfathersgeek Jul 23 '22

The compiler is always right man

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

u/[deleted] Jul 23 '22

Coding, basically fighting your own stupidity over and over again.

1

u/Technomage_Galen Jul 24 '22

Or someone else's stupidity (Pentium FDIV bug)

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

u/[deleted] Jul 23 '22

Do what I want not what I write dammit!

1

u/GReaperEx Jul 23 '22

UB-chan leaves the chat

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

u/[deleted] Jul 23 '22

Poor code 😭

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

u/MG420KID Jul 23 '22

The Matrix

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

u/quasipickle Jul 23 '22

The code does what I told it to do - not what I wanted it to do.

1

u/[deleted] Jul 23 '22

*not doing what wanted it to do

1

u/juanvaldezmyhero Jul 23 '22

stupid code. doing what i told it to do instead of what i want it to do!

1

u/LordM4x Jul 23 '22

Yeah i hate it when it does what i say and not what i want

1

u/bvttfvcker Jul 23 '22

*What's stopping you from coding like this*?

1

u/Impressive_Change593 Jul 23 '22
def toggle_pause(player):
    player.pause == True

I feel you

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

u/KeyWillingness9301 Jul 24 '22

Nooo lil code kitty I’m sorry, it’s not you it’s me 🥺

1

u/[deleted] 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

u/Obnomus Jul 24 '22

and then me who always thinks to code but never code

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

u/Drakoo_The_Rat Jul 24 '22

You just gave me a meme idea thanks

1

u/comp_scifi Jul 24 '22

code has feelings too

1

u/Ce1avac Jul 30 '22

But I counted for you from 1 to 5, with slight pauses in between! See?

1

5

3

4

2

1

u/Lelentos Aug 02 '22

But that's not what I INTENDED.

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

u/[deleted] 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.