this post was submitted on 08 Oct 2023
1187 points (97.7% liked)

Programmer Humor

32042 readers
1375 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] ilinamorato@lemmy.world 110 points 11 months ago* (last edited 11 months ago) (4 children)

"Stack Overflow and Google"

"It's Stack Overflow and Google"

"Stack Overflow and Google"

[–] InvertedParallax@lemm.ee 31 points 11 months ago (2 children)

How dare you expose my fraudulent career!!!

[–] ilinamorato@lemmy.world 23 points 11 months ago (1 children)

It's not fraudulent if everyone does it

[–] unique_hemp@discuss.tchncs.de 10 points 11 months ago

Wall Street, 2008 (colorised)

load more comments (1 replies)
[–] vrighter@discuss.tchncs.de 15 points 11 months ago

tbh, I feel stackoverflow went to shit. Most questions are now closed as duplicates of other unrelated ones. I rarely use it anymore

[–] kucing@lemmy.ml 13 points 11 months ago (1 children)

"Stack Overflow, Google, and ChatGPT"

"It's Stack Overflow, Google, and ChatGPT"

"Stack Overflow, Google, and ChatGPT"

[–] Kidplayer_666@lemm.ee 7 points 11 months ago

It’s Bing, it’s all Bing now

[–] neshura@bookwormstory.social 12 points 11 months ago (2 children)

tbh I've switched from Stack Overflow to Documentation and Reddit (yes I know)

I've found Stack Overflow answers to be either not helpful or so outdated the answer doesn't work anymore

load more comments (2 replies)
[–] tdawg@lemmy.world 48 points 11 months ago (2 children)

Fives years of fucking around and breaking shit. Worth it though

[–] locuester@lemmy.zip 24 points 11 months ago

Keep it up. I’m on 37 years of breaking shit. Never gets old.

[–] sudo_shinespark@lemmy.world 6 points 11 months ago

This is the one

[–] Presi300@lemmy.world 44 points 11 months ago (1 children)

"how do you code so well?"

"I don't"

[–] xmunk@sh.itjust.works 7 points 11 months ago

That used to be a problem for me too, now I'm a senior dev and my day job is just criticizing junior devs for their code.

[–] BloodSlut@lemmy.world 41 points 11 months ago (2 children)

wait, you guys are good at coding? i thought we were all just joking!

[–] emptyother@programming.dev 24 points 11 months ago (1 children)

No, you heard wrong. We're good at googling, not coding.

load more comments (1 replies)
[–] Anticorp@lemmy.ml 8 points 11 months ago (3 children)

I am finally comfortable saying that I'm good at it, but I've been doing it for 20 years. So like the comic said, "it's practice!"

load more comments (3 replies)
[–] Limit@lemm.ee 38 points 11 months ago (4 children)

I used to dabble in coding. Never done it professionally. To be a full time developer would probably kill me, I remember constantly thinking of how to build this or that function, or how to do a certain thing, or why something keeps failing. I'd constantly be thinking these things, in the shower, while brushing my teeth, while driving, it was making me insane. Don't think I could do it professionally.

[–] CoderKat@lemm.ee 27 points 11 months ago

Personally, I enjoy the problem solving. Debugging is fun once you're good at it (and when there isn't major time pressures).

Professional software dev is also waaaaay more than just coding, too. And the more you do it, the less coding you'll do. A junior dev might spend most of their time coding, but senior devs are spending a lot of time doing high level design, helping the juniors, and reviewing various kinds of things.

[–] demonen@lemmy.ml 24 points 11 months ago

...well, I do that, and enjoy it, so I guess that's why I feel like an impostor that has my hobby for a job. "If they figure out how much I enjoy doing this, they'll cut my pay..."

[–] charlotte@feddit.de 10 points 11 months ago* (last edited 11 months ago) (1 children)

Well, the second I clock out I'll stop thinking about how to solve a coding problem for work.

