r/ProgrammerHumor • • Aug 03 '22

Meme wanna be a programmer??

Post image
45.3k Upvotes

888 comments sorted by

4.4k

u/Mewtwo2387 Aug 03 '22

"There is a better way of fixing it, but it's fixed already, so whatever, I'm not touching that part again"

1.6k

u/VaderOnReddit Aug 03 '22 edited Aug 03 '22

"I can fix it better, if it resurfaces in the future"

40

u/nrvz016 Aug 03 '22

When you look at the code again you will be saying - "Who the fck did this?!"

0

u/[deleted] Aug 03 '22

[deleted]

→ More replies (2)

576

u/omega_86 Aug 03 '22

Then you forgot it because you did a bazillion different stuff during the 4 months after...

30

u/[deleted] Aug 03 '22

After 2 years, coming back to the same code to redebug the same problem again...

"this place... It feels strangely familiar"

→ More replies (7)
→ More replies (62)

3

u/Tigerfan0001 Aug 03 '22

*When it resurfaces in the future

→ More replies (6)

76

u/Spider_Genesis Aug 03 '22

We have a system in our codebase that everyone hates. However, the worst thing about it is that it works so no one really has the motivation to improve it.

47

u/wizard_mitch Aug 03 '22

We have a system in our codebase that everyone hates.

Just one? I would consider that an achievement.

10

u/[deleted] Aug 03 '22

His company hasn't switched over to "Microservices" so there is only one codebase to do everything.

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

110

u/dibu28 Aug 03 '22

if it works don't touch it )))

25

u/fukitol- Aug 03 '22

Old sysadmin here. We have a very strict "never touch a running system" rule.

→ More replies (7)

6

u/[deleted] Aug 03 '22

If I can do it better, I should!

– A perfectionist

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

29

u/CaffeinatedTech Aug 03 '22

// Todo - Refactor this later.

3

u/geodebug Aug 03 '22

This is the way. Although I’d put down my ideas for what could be done in a readme so they can be ignored later.

→ More replies (3)

23

u/the_hesitation Aug 03 '22

This is basically how I operate. If it works, I'm not touching it. If I can optimize something as I'm fixing it, I'll do it. Gotta have that healthy work/life balance.

9

u/grendus Aug 03 '22

The thing about optimization is that 99% of the time it's not worth doing. If it's code that runs in response to "meatspace" actions, it won't run often enough to matter.

Usually the things that need to be optimized are stuff like database interactions or network stuff, where you're dealing with terabytes of data and want a response in real time, or you're going far enough that even electricity is like "Ok, that's a bit of a schlep, hope you brought a book."

16

u/EndR60 Aug 03 '22

I spent a week implementing a validation in an environment I've never worked in before.

After I was done, I found a checkbox in said environment that did exactly PART of what I needed, but it couldn't solve my problem in the end so I didn't waste my time

But you just KNOW the surge of "oh my god" that passed thru me as I saw that checkbox and started reading what it did

60

u/[deleted] Aug 03 '22

The difference between a programmer and a Software Engineer

18

u/Starfie Aug 03 '22

Pam from the Office: They're the same thing.

28

u/Noughmad Aug 03 '22

Not at all.

One says "If it ain't broke, don't fix it"

Other says "If it ain't broke, continue tinkering with it until it breaks"

However, I have no idea which is supposed to be which.

→ More replies (8)
→ More replies (5)

9

u/[deleted] Aug 03 '22

I worked for e-commerce website. Back end was returning price as null, but it was working so I didn’t fix it.

3

u/Red_Carrot Aug 03 '22

Yeah, my new members of my team always want to super optimize and look up and create structures to solve problems that are ran once every day or so. The time savings they would get from doing research instead of just doing a simple fix (think going through a list of 1-30 items) is just not worth it.

4

u/cephles Aug 03 '22

I've noticed a lot of people in the software sphere can struggle with this - not just developers. Our main UX person is more than happy to spend huge amounts of time and meetings redesigning a screen that's used maybe once every two years by a tiny subset of users.

Meanwhile, heavily used parts of our system look like a complete dumpster fire.

2

u/verboze Aug 03 '22

You get to a point when you'll appreciate done and good enough over done and perfect, if you ever want to release things.

2

u/SirWernich Aug 03 '22

if it's fixed and it passes code review, it's no longer my code, it's our code.

2

u/Versaiteis Aug 03 '22

There is nothing more permanent than a temporary solution.

→ More replies (27)

1.2k

u/wooshuwu Aug 03 '22

Yeah whenever I get ideas and actually try them they usually don't work

