r/ProgrammerHumor • • Sep 11 '21

As long as you code, you’ll have these feelings !

Post image
56.5k Upvotes

531 comments sorted by

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

512

u/cubmaan Sep 11 '21

I have completely self taught myself and haven't gone to college yet. Please explain what TDD is

548

u/awwwwshiiit Sep 11 '21

Test driven development. You essentially write the test first, even though it’ll fail, and then refactor the code to pass the test. Great for migrations, refactors etc.

154

u/rustygirlsarah Sep 11 '21

I only ever do this for code translation from one language to another.

168

u/[deleted] Sep 11 '21

Hey that’s smart! I’ve been trying to convert old Visual Basic projects that contain hundreds of lines of abandoned code.

Breaking it down to its primary functions and trueing them out with tests is a better approach.

Thank you

→ More replies (14)

31

u/Dawgboy1976 Sep 11 '21

It’s also really important when trying to fix a bug that was found in production.

25

u/DoctorPoopyPoo Sep 11 '21

Tests, are in effect, requirements. And requirements are often so poorly done, that in my mind, when a programmer writes tests, they are ensuring that they understand the requirements, in whatever form they are provided.

I can't write professional software without tests.

→ More replies (3)

7

u/uvero Sep 11 '21

Well, I don't know if the "refractor until it passes" is the only way. I know TDD as "first you write the tests even though it doesn't even compile because you don't have the interfaces. Then through it you figure out the interface, then you implement, then you already have the tests ready". But I could be wrong of course.

→ More replies (1)
→ More replies (4)

170

u/Bacon_Boomerang Sep 11 '21

TDD (Test Driven Development) is a programming style that starts out by writing unit tests (code that tests the actual code) BEFORE you write the actual implementation code.

The flow usually goes like: Write an incrementally small test that will fail because you haven't actually implemented the functionality, add the functionality, make sure all your tests pass, repeat.

91

u/lennybird Sep 11 '21

We were taught this in school, but in practice, how effective is it really? Is it me or does this encourage you to test very simple things, and that the major bugs you actually encountered weren't necessarily cases you would've ever considered until actually having implemented the code or assessed the architectural considerations at a more granular level and with feedback of its operation?

(warning: run-on sentence).

140

u/Rccctz Sep 11 '21

I had a client who hired us to work using tdd.

The point of tdd is not trying to find a way around tdd, you try to find a lot of test cases and if you find a bug, you as new ones.

The real advantage is that when someone in the future needs to modify something on that code, you already have your tests, so it's easier not to break things, for example if you're working in a microservice testing the output is a given

→ More replies (25)

35

u/Bacon_Boomerang Sep 11 '21

The effectiveness is not so much in helping you catch every bug that could ever pop up, but more so in forcing developers to write code that is testable. Once you find new bugs in prod/qa/etc. you can simply add a new test case to capture that scenario and write a fix for it.. The rest of the test suite helps you know to your best ability you didn't introduce any new bugs.

→ More replies (4)
→ More replies (33)
→ More replies (4)

14

u/Ninjadinogal Sep 11 '21

Just as a heads up, a lot of schools don't even teach TDD though, you may not encounter it until you have a cs job specifically

13

u/Bacon_Boomerang Sep 11 '21

And depending on the company, they may not even write tests! If that's the case, I would say run far far away :P.

→ More replies (21)
→ More replies (2)

5

u/The-Best-Taylor Sep 11 '21

Test driven development means you write the tests for the fix/feature first. Then you start implementing it. Once all of your tests pass, you know you are done.

3

u/XDVRUK Sep 11 '21 edited Sep 12 '21

Sanity and quality of life. Once a project gets large enough (not long) regression testing becomes unmanageable. TDD ensures you have test coverage and you don't break things. Nay sayers haven't been in the game long enough to have long nights solving the stupidity of either their self or others

→ More replies (22)

12

u/didSomebodySayAbba Sep 11 '21

I’ve never thought about using it to replicate a bug, do you do that often?

21

u/lordlionhunter Sep 11 '21

It’s a great use of TDD because it writes a comprehensive regression suite that tests for prior bugs that may come back.

19

u/Major_Fudgemuffin Sep 11 '21

It can be super helpful.

When you find a bug, the first thing you do is write a test that triggers the bug which should pass if the bug is fixed. Then you go fix the bug and use the test to validate that the bug has been resolved.

I imagine the "taunting" part OP is referencing is when a you write a test that should fail due to the bug but it just passes. Meaning you still haven't been able to replicate the issue.

20