(Instead I'll start thinking about how to solve a coding problem for a ~~never to be finished~~ hobby project.)

load more comments (1 replies)
[–] raginghummus@lemmy.world 8 points 11 months ago

I remember being like that when I was learning, I literally couldn't get problems out of my head, my brain would be trying to solve a code issue while I'm trying to sleep.

Now I do it everyday it's learnt to just switch off when I'm done for the day (most of the time).

[–] Anticorp@lemmy.ml 36 points 11 months ago (1 children)

It is practice, but there's a gift element involved too. My gift is that I enjoy ridiculously complex challenges. So I enjoyed learning and practicing code. Someone who doesn't enjoy that, probably won't enjoy learning to code, just like someone who doesn't enjoy creating things won't enjoy all the time it takes to learn how to draw well.

[–] TheUnicornOfPerfidy@lemmy.ml 9 points 11 months ago* (last edited 11 months ago) (1 children)

This is maybe less of a gift than you think and can also be learned with practice. It's about having a growth mindset. If you practice framing things in terms of growing ability then everything becomes achievable and the challenge becomes enjoyable.

load more comments (1 replies)
[–] WheeGeetheCat@sh.itjust.works 31 points 11 months ago (5 children)

Its the same with drawing.

Its funny how no one gets confused about lawyers having to practice law, etc. We need better PR.

[–] bitsplease@lemmy.ml 25 points 11 months ago (1 children)

Blame Hollywood - every movie programmer is just a natural savant (probably on the spectrum) who operates a computer in more or less the exact same way a wizard operates a wand

[–] Ddhuud@lemmy.world 11 points 11 months ago (1 children)

That's exactly what my mom sees when she can't find her tabs in chrome, and I open edge because I figure that's what she's inadvertently been using since one of the windows updates.

load more comments (1 replies)
[–] Ghostalmedia@lemmy.world 23 points 11 months ago

Wait until you see the original version of the comic…

https://m.tapas.io/episode/923459

[–] TowardsTheFuture@lemmy.zip 16 points 11 months ago (1 children)

To be fair, as someone who cannot see things in my brain at all, there is some amount of innate talent to drawing, but obviously as with everything it takes practice to make it actually good.

[–] captainlezbian@lemmy.world 8 points 11 months ago

Yeah it’s like how I am with mechanical aptitude. I had a bit of a head start, followed by decades of practice and instruction.

[–] KazuyaDarklight@lemmy.world 9 points 11 months ago (1 children)

Ok, but I've never really seen anyone casually lauding the skills of a lawyer either.

[–] AngryCommieKender@lemmy.world 9 points 11 months ago

The Onion did in their Amicus Brief, kinda.

load more comments (1 replies)
[–] xmunk@sh.itjust.works 26 points 11 months ago

I wouldn't say practice alone... I'd say practice and a particular predisposition. It takes a special kind of madness to see C++ compile errors and think, "I want more of this in my life."

[–] BaldProphet@kbin.social 24 points 11 months ago (2 children)

Every time I mention that I have a very modest ability to write code, people instantly think I'm a genius and can make a computer do anything.

[–] Anticorp@lemmy.ml 13 points 11 months ago (1 children)

Can you get this virus off my computer?

[–] Kidplayer_666@lemm.ee 26 points 11 months ago (2 children)

Look, I’ve just had this incredible idea for an app. It’s like Netflix but better, you can probably code it in a month and make us billionaires

load more comments (2 replies)
load more comments (1 replies)
[–] ipkpjersi@lemmy.ml 22 points 11 months ago (2 children)

I'd say it's more than just practice. It requires a certain way of thinking too.

[–] pixelscript@lemmy.ml 14 points 11 months ago (1 children)

We hired a greenhorn dev several months ago. He had two years experience at a larger company. I only have about five so far and my company doesn't really pay all that well to field great talent, so I wasn't hoping for the world. But we were expecting at least something a little above entry level experience.

The guy did know how to write basic code. Frankly not to the degree I hoped for, though. Also lacked all auxilliary skills like effective use of version control, logging in to remote servers over SSH, documenting code with doc comments. He doesn't even write particularly legible code without the formatter to fix it for him. Very sloppy with spacing, braces, etc.

But those are all of little concern. Those could all be taught. It meant more effort needed to be spent in onboarding than we wanted, but it could be done. Helps that he has a very positive oulook on constructive criticism and he uses it to improve.

One thing that I don't think I can teach him in any reasonable amount of time, though, is how he mentally tracks the structure of the program he's working on.

When I program, every time I change anything, I construct a mental web of everything this piece of code might affect when changed, and the ramifications it might have. I think of neighboring code and concepts looking for patterns, and whether the new thing I'm adding or changing could be better expressed differently to leverage those patterns. I think of the future trajectory of the module or feature, and whether it would be advantageous to bake-in a certain kind of forward-thinking extensibility now rather than after it becomes partially entrenched later. And most of all, I think of how someone completely unfamiliar with this code might read it, and how I can improve the way it is written to make the most important parts stand out clearest.

And when I'm debugging code, even if I see the problem and think I immediately know the solution, I still take time to read the surrounding code. I try to piece together the original bugged code's intent. Is this onvious-looking problem the real problem? Or is it a poorly documented, poorly structured mess that looks like it wants to do one thing but is intending to do an entirely different thing? This hesitation has saved my ass on several occasions.

New dev doesn't do any of these things. He pulls a bug ticket, figures out what module or function is the supposed source of the problem, and bangs on it until the effects of the problem disappear. Little research done to understand what the intent of the code he's altering wants to do, and even less spent on figuring out what downstream systems will be affected. And once he achieves his singular result, he just pushes it as-is. No cleanup pass, sometimes forgets to format it the way we ask him to.

To be fair, it's a big new codebase. I can't expect him to reason around things he is not familiar with, nor would I think it reasonable that he study the entire codebase before touching it.

I also don't think these things can't be learned. I had to learn them at some point, after all. But I do believe that people like myself and one of my fellow devs are more predisposed to picking these programming soft skills up, whether it be through nature or nurture or some combination. That, and I don't think these kinds of soft skills can really be "taught" in the traditional sense. These are wrenches you can only really learn to dodge after being hit by a few.

[–] meteorswarm@beehaw.org 7 points 11 months ago (1 children)

Ironically, as I've become more senior (11+ years at a faang company) I've had to do less and less of that "look around and understand everything" work because of time pressure. But I rely on my experience to be more confident that I can ignore the details and focus on the reason I'm in this file.

Well, that, and if it gets too messy I give up and call in a junior engineer...

load more comments (1 replies)
load more comments (1 replies)
[–] AI_toothbrush@lemmy.zip 22 points 11 months ago (2 children)

I think its more about how some people can get really dedicated to one thing and others cant and those who are dedicated practice more so it looks like they are just better. And then there are 10x programmers. They are a different animal(get it?(furrys)).

load more comments (2 replies)
[–] Chriszz@lemmy.world 16 points 11 months ago

Some people are and aren’t cut out for it. A natural predisposition will take you very far.

[–] Sloogs@lemmy.dbzer0.com 15 points 11 months ago* (last edited 11 months ago) (2 children)

Even knowing this, I'm still both in awe and jealous of talented people. Some people I know who can practice so much that they become exceptional at something seem to be immune to burnout on their passions for long periods of time, or seem to have a brain chemistry that remains resilient in the face of it, and that ain't me. I've suspected I have ADHD but it's hard to get a diagnosis and my doctor said he's hesitant to diagnose his patients even though he thinks it's possible (and I'm in Canada where I'm lucky to even have an assigned family doctor so I can't really get a good second opinion on that). Programming just happens to be one of the few things that I get burned out on the least compared to everything else and even then it's hard to sustain interest in it for long periods.

load more comments (2 replies)
[–] Illecors@lemmy.cafe 14 points 11 months ago (1 children)

Practice alone only gets you so far. Think web dev.

Some talent absolutely comes along if you want to do more than a [ complicated ] website. Think linux kernel.

[–] flashgnash@lemm.ee 12 points 11 months ago (1 children)

I think you need to enjoy it to be good at it and I think you need a certain kind of brain to enjoy it

Feel like it's kinda telling that my dad and both of my uncles are also devs

load more comments (1 replies)
[–] cupcakezealot@lemmy.blahaj.zone 10 points 11 months ago* (last edited 11 months ago) (2 children)

Practice is a wierd way to spell masochism

[–] merthyr1831@lemmy.world 7 points 11 months ago

masochism is a weird way to spell stack overf-- actually nevermind

load more comments (1 replies)
[–] Gentoo1337@sh.itjust.works 10 points 11 months ago (3 children)

For anyone who wants some coding challenges, I'll leave this image:

If you're interested in any of these topics, great. If you're not, even better. The important thing here is to set task and push yourself to complete it.

load more comments (3 replies)
[–] shotgun_crab@lemmy.world 9 points 11 months ago* (last edited 11 months ago) (1 children)

Proof that programming is art

load more comments (1 replies)
[–] kameecoding@lemmy.world 9 points 11 months ago

I wouldn't say practice, but simply experience, at least in conventional development, learning patterns goes a long way but learning when to use them correctly is something you can only gain with experience.

learning the minor quirks of languages that they all have comes only with experience.

like Vue for example a competent dev can go through the docs one day and start doing stuff with it the next day in my opinion, but doing really well with it comea down to familiarity with similar stuff like react/angular if you don't have that it will take some time to code vue well.

all that being said some people are just more technical than others imo and communicating in "computer language" simply works better for some than others.

[–] llama@midwest.social 8 points 11 months ago

I started learning how to program when I asked myself how I could setup one web page template and include the content instead of copying the menus and logos on every page. Most people will never be observant enough to consider this might be how most big websites function, or how/why they would develop anything. There's a tall gate that some people just walk right over.

[–] pewnit@lemmings.world 6 points 11 months ago (1 children)

My brain can think logically (like mathematical logic) but I have minimal practice. I'm not an amazing coder but I can get by.

load more comments (1 replies)
load more comments
view more: next ›