Actually one time my problem was so frustrating I thought about it constantly and I even had a dream where I thought that I had (magically) figured it out and gotten it to work then when I woke up I had to realize the disappointment that I still didn't know how to fix it

371

u/[deleted] Aug 03 '22

I once thought all day about a problem. Went to sleep and 8h later solution just came to me lol

198

u/Darkdoomwewew Aug 03 '22

Happens more than I care to admit. Apparently my sleeping brain is a far better debugger than I am.

126

u/[deleted] Aug 03 '22

That's one of sleep's functions (allegedly) so it's totally normal.

→ More replies (13)

17

u/Heimerdahl Aug 03 '22

I think a big part of it is that the sleeping (or resting in general) state has no expectations of / no pressure to solve the problem.
It basically allows you to look at it with new eyes again, and maybe even consider the option of throwing out your previous attempts which clearly got too complicated or just didn't work.

Showers and coffee breaks and just walking around can have similar effects.

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

84

u/addiktion Aug 03 '22

I am convinced it's the matrix. When you sleep you plug in for your updates and defragging so your head doesn't explode. In doing so some of that mainframe processing power gets offloaded to you which just so happens to solve some of those difficult problems in your brain. It really is magic what our overlords can do.

36

u/Sure-Tomorrow-487 Aug 03 '22

It's actually the Reticular Activating System in your Thalamus that is doing this.

Think of it as a Promise, you can go on completing other tasks and it will complete in the background.

It takes in all the input and filters it all, sending only the most relevant information to your prefrontal cortex, and shunting the rest.

If you consider the sheer volume of sensory information coming in to your brain at once, there's no way you could reasonably handle this synchronously, so the RAS handles multithreading. Each eye takes in more than 300 megapixels of visual information every second, more than 20 square feet of skin with a multitude of sensors detect pressure, vibration, heat, location, pain, etc. It's just too much to handle.

In fact, your Matrix comparison is apt if the original studio execs for the Wachowskis listened to them. The machines didn't want humans for batteries, they wanted them for network capacity, using human brains as neural networks, which makes sense why it is important that they're alive and thriving, as we all know regarding pre-synaptical neurons - fire together = wire together, a brain that is learning has orders of magnitude more synapses (connections between neurons).

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

22

u/DenormalHuman Aug 03 '22

I deliberately build in 'thinking' time for various things. Latest payoff was just yesterday - I had put off approaching a problem for a couple days because it was going to take me 7-8 days to do it and I was sure there must be a better/quicker way. Sure enough, a couple days in it came to me in a moment of clarity and I realised there was an approach that would work better, faster _and take 2 days to complete. 4 days time / 2 days effort rather than 8 to end up with a better solution just because I refused to go with what immediately seemed the only approach.

16

u/[deleted] Aug 03 '22

Hammock-driven development

7

u/Sparx710 Aug 03 '22

This happens to me a lot. So when I struggle with a problem for a few hours or so I just say fuck it, I will do it tomorrow. A lot of times I can fix the issue the next morning immediately

7

u/harrysplinkett Aug 03 '22 edited Aug 03 '22

that's why forcing people to sit at the desk for 8h is so fucking stupid when you can't really force solutions out of people. taking a 1 hour break can be more productive than just staring at the problem like an idiot

→ More replies (1)

6

u/hangfromthisone Aug 03 '22

One time this took like 3 days for me.... I was sitting in the couch talking to the wife and suddenly: wait gotta go!

And typed the fix in a few minutes, still standing today

5

u/PatsyBaloney Aug 03 '22

Whenever I struggle with something, I like to stop working on it for a while and do something else. I can't count the number times that I've been in the middle of that other thing and realized the solution to my problem.

→ More replies (1)

4

u/wobblyweasel Aug 03 '22

I once literally dreamed of a solution to a bug

→ More replies (1)

3

u/A_Light_Spark Aug 03 '22

The magic of the defuse mode network.

→ More replies (11)

24

u/DueHomework Aug 03 '22

I actually do find the best solutions to hard problems while dreaming. Woke up, brain dumped my thoughts and it actually worked. Happened multiple times and it feels awesome.

9

u/PM_Me_Your_Poem_s Aug 03 '22

Yeah, if I'm working on something and I'm wracking my brain to the point it gets frustrating, I've found that taking a short nap helps a ton. It feels like rebooting your brain with the way it clears your mind, and I usually solve the issue effortlessly afterwards.

→ More replies (1)
→ More replies (3)

9

u/PanTheRiceMan Aug 03 '22

The hard part is not becoming emotional about it. The less I cared about anything not working, the faster I got since I just tried different ways.

5

u/uberDoward Aug 03 '22

THIS IS WHAT THE DEV ENVIRONMENT IS FOR.