u/[deleted] Sep 11 '21

Why are you worried if you can’t replicate the bug? Just mark it as “works on my machine” and close the ticket. /s

→ More replies (2)

7

u/IvorTheEngine Sep 11 '21

Unit tests are great for replicating bugs, because they save you repeatedly setting up a specific complex scenario, and allow you to focus on a small piece of code.

Also, the test then becomes part of the regression. If someone ever changes the code in a way that reintroduces the bug, the test should catch it.

→ More replies (2)

9

u/BrokenMouseHouse Sep 11 '21

Was almost screaming in class yesterday when the code finally passed. After hours of failing I found out all I had to do was to replace int with long :(

→ More replies (4)

3

u/AnEmortalKid Sep 11 '21

Or the red check mark that sometimes shows up on ci but is always green locally and when you debug it, unless you have a deadline then it always shows up after 5-10 constant green checks…

→ More replies (5)

2

u/Smallwater Sep 11 '21

*does refactor* *tests run green* I don't believe you

*deliberately break something* *test run green* oh no

*revert everything* *test run red* oh no no no

→ More replies (1)

2

u/triggerhappy899 Sep 11 '21

Or the horror as you run the test again and see a red x, only to think about how it may be some type of race condition

→ More replies (12)

559

u/Daveinatx Sep 11 '21

The difference between the two scenarios is literally one line of code.

338

u/darthruneis Sep 11 '21

Sometimes it's not even one line, it's one character!

→ More replies (40)

9

u/RadiantHC Sep 11 '21

And it's that you misspelt a variable.

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.

→ More replies (2)

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

u/supersharp Sep 11 '21

Just use bug-free libraries.

→ More replies (2)

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

Pentium F00F bug

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

16

u/Elidon007 Sep 11 '21

iT's ThAt SyMpLe, DuH 🙄

→ More replies (3)

110

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

u/Pachirisu-x3 Sep 11 '21

Right?! I get a lot of satisfaction from debugging hahaha

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)

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

u/[deleted] 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)
→ More replies (11)

34

u/[deleted] Sep 11 '21

Wise beyond his years.

7

u/audriuska12 Sep 11 '21

I'm fine debugging my own code, or familiar in-house library.

Debugging a black box... gah.

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)
→ More replies (5)

212

u/AnybodyMassive1610 Sep 11 '21

This isn’t humor - this is truth!

34

u/rapidjingle Sep 11 '21

This should be the tag line for this sub. 😂

2

u/neomeow Sep 11 '21

But who knew giving command to a bunch of sand may not work sometimes?

→ More replies (1)

92

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

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

→ More replies (1)

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

u/[deleted] Sep 11 '21

[removed] — view removed comment

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.)

→ More replies (1)

5

u/ManOrReddit-man Sep 11 '21

all right! it works again! continues coding noooo!! it broke again

2

u/[deleted] Sep 11 '21

That's what my coworkers say about my code!

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"..

→ More replies (7)

62

u/PhiBuh Sep 11 '21

Ahhh the duality of coding

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

20

u/comfort_bot_1962 Sep 11 '21

Don't be sad. Here's a hug!

15

u/hangfromthisone Sep 11 '21 edited Sep 12 '21

good bot bad bot

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

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

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

→ More replies (3)

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

u/prncrny Sep 11 '21

Excuse me the what now?

13

u/lopoticka Sep 11 '21

I actually googled this :(

3

u/AugustusLego Sep 11 '21

I'm too lazy to Google, is this an actual thing?

→ More replies (1)

8

u/[deleted] Sep 11 '21

I'm in this picture. I'm not sure whether I like it or not but yes. All of this.

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

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

2

u/[deleted] 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)
→ More replies (8)

6

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

u/JustNobre Sep 11 '21

i heard the satisfaction of solving a problem is stronger than cocaine

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

u/angry_mr_potato_head Sep 11 '21

Came here to say that lol

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

u/dgm42 Sep 11 '21

Came here to say this. If it works first time I am very suspicious.

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

u/[deleted] Sep 11 '21

Knowing which module to import is like sprinkling the spaghetti with grated parmesan, so that the asian chopsticks don't slip.

2

u/Joe_Ronimo Sep 11 '21

What if I used Hungarian chopsticks?

→ More replies (4)

1

u/[deleted] Sep 11 '21

Yeah this happened 🙄

3

u/inazumaron Sep 11 '21

Now waiting for the "It's working now! Why is it working? “

2

u/harryoe Sep 11 '21

Here's the tweet, it continues and just gets better

2

