r/ProgrammerHumor • u/taralino • Sep 11 '21
As long as you code, you’ll have these feelings !
559
u/Daveinatx Sep 11 '21
The difference between the two scenarios is literally one line of code.
338
9
→ More replies (2)2
u/alimbade Sep 12 '21
Last week I lost 2 hours for a missing optional chaining that was making my whole app freeze when inputting data in a field.
572
u/NullPointerJunkie Sep 11 '21
I remember an 11 year old coder I met. I remember what he said: "I love coding. It is the debugging part I do not like."
385
u/themiraclemaker Sep 11 '21
JuSt wRİtE bUgfreE CoDe
37
u/Roflkopt3r Sep 11 '21
We kinda get there, to the point where we almost never make serious errors in our own code. But the moment we use frameworks and libraries it all goes to shit because almost nothing is documented clearly and 99% of our debugging is wasted on finding out how their shit is supposed to work.
22
12
u/SaintNewts Sep 11 '21
Until the bug isn't in your code but in the compiler... or the hardware (F00F bug)
17
u/WikiSummarizerBot Sep 11 '21
The Pentium F00F bug is a design flaw in the majority of Intel Pentium, Pentium MMX, and Pentium OverDrive processors (all in the P5 microarchitecture). Discovered in 1997, it can result in the processor ceasing to function until the computer is physically rebooted. The bug has been circumvented through operating system updates. The name is shorthand for F0 0F C7 C8, the hexadecimal encoding of one offending instruction.
[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5
→ More replies (3)16
110
Sep 11 '21
I love debugging. It's got to be the most satisfying part of coding (besides building out a new feature that works as expected on the first shot). Programming is great, because 99% of the time the code does exactly what you tell it to do, so it's just a matter of figuring out which steps in the directions you weren't clear enough on.
36
29
u/Pluckerpluck Sep 11 '21
My enjoyment of debugging is inversely proportional to how quickly I can run a test.
The shorter the turn around, and the quicker I can spitball ideas, the more enjoyable by far.
13
u/Interplanetary-Goat Sep 11 '21
My enjoyment is proportional to how much of the underlying code I wrote/understand deeply.
100% my code plus a couple APIs with good documentation? Debugging is fun.
Ticket for an unreproducable crash in my employer's 40-year-old database code? Not so fun.
→ More replies (2)8
→ More replies (11)14
u/GuyWithLag Sep 11 '21
building out a new feature that works as expected on the first shot
Yeah, that's a sign that the actual issue is hidden / not tested for.
Nothing non-trivial works perfectly the first time (granted, the level of triviality rises with experience, but slower than you might think).
9
Sep 11 '21
I wouldn't say nothing. I've definitely built out a number of functions over the years that worked as expected first try. Was the code optimized or perfect? Not necessarily, but they did everything they were supposed to.
→ More replies (1)34
7
u/audriuska12 Sep 11 '21
I'm fine debugging my own code, or familiar in-house library.
Debugging a black box... gah.
→ More replies (5)13
u/cubmaan Sep 11 '21
I learned how to code at 10 and unfortunately my first language was Javascript
7
u/Kbowen99 Sep 11 '21
That’s about the same time I started programming, also with JavaScript lol. Pretty sure I just googled “easy programming language to learn” and ended up there. I remember making a bunch of screwy webpages to play around with different things, but anything bigger was hell. Ended up quitting for a while, and getting back into it with C#/Java in HS. God do types and structure make everything so much easier for me.
Modern JavaScript has come a long way from then.
→ More replies (2)
212
92
Sep 11 '21
It really is a rollercoaster for the ego. I hit another dip just today. Tomorrow i’ll solve it and feel like God-junior again
16
u/axesOfFutility Sep 11 '21
I hit a dip on Thursday. I was churning it over in mind right until I fell asleep. It affected other things I was doing. Solved it Friday and I'm still on that high 🤣
→ More replies (1)11
u/greenpeppers100 Sep 11 '21
That's my debugging methodology. Hit bug. Try to resolve it. Fail. Get up and get food/caffeine. Realize I'm an idiot. Fix bug. Repeat.
6
u/axesOfFutility Sep 12 '21
"Go to sleep now we'll see it in the morning" is same as "have you tried turning it off and on again" but for our brains
7
u/WebDevMom Sep 11 '21
Yeah, what usually happens is my brain starts to fry around 2pm and I CANNOT figure out the problem. And because I’m stubborn, I keep banging my head against it for a couple of hours instead of doing something else. Then the next day, when I’m fresh, I see the problem in like 45 seconds.
160
u/redditinmyredditname Sep 11 '21
Don't forget the rare, slightly concerning, but mostly satisfying "Wait, that works?"
63
u/Jlove7714 Sep 11 '21
Then you add a comment stating "I have no idea why this works but don't touch it."
28
Sep 11 '21
[removed] — view removed comment
→ More replies (1)9
u/SuperFLEB Sep 11 '21
Actually, it segfaults unless the word "statement" is in the WriteLine. No idea why.
(That actually reminds me of an issue I had with a WordPress installation that, luckily, I only had a passing interaction with. There was some issue somewhere in it that it would fail to post anything with one certain word in it. I don't remember exactly what it was-- something like "great". No clue why it did, and it got decommissioned before anyone ever found out.)
5
2
→ More replies (7)2
u/benkelly92 Sep 11 '21
The annoying "it works, but it shouldn't and I don't know why and I kinda need to know because I know it'll probably break in prod and cause me nightmares"..
62
34
u/EsotericBananas Sep 11 '21
Got that right! A few nights ago i reviewed an assigment, in which i thought i was throwing an arrayoutofbounds exception. Then came to realize (15 minutes later) i was forgetting my arguments in the command line. What a joy!
50
u/hangfromthisone Sep 11 '21
"So, if I become a programmer, will I be happy or sad?"
Yes
→ More replies (2)20
23
u/HJSDGCE Sep 11 '21
I taught myself Python 2 months ago and have been working on this one project ever since.
It hurts.
9
u/Slid61 Sep 11 '21
Sometimes you gotta find that spot that's giving you trouble and approach it from a completely different angle.
→ More replies (3)
19
u/clemesislife Sep 11 '21
→ More replies (3)27
u/RepostSleuthBot Sep 11 '21
Looks like a repost. I've seen this image 4 times.
First Seen Here on 2020-09-05 89.06% match. Last Seen Here on 2020-09-21 95.31% match
I'm not perfect, but you can help. Report [ False Positive ]
View Search On repostsleuth.com
Scope: Reddit | Meme Filter: False | Target: 86% | Check Title: False | Max Age: Unlimited | Searched Images: 243,920,677 | Search Time: 0.58004s
9
25
u/Nihmrod Sep 11 '21
Have him check out the Teletubbies Python Tutorials.
34
u/Francisco123s Sep 11 '21
Holy shit the Teletubbies have branched off in the weirdest directions since I stopped watching them as a kid
→ More replies (3)16
13
3
8
8
u/RepostSleuthBot Sep 11 '21
Looks like a repost. I've seen this image 4 times.
First Seen Here on 2020-09-05 89.06% match. Last Seen Here on 2020-09-21 95.31% match
Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]
View Search On repostsleuth.com
Scope: Reddit | Meme Filter: False | Target: 86% | Check Title: False | Max Age: Unlimited | Searched Images: 243,932,927 | Search Time: 0.24686s
7
u/MischiefArchitect Sep 11 '21
He should check the compiler parameters
7
Sep 11 '21 edited May 27 '24
hateful aromatic cooperative party dinosaurs elastic support judicious mountainous groovy
This post was mass deleted and anonymized with Redact
12
u/MischiefArchitect Sep 11 '21
just between us both...
<whispering>that is the intended joke</whispering>
→ More replies (1)
6
u/Beelzebub_Deceiver Sep 11 '21
Wishing I could have been started early with programming. I've attempted learning dozens of times over the last decade but I think I have a learning disability combined with never finding a course that caters to my learning style. They're all like "Here's a pile of information good luck!". I cannot retain that information if I don't know what to do with it.
7
u/Jlove7714 Sep 11 '21
It may just be my learning style, but I find it best to find problems to solve and figure out how to solve it with Google. Over time you learn a lot and it isn't just a fire hose of info.
→ More replies (4)3
u/adeptdecipherer Sep 11 '21
I’m someone who also doesn’t vibe with structured courses or infodumps-as-training, and I program for a living today. I was privileged to have my own pc as a kid, but I’m exclusively self taught.
If the courses don’t work for you, have you tried also going rogue? I’ve gone on GitHub, searched for fun keywords, and learned by reading others’ code. The way I started was editing GORILLAS.BAS to change the game rules. Starting with something working and experimenting is overlooked, but that’s often how we learn skills best.
→ More replies (8)2
Sep 11 '21
For me, the only way to learn languages is to find or com e up with a project and just start googling "how to do x in y language" until i can put enough pieces together and things start to click
→ More replies (1)
6
Sep 11 '21
Yep. I decided to pull out a web scraper I made for a college project from two years ago on a new computer and could not figure out why it wouldn't work properly. Turns out it required 3 different packages rather than the two I initially thought it needed. The feeling of relief was great. And now I know why virtual environments are so important now.
6
5
u/GreyouTT Sep 11 '21
“IT’S WORKING AND I DON’T KNOW WHY!”
“Son, this too is a feeling that will never go away for as long as you code.”
4
5
u/finegameofnil_ Sep 11 '21
Why the fuck is it working now?!
dude next to you: don't fret man, if it works it works.
No motherfucker, WHY?! I gotta break it again. This just doesn't make sense.
2
5
u/Webbiii Sep 12 '21
"IT WORKS, THIS MAKES NO SENSE!"
"Son, this feeling also never goes away for as long as you code."
4
u/RobinTGG Sep 11 '21
To be honest, both of those feelings are why I started my bachelor in Computer Science last week. See you in 5 years boys, when I hope to finally understand all the memes.
2
u/cdreid Sep 11 '21
The degree wont help with that (most of what you study will have no bearing on programming). Lots of coding will. Good luck..and learn c first and remember buzzwords are the babblings of incompetants
3
u/greenpeppers100 Sep 11 '21
I really disagree, it certainly could depend on the school you're going to but atleast in my experience school started by teaching the fundamentals of programming first (vars, functions, class, ect) and started pulling in elements of computer science (data structures, algorithms, OOP), then they started abstracting the problem from there (assembly, memory management). Then they take and combine the two and teach us to build at both high levels and low levels (databases, operating systems).
To be able to understand 90% of the memes in this sub youd need less than a first years education and an understanding of just the basics of programming.
→ More replies (4)
4
u/ConfusedPolatBear Sep 11 '21
I couldn't handle that. The emotional whiplash completely fucked me up. Now I just look at memes.
3
u/alexmojaki Sep 11 '21
Try https://futurecoder.io/. It's designed to maximise the first feeling and minimise the second.
13
u/Knuffya Sep 11 '21
Coding with python kinda feels like trying to eat spaghetti with asian chopsticks.
10
Sep 11 '21
Knowing which module to import is like sprinkling the spaghetti with grated parmesan, so that the asian chopsticks don't slip.
→ More replies (4)2
1
3
2
2
2
2
Sep 11 '21
When I was learning to code and having a particularly bad time, my mentor told me, “you’re gonna have good days in programming, and bad days in programming”.
13 years later and that is still the truest shit anyone has ever said to me.
2
u/warpedspockclone Sep 11 '21
No, screw this. Last night, I was writing code like this:
if a >= b do stuff else do other stuff
And wtf it didn't work. So I added logging statements.
if a >= b do stuff. Log "a bigger than b" else do other stuff. Log "a smaller than b"
And I'm getting "34.52 is smaller than 7.68" and I'm like wtf.
The code pulls decimal data from a postgres db, then runs it through a grinder.
But then I realized this is effing JavaScript.
Attempt 3:
if Number(a) >= Number(b) do stuff. Log "a bigger than b" else do other stuff. Log "a smaller than b"
And now I'm getting "34.52 is bigger than 7.68" and I'm like jeezus effing.....
→ More replies (3)
2
u/Dr_Rhodes Sep 11 '21
My son just started his first semester at the same technical college I went to & he’s going for roughly the same programmer/ analyst program I did. It’s been a really great bonding experience for us so far. He was blown away when I walked him through one of my Phantom (SOAR) playbooks
2
2
Sep 11 '21
Programming is a deep hole of unending frustration and pain. It will bring you nothing but despair and depresion. Get out as soon as you can kid.
→ More replies (1)
2
u/brando56894 Sep 11 '21
I've had that many times in the past two years: hacking away at something for like a week, staring blankly at the code and being like "why the hell don't you work?!?!?" and then it will be quiet around me for a while and suddenly people will hear me scream "FUCK YEAH!!!"
2
2
2
2
2
u/nerdycodingnoob Sep 11 '21
Waiting for a day, when the kid bangs his head on the computer, and questions his existence, and thinks Satan is in his compiler.
2
u/anotherouchtoday Sep 11 '21
Husband has been coding for our entire marriage. He taught our son his love for tech.
Now, they code together. They are working on an app son designed for our cafe.
They argue over Phython and C++.
I freaking love this post. 😀
2
u/IamPlantHead Sep 11 '21
I had a defibrillator (implantable cardiac device) installed when I was 17 (2002). I remember I was sitting on the couch recovering from the surgery. My dad comes into the living room with a HUGE book, it was on Visual Basic. He tosses it my way, and asks me to make something and if it makes any sense. (At this point in history I wasn’t much into computers.) I sit down in front of the 486 he had set up, and I went to work. Probably 6 six hours go by and I had two programs created. And the really cool part? They worked! When I brought the programs to school the following Tuesday? They didn’t, and this reminds me of that.. haha!
2
u/Bouboulequiroule Sep 11 '21
This is pure evil to teach to a kid.
Put this man in prison for the rest of his life.
2
2
u/athaliar Sep 11 '21
Or "It works? HOW?"
2
u/cdreid Sep 11 '21
"All i did was move a parentheses in a printf and NOW you compile?"
Also "no clue what i did but it compiles im not fucking with it"
2
2
2
2
u/cdreid Sep 11 '21
Ive tried to explain #2 to people who dont code . They legit think we write stuff and the computer reads oud magical incantations and does whatever we wanted
2
u/bleedblue89 Sep 11 '21
It’s the best feeling after spending all week working on a bug and fix it after 30+ hours of hating your life and questioning your career choice.
2
u/7th_Spectrum Sep 11 '21
Nothing that sitting infront of your screen and staring off into space for 2 hours can't fix
2
2
2
u/FallingVirtue Sep 11 '21
When you know he's really got it is when you hear him yelling "IT WORKED!! IT WORKED!!! THIS MAKES NO SENSE!!!"
2
u/little_miss_argonaut Sep 12 '21
I am a high school computing teacher and I can confirm.
I can also assure you that teenage logic is weird.
1
1
u/Im_1nnocent Sep 11 '21
I wanted to commit suicide after realizing my program to print a pyramid had an inefficient and clunky code structure
1
1
1
1
1
1
1
1
1
Sep 11 '21
When something you’ve been bugged out about for ages suddenly works it’s like magic. You were so ready to believe it would never work, or never had faith in the code to begin with.
1
u/wildsimmons Sep 11 '21
I just turned 35 and am on Day 3 of learning Python. When will I experience these feelings?
2
1
1
u/KrokmaniakPL Sep 11 '21
Knowing python it probably worked because it was using something already saved in kernel. After reset it wasn't saved anymore and stopped working
1
1
1
1
1
1
1
u/acylase Sep 11 '21
I knew it will be life long incurable sickness the first moment I saw my first batch of cards punched by "the girls" (you give them the forms with printed characters, they punch the cards on their card punching machines).
That was almost 40 years ago.
I reached the terminal stage of that disease now.
1
1
u/fkrditadms Sep 11 '21
nah, no such thing as that feeling or joy or angry or yellx about it or lovex etc about it, ts just a tool, no nerdx, idts. code is just a toolkit like machinex, no nerdx feeling about it, idts
1
1
1
1
1
1
u/Jlove7714 Sep 11 '21
I love when a function doesn't do anything and you debug for hours only to figure out that you never called the function in the first place.
1
u/Skel_Estus Sep 11 '21
Have my silver, friend. I am currently taking a python course and I know how this kid feels.
→ More replies (1)
1
u/Cloud-Strife-zack Sep 11 '21
Me who just typed print(hello world) trying to wonder why programing is so hard as most programmers here say
1
u/AdeonWriter Sep 11 '21
The most annoying thing about coding is it perfectly does exactly what you tell it to do, flawlessly, every time.
1
1
u/marscout6 Sep 11 '21
When a coding problem is frustrating me I just think about how awesome I'm going to feel when I figure it out. The more frustrated, the better the feeling.
1
u/seeroflights Sep 11 '21
Image Transcription: Twitter Post and Replies
Isaac Is Laughing, @imosquera
"IT WORKED!! IT WORKED!!!" my son screamed with joy from his room.
I'm teaching him to code python and left him alone to solve a problem.
me: "Son, that feeling you had never goes away for as long as you code".
This is why programmers love to code.
Isaac Is Laughing, @imosquera
update
he's now yelling "IT'S NOT WORKING NOW, THIS MAKES NO SENSE!!!"
me: "Son, this feeling also never goes away for as long as you code."
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
1
u/89Hopper Sep 11 '21
It is an amazing feeling when you spend hours tracking down a bug in your code. You narrow down the section it is happening, you test the module, do the work and are certain it should finally work. The code compiles and you run it.
Success, I now have a different error somewhere!
1
1
1
1
1
1
1
1
1
1
Sep 11 '21
Jesus fucking Christ. I haven’t coded in 10 years but that feeling of thinking it should work but it doesn’t gives me serious ptsd. The hours I spent in the comp lab late trying to figure stuff out
1
1
u/Legalise_Gay_Weed Sep 11 '21
This is a trope on this sub that always annoys me. Experienced coders do not have this problem, which makes me sceptical about the number of actual programmers on here. I mean, it's like brick layers complaining that their wall keeps falling down.
1
1
1
1
u/ScienceBreather Sep 11 '21
Bruh seriously.
I've been doing this shit for more than 20 years, still the same.
1
u/Twirlingbarbie Sep 11 '21
There is nothing that will influence my mood as much as code. Like it really can make my mood terrible or euphoric
1
u/LastStar007 Sep 11 '21
I am convinced that nobody actually enjoys the process of programming. Those who think they do are confusing the process of programming with the endorphin rush of finishing whatever they were working on.
1
u/Ok_Enthusiasm_5833 Sep 11 '21
I'm visiting my twin granddaughters this morning, and showed one of them this.
Me: "was that funny?"
Also me: "while you were reading this, did you hear it in your father's voice? 😁"
If we get more girls in STEM, we'll get more students to torture ... 😈
1
Sep 11 '21
As you grow, the bad days outnumber the good. Like a long term addict chasing that 1st high
1
u/dublem Sep 11 '21
That high you get when everything finally comes together is like fucking heroin. And it would have to be to keep you going through the mountains of shit you have to clear to get there every time...
1
u/LowB0b Sep 11 '21
As someone who has had to deal with apparently non deterministic BS software like WebSphere, I agree. Fuck IBM
1
u/Deus0123 Sep 11 '21
In the words of a friend of mine: "A computer does precisely what you tell it to do, if it doesn't do what you want, that's because you told it to do bullshit. Unless my code isn't working, in which case the compiler is obviously having issues"
1
u/Vipitis Sep 11 '21
finally got my data frames working the way I wanted. Plotted the points and saw potential in doing clustering. There was some noise tho, so I thought just do center instead of top corner. You have the width and height values that you don't use anyway.
But instead of writing a function to update a .CSV, do the math and save it again - i through going the lazy route and just deleted all the .CSV files and run my function that generates, augments and saves the data instead.
Got an error and knew was was wrong. Decided to look at it tomorrow, didn't do it today - will do it tomorrow instead.
You get the feeling of success, but being overexcited - and run into stuff that did work before but now doesn't.
1
1
1
Sep 11 '21
Coding is like a 2 stroke engine
Either your happy cuz it worked
Or angry because it stopped doing what its sopose to Do.
→ More replies (2)
2.2k
u/[deleted] Sep 11 '21
There is nothing more validating than the green check mark of a test suite.
Unless you're doing TDD to try to replicate a bug, then its the green check mark that taunts you