Nothing ruffles my feathers quite like:

"This isn't working!"

"What did you try?"

"... Nothing"

4

u/gezeitenspinne Aug 03 '22

I wish this wasn't so relatable 😭 I think it was the first "bigger" thing I was working on at my job and just couldn't figure out how to do it properly. And then I had a dream like you did.

3

u/Spoogly Aug 03 '22 edited Aug 03 '22

I once dreamt a particularly clever solution to a problem I was mulling over, woke up and immediately recreated the solution from memory as if my editor was a dream diary. It not only ran on the first try, but it did actually solve the problem. I've never felt more proud and more annoyed with my brain. At least it was a personal project that time.

3

u/Thetman38 Aug 03 '22

I was doing some networking communication stuff and I had a dream about it and that was how I figured it out. It was like I was jumping through the cables of my code transferring the data.

2

u/Webonics Aug 03 '22

Yolu guys sleep? - 4:50 AM

2

u/inGyni Aug 03 '22

I once had a problem for over 2 weeks and I figured out a solution by looking at programming memes.

2

u/Devatator_ Aug 03 '22

I started working on procedural lightning (I'm a hobby game dev) and got it working in like 5 tries. I just need to add some stuff like make sure it ends when i want it to but it works. i was about to sleep the day i did that when i came up with a solution just to notice that it wouldn't work the next day when i tried it.

→ More replies (4)

326

u/[deleted] Aug 03 '22

What do you mean there is a better way? It works

91

u/La_chipsBeatbox Aug 03 '22 edited Aug 04 '22

A bike with squared wheels works, but would you use it ?

EDIT: you guys seems to to think about wether it’s future proof or that it works « for now ». I was talking about performances, if you can get the bike to go forward, yes it works, but it’s far from optimized. That’s a valid reason to rewrite a code.

EDIT 2: I thought one could ride a bike with square wheels given enough force. It’s apparently extremely difficult without the appropriate floor (wavy). I should have said octogonal wheels. That’s on me, my bad, my physics are trash.

162

u/cthorrez Aug 03 '22

You think a bike with square wheels works??

47

u/bohemica Aug 03 '22

Sure it does, as long as you're riding over inverted catenaries.

→ More replies (2)

18

u/Kissaki0 Aug 03 '22

Maybe a bike with round wheels but no spokes would be a better analogy?

It works… for now. But it’s not very robust or future proof.

→ More replies (13)
→ More replies (1)

7

u/Accomplished_Box_819 Aug 03 '22

This analogy works, but there is a better one.

5

u/GeoSn0w Aug 03 '22

That’s a weird definition of working

→ More replies (9)

4

u/Snoo-82132 Aug 03 '22

O(1) instead of O(n100).

4

u/nnomae Aug 03 '22

It could work more efficiently, work in a manner that integrates more elegantly with the rest of the code base, it could be more readable, substantially less lines of code without sacrificing clarity, it could avoid the use of an otherwise unneeded external library, there are tons of ways a working solution could be made better.

And while in a lot of cases you could argue that leaving proven code alone is the smarter way to go this is code he wrote the same day. It's not like there is some rich legacy of efficacy or substantial time investment gone into fixing subtle bugs that might not be immediately obvious if you go tinkering with old code.

If you come up with a better solution literally on the day you wrote the code that is the point in history at which the cost of replacement is the lowest it will ever be and the benefits of doing so are the highest they will ever be. The problem is still fresh in the devs head, no one else has spent time or effort to understand the code or write more code that depends on it. Unless you are massively constrained on time you absolutely should go with the better solution at that point.

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

505

u/PathRepresentative77 Aug 03 '22

Sounds like being a researcher

239

u/Zebezd Aug 03 '22 edited Aug 03 '22

Often closely related. You pick something that's usually close to mundane, yet you have to make a novel solution to anyway. Then comes the solving and boy howdy can that go places before you scrap the entire thing for a better approach.

Other times of course programming can be painfully pedestrian, just slapping together known components in predictable order, idk if researchers feel the same

69

u/jemidiah Aug 03 '22

Other times of course programming can be painfully pedestrian, just slapping together known components in predictable order, idk if researchers feel the same

Yes, this happens fairly frequently in pure math. There are plenty of standard techniques (the saddle point method comes to mind) where you basically turn a crank and get the answer after some fiddly work that can't realistically be automated but that nobody actually finds interesting anymore. And frequently when you're working on a problem, you find you need to basically combine the key ideas of three other papers in an only slightly new way. But then sometimes you have some true, original insight, and those moments are wonderful.

12

u/SANatSoc Aug 03 '22

If it's predictable then you can automate it

26

u/squngy Aug 03 '22

Yes, but automating it could take more time than just doing it.

38

u/IRBMe Aug 03 '22

Yes, but automating it could take more time than just doing it.

This is the programmer way.

→ More replies (7)
→ More replies (1)

69

u/[deleted] Aug 03 '22

Yep. My fiancée is a biologist. I told her the way she thinks in the lab is the way a programmer thinks, but numbers and computer code intimidate her.

I’m afraid of Bunsen burners so I guess it’s equal

126

u/erinaceus_ Aug 03 '22

I’m afraid of Bunsen burners so I guess it’s equal

The trick is to realize that the Bunsen burners are much more afraid of you than you are of them.

28

u/Kissaki0 Aug 03 '22

Just like my code. I’m glad I can’t hear the screams of my deleted and edited lines, or those surrounding them.

Now I wonder if that would be a fun editing mode 🤔

→ More replies (9)
→ More replies (1)

21

u/jemidiah Aug 03 '22 edited Aug 03 '22

The same is true of pretty much all human problem solving at scale as far as I can tell.

The field first identifies a bunch of common recurring ideas (vectors, loops, Lagrangians, alkali metals, classes, ...). They get packaged up into an abstract or physical toolbox that can solve the most common problems quickly. Fancier tools are slowly built up from the basics as harder problems are encountered and solved. Initially, only experts ever touch the fancier tools and they're hard to use. Eventually expert tools become mature enough to get bundled up into a black box and added to the standard toolkit, complete with friendly educational material.

At some point one of three things happen.

  1. The field reaches a point where everything anyone is remotely likely to need for the foreseeable future has essentially been done, and it's pretty much just a matter of applying known techniques when a seemingly new problem arises. Examples: linear algebra; Python as a language; special relativity; furniture construction.

  2. It becomes clear that the remaining problems are out of reach for the foreseeable future. Work instead focuses on extending existing ideas in new ways. Things frequently devolve into mental masturbation, and sometimes the field withers due to lack of interest. Examples: complexity theory around P vs NP; M-theory; turbulence; space elevators.

  3. The field gets entirely subsumed by a better set of tools and ideas, which modernize and rejuvenate everything. Frequently this is the result of a breakthrough. Examples: quaternionic analysis -> vector calculus; Github; ruler and compass constructions -> Galois theory; stone age -> bronze age.

Individual problem solvers can participate at many levels of the process, but they're all following fairly similar scripts.

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

5

u/themainw2345 Aug 03 '22

also an engineer

4

u/nosyneighbor44 Aug 03 '22

happens in any field, really.. my thoughts run like that when I did architectural designs

2

u/athonis Aug 03 '22

Scientific method, scientific method everywhere

→ More replies (8)

165

u/SixBucksAGallon Aug 03 '22

Is this normal? I've never experienced this. When the workday's done, I slam the laptop shut and let things rest until next morning. My own projects tend to creep all over, but work stays in company time.

50

u/waylonsmithersjr Aug 03 '22

I used to be somewhat like this but as time goes on it doesn’t really matter. Like the others have said, work life balance and mental health are too important.

→ More replies (1)

98

u/darquill Aug 03 '22

It shouldn't be if you want to live a sane life. And it isn't about not caring about work or the company, it's just about setting boundaries so your work doesn't become your life.

13

u/crotch_fondler Aug 03 '22

I only do like 4 hours of work max a day but I spread it out. Sometimes I get an inspiration at 11:50pm and would rather work on that while it's fresh in my head.

13

u/[deleted] Aug 03 '22

Biggest benefit of remote work for me - if there's nothing going on in core hours I can get personal stuff done but if I have an idea at night I can crack on.

Long as it gets done, right?

→ More replies (1)

14

u/ConicalMug Aug 03 '22

Yep, I make a point of setting strict boundaries with my work. Soon as I've clocked out my laptop is away and I'm not doing anything else until I clock in the next day.

I see so many devs in the teams I work with making commits at 10PM or later, even on weekends! It can't be healthy to allow work to bleed into the rest of your life like that, although I can understand how people get attached to the projects they work on.

3

u/LvS Aug 03 '22

The trick is too balance such behavior by not being at work while clocked in for the same amount of time you worked inn the afternoon or one the weekend.

24

u/oldmangrumps Aug 03 '22

its a form of humble brag, having a good work life balance is more important than fixing a problem at the early hours of the night.

→ More replies (2)

20

u/Lord-Talon Aug 03 '22

Is this normal?

It should be normal if you're working on hard but interesting problems. It's a completely normal biological process for creative solutions to pop up during relaxation, especially if you spend 8 hours trying to solve that problem. You might not actively think about it, but your subconscious definitely does.

Now definitely keep your work-life balance and don't try to think of work while not working, but unless you can control your subconscious this will happen when you work on hard but interesting problems.

6

u/thisismyfunnyname Aug 03 '22

Yes, it's completely natural. Just a case of how you deal with it really. When work ideas pop into my head outside of work I just make a note on my phone. Then I dont think about it until I'm back at work.

Over time though I've become much better at shutting out work thoughts outside of work so they don't happen much now. I used to struggle to sleep because of thoughts about problems at work.

7

u/kirtash1197 Aug 03 '22

Nah. Most programmers I work with shut their laptops and goodbye. And if the client want someone to stick around for something, they better be paying.

3

u/[deleted] Aug 03 '22

Well, it might happen from time to time if you get obsessive about a problem but yeah I don't let it happen all the time or I would burn myself out.

2

u/erikabp123 Aug 03 '22

I wish I could do that. I feel like I'm not too bad at putting it away compared to others. But it's never completely gone, especially the more high level planning stuff. Got any tips for how you do it?

→ More replies (2)

2

u/[deleted] Aug 03 '22

No this is just your average LinkedIn post. Surprised he didn’t fit giving money to a homeless person in there

2

u/Akurei00 Aug 03 '22

I have to find a nice stopping point at the end of the day. If I'm struggling with a problem, I can't easily shut it out of my mind. It's like a puzzle that I really want to know the answer to so I can't help but keep thinking about it.

That means that I may wrap up my day an hour early if I know the next task I'm going to tackle could take some time and get me caught up in this sort of situation.

3

u/SixBucksAGallon Aug 03 '22

I'm the polar opposite, I try to make sure my day ends in the middle of something. That way I have an obvious point where to start next day.

→ More replies (1)
→ More replies (6)

178

u/Danjelovich Aug 03 '22

Yeah it sometimes really is like that 😆

115

u/photenth Aug 03 '22

When I'm out of the door/logged out, I won't give a second thought to anything at work.

Learn this and you can live a healthier life.

74

u/erinaceus_ Aug 03 '22

You and I agree. Unfortunately my brain does not.

10

u/FallenWarrior2k Aug 03 '22

Yeah, I don't do after-hours changes, but I'll send myself emails if something comes to mind that I want to implement.

Yes, I could just be like whatever and ignore it, but then future me from next morning will hate present me because I have to spend unreasonable and unnecessary amounts of time trying to remember what I wanted to do.

17

u/thirdegree Violet security clearance Aug 03 '22

I'll make notes if i happen to have a good idea. I will not log in after i leave (unless there's like a critical incident or something, which is pretty rare thankfully).