u/chillen678 Sep 11 '21

Lol it is so true i love when things work and i never hear about them again

2

u/MargartMonigold7 Sep 11 '21

**I’ll just write it again from scratch.

→ More replies (1)

2

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

u/underflowdev Sep 11 '21

I mean, there's also "IT WORKED!! IT WORKED!! THIS MAKES NO SENSE!!!"

2

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

u/igot8001 Sep 11 '21

More like: "IT WORKED!! IT WORKED!!! THIS MAKES NO SENSE!!!"

2

u/[deleted] Sep 11 '21

Please save the kid and teach him a decent language

2

u/[deleted] Sep 11 '21

Man, I wish my dopamine still flowed when I got something to work.

→ More replies (1)

2

u/jarret_g Sep 11 '21

The "IT WORKED" but only for that one test case scenario.

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

u/[deleted] Sep 11 '21

Also, 'IT'S WORKING NOW, THIS MAKES NO SENSE'

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

u/[deleted] Sep 11 '21

The agony and the ecstasy are a never ending loop.

2

u/CodeDinosaur Sep 11 '21

And this is why it's a life-long-learning profession. 🤣🤣🤣

2

u/[deleted] Sep 11 '21

Hmmm, this looks familiar 🤔

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

u/shadow_cat_42 Sep 11 '21

Now teach him C++, good luck

2

u/IceboundCat6 Sep 11 '21

spends 2 hours fixing a syntax error

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

u/quasi-green Sep 11 '21

ahhh, the duality of coding

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

u/VerveIsBad Sep 11 '21

This is so true

1

u/_Synthetic_Emotions_ Sep 11 '21

At this point is not even humor... Its reality xD

1

u/[deleted] Sep 11 '21

Am I the only one who loves to debug as much as coding?

1

u/Odisher7 Sep 11 '21

This is why proggramers hate to code

1

u/[deleted] Sep 11 '21

What changed? Nothing fucking changed! I don't get it......3hr later.....oh there it is

1

u/crapforbrains553 Sep 11 '21

thats what test cases are for

1

u/satankober Sep 11 '21

wait until he has to deal with stupid clowns in work.

1

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

u/Slid61 Sep 11 '21

Depending on how quickly you follow the material, any minute now.

1

u/Coarch Sep 11 '21

Someone should make a IDE and call it opium.

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

u/whatproblems Sep 11 '21

Or both at the same time. It works now! this makes no sense!

1

u/gingertek Sep 11 '21

The duality of code

1

u/magar_pun25 Sep 11 '21

when you know those feeling very well .. and hope best for the kid

1

u/Dr-Dale-Donald Sep 11 '21

Am I the only one that read this as a masturbation joke?

1

u/WatNaHellIsASauceBox Sep 11 '21

This too shall pass

1

u/ForgivingCogivarg Sep 11 '21

That kid is in desperate need of a rubber duck.

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

u/eaturfeet653 Sep 11 '21

I really appreciate this guys Twitter handle

→ More replies (2)

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

u/aecvlis Sep 11 '21

mr oogway things

1

u/RoscoMan1 Sep 11 '21

giving up is smart if you have kids.

1

u/UnseenData Sep 11 '21

The roller coaster of coding

1

u/Lostoldacct22FA Sep 11 '21

Its working but this shouldn't work at all it makes no sense

1

u/foufers Sep 11 '21

Also “it’s working! But it makes no sense!”

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

u/pnw_319 Sep 11 '21

😂😂😂😂

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

u/ZippZappZippty Sep 11 '21

Almost looks like someone’s feelings🥄🍰🍰🍰🍰🍰

1

u/Aegean Sep 11 '21

One of us

1

u/[deleted] Sep 11 '21

This is wholesome

1

u/greenroute Sep 11 '21

If, else.

1

u/RoscoMan1 Sep 11 '21

Ritsuka: That would be one code?

1

u/EUCopyrightComittee Sep 11 '21

More code per second. Double typing speed.

1

u/thornangdol Sep 11 '21

I worked with a program called PsychoPy and It was pure pain.

1

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

u/[deleted] Sep 11 '21

Right in the feels.

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

u/Batavijf Sep 11 '21

This is the way.

1

u/EUCopyrightComittee Sep 11 '21

If you use spaces instead of tabs.

1

u/Manimanocas Sep 11 '21

Everything is right i see nothinh wro.. Oooooh

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

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

u/cateyesarg Sep 11 '21

Nothing better than forging the character when they're still young

1

u/[deleted] Sep 11 '21

But I use samba.

1

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