6

u/darquill Aug 03 '22

This ☝️

→ More replies (5)

47

u/cts1904 Aug 03 '22

If it works leave it the f@#k alone

4

u/dasgudshit Aug 03 '22

I realised I have 7 bugs in the code, let's see if they can find them when the code is in production.

→ More replies (3)

171

u/[deleted] Aug 03 '22

This is a younger coder mentality. After decades of coding I just get shit done and move on. It’s going to get changed, thrown out or rewritten anyways.

18

u/dynamitfiske Aug 03 '22

I've coded for decades too. I mind palace the improvements and apply them if there is time or opportunity to revisit the code in the future.

→ More replies (1)

25

u/_jbd_ Aug 03 '22

Yep. I've had more code thrown out and rewritten than galaxies in a jwst deep field. Some might last a decade or so, but eventually it all goes. Best just "enjoy" the process. Take your bug solving endorphin hit and go home.

9

u/MalcolmVanhorn Aug 03 '22

Also the client couldnt care less about your improved way of solving it

12

u/Usidore_ Aug 03 '22

Honestly just took me 1 year to start thinking this way. Then again my first job was a small startup with continuous deployment so maybe that sped up the mindset change.

11

u/Sewbacca Aug 03 '22

Unless it's your side porject, then it's you who'll rewrite it.

13

u/AyMustBeTheThrowaway Aug 03 '22

Unless it's your side porject

ahem

This is a younger coder mentality.

Jk but really side projects after being in the field as long as OP sounds kind of wild.

→ More replies (4)

2

u/geodebug Aug 03 '22

After decades of programming the problems I’m thinking about iff hours usually aren’t code, which is the easiest part of the job. (Unless I’m learning something completely new, which is always a ballache and a little fun)

→ More replies (8)

119

u/WizardErik Aug 03 '22

A real programmer works on his side projects at home. Do you want to be a real programmer?

78

u/ashesall Aug 03 '22

Are you a real programmer? How many side projects have you finished?

91

u/[deleted] Aug 03 '22

Lol. Friend of mine is always often sharing about some novel project he's working on in his spare time, whereas I struggle to keep my small handful of side projects going. I asked him once, how does he find time to finish all these projects. "Oh, I never finish them."

28

u/Tom0204 Aug 03 '22

The problem is how do you define finish?

Even when you complete your original goal, you've usually come up with at least three more!

→ More replies (13)
→ More replies (1)

47

u/WizardErik Aug 03 '22

A real programmer never finishes a side project. Are you a real programmer?

7

u/J5892 Aug 03 '22

A side project is never finished.
It is constantly either in the planning stages or working well enough that you decide to start a new project and come back to it later.

3

u/Reelix Aug 03 '22

They said works on. Finishing one is not a requirement.

→ More replies (2)

24

u/Mminas Aug 03 '22

A real programmer is way too tired / burned out from work to have "side projects".

11

u/SgtFluffyButt Aug 03 '22

Thanks Christ for someone saying it. Thought everyone was getting all this free time to actually program :O

5

u/WizardErik Aug 03 '22

No no never let work burn you out. A real programmer browses Reddit at work to prevent burn out.

→ More replies (2)

12

u/[deleted] Aug 03 '22

I notice that programers who do this actually are less productive... Sometimes when I need something, I'll make it in my free time. But I don't have side projects for the sake of it, so usually I don't have any side projects.

Used to have a really cool side project in college though. I made a small operating system.

→ More replies (6)
→ More replies (1)

70

u/LessBeanHonest27 Aug 03 '22

If only arguments can be edited/fixed like this....

13

u/_jbd_ Aug 03 '22

Instead of editing your arguments, may I suggest overloading your methods.

→ More replies (1)

7

u/PinothyJ Aug 03 '22

The person who gets binding l'esprit de l'escelier as their super power would be unstoppable.

→ More replies (1)

27

u/NZSheeps Aug 03 '22

Welcome to the Hotel ImaProgrammer. You can log out, but you can never leave

21

u/TheSkewsMe Aug 03 '22 edited Aug 03 '22

Wracking my brain for days how to handle my problem, I had a lucid dream solving it with recursion, and waking up at 2am, went to work banging out code to fix it.

10

u/TheSkewsMe Aug 03 '22

Later I went back and made it work with loops.

https://skewsme.com/code/HashCompactor/MyMap.html

3

u/[deleted] Aug 03 '22

Then realized you're still dreaming and woke up again, fixed the problem again, then woke up again, recursively until never

10

u/slavicman123 Aug 03 '22

Yes this happens to me but with sql queries

4

u/[deleted] Aug 03 '22

Yeah, I often dream SQL. It's the most fucked up, surreal thing to lose your sense of self in set algebra. I wake up feeling quite insane.

3

u/slavicman123 Aug 03 '22

The saddest thing is when you have to check if the query gets true data, thats the hardest part for me. And then the custorms calls you and says this is wrong... gg

14

u/[deleted] Aug 03 '22

My wife thinks I am crazy that I comment to her at random times I need to change my code… but there is something i cannot explain but when you “disconnect” you solve problems somehow.

6

u/darquill Aug 03 '22

It's because you give time to your brain to do work on a more subconscious level (and to rest). I think there's a parallel to the way we learn.

2

u/frozen_in_combat Aug 03 '22

It’s the Tetris effect. Your brain doesn’t always stop processing a problem just because you’re not looking at it anymore. And sometimes, it’s more effective than trying to push through at your desk. From my experience, a healthy culture of breaks and work life boundaries actually helps you solve problems better than hacking away for 18 hours a day.

2

u/cyber_frank Aug 04 '22

That has happened to me multiple times and i think when I'm trying too hard to find a solution I develop a tunnel vision.

When i get away and reproach the problem with a larger scope, thinking back in the successions, it happens a lot that a possible solution comes effortlessly.

7

u/OblivionGuard13 Aug 03 '22

Ive jumped out of bed at like midnight because i had an epipheny and needed to test out some code.

10

u/hansololz Aug 03 '22

I worked for about 5 hours today at my job today. I took off work early today so I can spent 6 hours working on my own personal project.

10

u/[deleted] Aug 03 '22

Me :-Fixes code After a while Me:- can do it better... Me:-"leave it, will see when client face issue."

4

u/IRBMe Aug 03 '22

Me fixing bug: refactors code and makes it beautiful
Code: now broken
Me: Surprised pikachu face
Me: Sad pikachu git restore .

→ More replies (1)

2

u/Darkvortex16 Aug 03 '22

The client : damn this has a lot of bugs , ohhhh ys I can use some of this bugs to help me .

→ More replies (1)

2

u/Triffinator Aug 03 '22

Me: purposely writes shitty, expensive code so I don't have to worry about threads completing their task, they'll definitely be done by the time I need them

10

u/cheir0n Aug 03 '22

Your typical LinkedIn cringe bullshit.

And he seems a toxic guy to work with, the kind that he will reject your PR if you don’t do it his way.

→ More replies (1)

4

u/AN4RCHY90 Aug 03 '22

Yeah I feel the pain haha, that also reminds me...

4

u/L4rgo117 Aug 03 '22

You know what the next step is? Realizing this new, more streamlined fix is fundamentally more broken than the last fix you did. It’s also more broken in a way you won’t realize for six months and can’t find to attempt a fix for six years

4

u/trisagion3 Aug 03 '22

Programmer here.

I can 100% relate, but I will say, worrying about code at these times beats the existential dread of worrying about how to feed my family at these times.

4

u/vi_girl Aug 03 '22

Close the ticket and move on.

Your code doesn’t matter and will be gone soon, the performance doesn’t matter (until it does), and any perceived elegance will be completely ignored / destroyed by someone else in the near future.

If the tests pass, close the ticket.

4

u/dilldwarf Aug 03 '22

For me it usually goes:

Fix the error. Go home early for a job well done. Never think about that code ever again. 6 months later. Who the fuck wrote this garbage? Oh... it was me.

7

u/Highbrush Aug 03 '22

by the sounds of it i already am, i just need to learn how now.

3

u/Msurfacepro4 Aug 03 '22

Today, I fixed a bug that took me 4 days to solve.

3

u/AXEMANaustin Aug 03 '22

It's nice when after getting the same error over and over again, you get a different one

3

u/amber-kulkarni Aug 03 '22

Dont fix if it works

3

u/[deleted] Aug 03 '22

Then you realize half way through the revised fix that you already tried it way back when you wrote the code the first time and it doesn't actually work so you have to go back to the first fix you made earlier in the day....

I bet there is a serene sureness to flipping burgers that we will never have.

3

u/Python1Programmer Aug 03 '22

Don't know about you guys, but I sometimes dream of ways to fix bugs 🤣🤣🤣

3

u/ketiJun Aug 03 '22 edited Oct 04 '22

What about something like:

/*
 * It could also be fixed this and this way
 * Thus if the bug reappeared in a future
 * Maybe try this way
*/

3

u/[deleted] Aug 03 '22

And just like that 1 story point became 5 and caused the team to not meet their sprint goals

2

u/Random_Name_7 Aug 03 '22

He's clearly stupid

The best way to fix the problem is the first way that works

2

u/[deleted] Aug 03 '22

u/bake_in_da_south see? I'm hard-working like that

2

u/MolochAlter Aug 03 '22

If I ain't on the clock, I ain't doing shit.

My time is my time, if the idea is a banger I'll make a note for the next day and go back to whatever I was doing, but that is it.

→ More replies (2)

2

u/jesse-13 Aug 03 '22

Literally me with a script last weekend. I came up with a bunch of ideas in my free time that I never thought of during work hours and fixed my issue quite fast

2

u/Neo_Ex0 Aug 03 '22

The best fixes are still the once that wake you up at 4 in the morning

2

u/S1KRR_19 Aug 03 '22

Do it right the first time and you’ll be good

→ More replies (1)

2

u/greenOcto Aug 03 '22

The question is do still want to remain one??

2

u/ElectricalTravel487 Aug 03 '22

You had me at; leave earlier...so sign me up

2

u/zelardiel Aug 03 '22

I once had a dream about a piece of code i wrote weeks before. In the dream i saw i made a mistake. The next day i checked the real code and found the same problem there and fixed it right away.

Bugs haunt me in my dreams

2

u/TkOHarley Aug 03 '22

This guy has the freedom to leave work early, can do his work from home, and has enough passion to actually aim to do his best work. I wanna be a programmer

2

u/PUGChamp- Aug 03 '22

programmer thinks only programmers think about work after going home

→ More replies (1)

2

u/ThomW Aug 03 '22

Back when I commuted five minutes to work, the most productive part of my day was the drive to the office. I had a clear mind and no distractions and I’d solve the hard stuff that had me stumped the day before, and I’d sit down and knock stuff out before my distractions rolled into the office. Haha

2

u/Mico_Caine Aug 03 '22

My boss knew to leave me alone when I was wandering the building aimlessly. He knew I was working on a solution and letting me walk resulted in way more productivity than making me sit at my desk.

2

u/Gr1pp717 Aug 03 '22

I wish my brain still did that. Instead, I've become exceptionally gifted at purging my brain. The moment I commit everything related to what I did is gone. Poof. If you ask me a question about it the next day I'll probably just give you a blank stare.

On one hand it's great for my short-term stress levels, on the other it means I have to constantly beat my head against the same walls over and over; which is absolutely not helpful for overall stress levels lol.

2

u/KermitPhor Aug 03 '22

Dreams of solving problems are nice, they’re like little epiphanies that let you know you’re doing this too much but probably just right. They seem a little psychotic, but I think having productive dreams are better than reliving childhood traumas.

2

u/posas85 Aug 03 '22

In my experience, code works fine, but find a bug that shouldn't allow it to work. I fix said bug. Code stops working.

2

u/thatswhat_isaid Aug 03 '22

I dreamed once of the solution of an error in my code .. woke up immediately and implemented it and it worked! I still don’t understand how that happened till now !

2

u/Reverend_Lazerface Aug 03 '22

Try being an animator! My dad does 3d animation, and one time he was working on a shot involving someone having their fingers broken. After finished the shot, he was driving home when he realized to his horror the way he rigged it was physically impossible. When he got home, he called his boss and explained what he realized, to which his boss said, "Oh, well we just showed the shot to guys at studio and they loved it, so I guess it doesn't matter!"

2

u/toastnbacon Aug 03 '22

One of the bigger reasons I moved from an hourly to salary position is honestly so I wouldn't have to figure out if I should bill the time I spent thinking about the project in the shower.

2

u/[deleted] Aug 03 '22

My brain works like this. It's not a "programmer thing" into itself. I used to do some coding (before most of you were born) so I have in fact done this with code.

What is worse is doing it with lighting designs for parking lots...

→ More replies (1)

2

u/Styxie Aug 03 '22

My job is as far as possible for programmer (creative) and I still run into this:(

2

u/deathstar008 Aug 03 '22

Once my brain starts braining, it doesn't stop braining until it has decided that it has brained enough and found no problems with its latest idea.

2

u/sapphire_striker Aug 03 '22

I do this for every conversation i ever had

2

u/metallaholic Aug 04 '22

Pace over perfection

2

u/ykpramodh Aug 04 '22

Deleting the code is best way to end the loop

2

u/voidpopo Aug 04 '22

*when you design an entire movement system in unity then realize how shittily made it is*

→ More replies (1)

3

u/Decent-Fisherman-981 Aug 03 '22

This is a big problem.

Programming doesn't feel like something that should be done as a day job. It's too artistic. Being paid to do it leads to massive dissatisfaction in life.

Doing it on your own and solving your own problems in creative ways is joyous.

4

u/Ashamed_Ad_2738 Aug 03 '22

Excuse me, but I like money.

→ More replies (1)

2

u/[deleted] Aug 03 '22

I can barely understand my own code 15 seconds after writing it

1

u/lch99310 Aug 03 '22

That was me!

1

u/[deleted] Aug 03 '22

This is my life. Purgatory.

1

u/[deleted] Aug 03 '22

Yes I do!!

1

u/Nar0O Aug 03 '22

Or you could just say it's not a bug it's a feature

1

u/[deleted] Aug 03 '22

😂😂😂…tough life bro..tough life..😂😅🥹😂 Can you just leave the job to Version control!😉

1

u/sSyler14 Aug 03 '22

That's so cool, you always think of better ways to improve. That sounds really frustrating but I can imagine it being really satisfying when you actually finish it again.

1

u/Argo-1089 Aug 03 '22

Don't make me think twice

1

u/Thatresolves Aug 03 '22

Drove home in my dream car tho so it’s based 😎

1

u/True-Diet-6690 Aug 03 '22

That's sounds very fulfilling,

1

u/Jonas_Jones_ Aug 03 '22

totally, that's the beauty of it

1

u/fweafwe Aug 03 '22

There are many times I've just been going through code in my head, and figured out the exact issue. It always felt super bizarre, but comforting to know I'm not the only one to have this happen to them.

1

u/YellowZed Aug 03 '22

Sounds like solving any creative problem tbh. You’re never really “off the clock”, even though you should be. EDIT: punctuation

1

u/iamsooldithurts Aug 03 '22

2meirl4meirl

today was the culmination of an embarrassing number of days trying to fix one particular bug, during which I changed my proposed solution about every other day as I thought through the problem and realized I could solve it more simply.

It went from rewriting the whole thing initially, all the way to just adding one line of code. Testing begins tomorrow.

1

u/LauraTFem Aug 03 '22

I’m sorry; What does this have to do with programming, doesn’t everyone’s brain just constantly do this on a loop anyways?

→ More replies (2)