this post was submitted on 29 Mar 2024
915 points (97.1% liked)

Programmer Humor

32479 readers
709 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
[–] andyburke@fedia.io 190 points 7 months ago (9 children)

I get the joke.

But if, like me, you actually feel this here's how I got away from it: make sure you actually understand things.

Read the error message over and over again, look up the words, understand what it is saying.

If something isn't working, start reading the code and making sure you understand what each line is doing.

It will feel incredibly slow and painful at first. Eventually you will strengthen those.muscles, however, and it'll become second nature.

Then you can cut and paste with confidence! 🤣

[–] NegativeLookBehind@lemmy.world 79 points 7 months ago (3 children)

PC load letter? What the fuck does that mean?

[–] andyburke@fedia.io 67 points 7 months ago (2 children)

There are still some errors where you just need to know the fix. In that case it's a baseball bat.

[–] pearsaltchocolatebar 12 points 7 months ago (1 children)

Or just filling the paper tray (that's what the error means)

[–] zurohki@aussie.zone 15 points 7 months ago

Filling the paper tray with US Letter sized paper. If you aren't in the US, you don't use it and might not even be able to buy any.

[–] BlueSquid0741@lemmy.sdf.org 6 points 7 months ago

Damn it feels good to be a gangsta

[–] snooggums@midwest.social 26 points 7 months ago (3 children)

Having worked at a copy place for a few years, that one makes me laugh every time.

For those that don't know, the error is Print Cartridge needs letter sized paper to be loaded. It is just out of paper.

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

You'd often get the error when there was paper in the printer though. Turns out the cause is the slightly different size between US letter page size and A4 page size. Technically the printer's correct to complain (for the same reason it'd be correct to complain about an A4 sized print while full of A5), but virtually nobody gives a shit about that difference and so the "PC Load Letter" message just translated to "You have to push that stupid button before I'll do anything because pedantry."

[–] NegativeLookBehind@lemmy.world 7 points 7 months ago

Wrong. It needs to be taken to a field and beaten into tiny pieces

[–] pingveno@lemmy.ml 7 points 7 months ago (2 children)

Wouldn't that be the Paper Cartridge?

load more comments (2 replies)
[–] cmnybo@discuss.tchncs.de 18 points 7 months ago (1 children)

The printer is obviously telling you to stuff some letters into your computer.

[–] magic_lobster_party@kbin.run 10 points 7 months ago (1 children)

Like, duh. How else is email sent? Magic?

load more comments (1 replies)
[–] Ilflish@lemm.ee 23 points 7 months ago (1 children)

Additionally, don't copy and paste anything until you understand it. If you don't understand what code golf is being spewed, don't take the top answer. If you don't understand any answer, you probably don't understand the underlying systems well enough and need to re-evaluate what your asking for.

[–] pixelscript@lemmy.ml 6 points 7 months ago

The only difference between a novice and a professional is that a professional checks what they are copying to understand it first before allowing it into their codebase.

Novices copy code to avoid having to understand it. Professionals copy code to avoid reinventing the wheel.

[–] saltesc@lemmy.world 8 points 7 months ago (1 children)

ChatGPT is making me better because I've learned not to fucking trust it and double check everything it spits out to ensure its actually doing what's asked of it.

load more comments (1 replies)
[–] Maeve@kbin.social 4 points 7 months ago

Got me! I laughed tears!

load more comments (5 replies)
[–] NOT_RICK@lemmy.world 75 points 7 months ago (1 children)

It’s all imposter syndrome, all the way down

[–] Fuck_u_spez_@sh.itjust.works 16 points 7 months ago (1 children)

IDK man, all the way? I don't think I'm good enough to have actual impostor syndrome like real developers.

[–] Kyrgizion@lemmy.world 5 points 7 months ago

Haha right? Not saying this is you but whenever people try to tell me I have impostor syndrome, I'm thinking like "incompetent people exist. I'm just one of them".

[–] dutchkimble@lemy.lol 48 points 7 months ago (1 children)

Get a pro GPT subscription and command it to copy paste for you of course

[–] Nommer@sh.itjust.works 6 points 7 months ago* (last edited 7 months ago) (2 children)

I may do that already when I get stuck... Tbf I am trying to learn and only ask it to explain how to do something or if I have a bug I can't figure out. I feel sometimes it's just best to get an answer if I've been stuck for a while because I'm not making progress anyway.

[–] stratoscaster@lemmy.world 5 points 7 months ago (1 children)

I swear to God it gets things wrong like 50% of the time though (both syntax and conceptually) for programming.

load more comments (1 replies)
[–] SpaceCowboy@lemmy.ca 4 points 7 months ago (3 children)

It's not too bad for learning a new language, but you still have to make an effort to understand why the code it's giving you works... or doesn't work which can happen often.

load more comments (3 replies)
[–] DudeDudenson@lemmings.world 25 points 7 months ago (1 children)

The real developer has been inside you all along!

load more comments (1 replies)
[–] Buttons@programming.dev 25 points 7 months ago (1 children)

To become a real programmer, you must install Copilot and let it copy and paste for you.

[–] KrankyKong@lemmy.world 7 points 7 months ago

I feel like im slowly losing my ability to program between copilot, phind, and chatgpt...

[–] waz@lemmy.world 22 points 7 months ago (1 children)

I feel like most of my googling of simple code is because I know what I'm trying to do, but I don't remember the correct function name and or language structure for the language I'm currently using.

load more comments (1 replies)
[–] Kyrgizion@lemmy.world 19 points 7 months ago

Funny, I've been in my current support/devops role for 9 years and every year I wonder more what the hell I'm doing. It somehow seems like I get dumber/lose knowledge/the field expands much more rapidly than my broken mind can keep up with.

I feel like a glorified script kiddie most of the time. I couldn't program my way out of a wet paper bag if my life depended on it.

[–] PumpkinEscobar@lemmy.world 16 points 7 months ago

Real answer, learn how to paste several code snippets from stack overflow into a ChatGPT window and ask it to do what you need. Sprinkle in some copilot to tweak as needed. Congrats, Mr Programmer.

[–] MrJameGumb@lemmy.world 16 points 7 months ago (2 children)

Wait, that's a thing??? I can earn programmer money just by using copy & paste??? Maybe it's time I changed jobs...

[–] Zedd00@lemmy.dbzer0.com 43 points 7 months ago (1 children)

I spent years getting great with powershell so I can now confidently copy code out of chatgpt. Chatgpt's ability to spit out close to correct code faster than I can type it is amazing, but useless if you don't understand what the hell it's trying to do.

[–] mac@infosec.pub 19 points 7 months ago (4 children)

Pretty much this, it's the one use case for copilot, I know what I want to type anyway and copilot is usually close enough that 2 edits is faster than typing the whole thing and better for rsi.

[–] Kalothar@lemmy.ca 6 points 7 months ago (1 children)

Basically the work flow has changed from:

Find a framework that I need to integrate for whatever reason. Go to GumboChumbo.io read the docs.

Write some code based off of what’s in the doc, test the thing, read error message, read docs, ad new thing, but wall for obscure reason, spend thirty minutes looking through similar issues via Google-fu and then find an obscure comment from 6 years ago, That some how fixes this current issue. Implement it, get it working and then customize it.

Now it just streamlines finding these solutions.

load more comments (1 replies)
load more comments (3 replies)
[–] Feathercrown@lemmy.world 24 points 7 months ago

Copying and pasting: $1
Knowing what to copy and where to paste it: $999

[–] some_guy@lemmy.sdf.org 10 points 7 months ago

It's like that person who thought they'd found a cheat code called Google.

[–] Yaztromo@lemmy.world 9 points 7 months ago (1 children)

Honestly, I hate these memes. As an old school hacker/programmer who has been doing this for many decades, I can usually just start thinking in code and start dumping out everything I need from my brain through my fingers to the keyboard. I never copy-and-paste code from online for something I’m coding (I don’t count something like copying a script to do a quick shell task of some-sort; for something like Amazon’s directions for installing Corretto I’m not going to type all that out manually; and I don’t really consider that “programming”).

But as a tech manager (and former University comp.sci instructor), I know this happens more often than I’d prefer. But some of the worst code I’ve had to review has been copy-and-paste jobs where the developer didn’t understand the task correctly and jammed in something they found online as a quick solution. I get that I started in a generation where you had to understand the problem and code the solution from scratch (because the Internet crutch wasn’t what it is today) — but the fact that so many younger developers revel in the fact they copy-and-paste code on the regular makes me sad.

[–] blotz@lemmy.world 4 points 7 months ago

+1 ai tools are fine if you already know what you want to write and it speeds up the process of coding. But when ai tools are writing code you don't understand, you cannot verify that any of the code is actually correct and doesn't introduce bugs. Ditto for copy-pasting.

[–] force@lemmy.world 8 points 7 months ago* (last edited 7 months ago)

Depends on the language. I'm not gonna find shit to copy-paste for what I'm doing in Scala 3 or F#, but in Rust or C++ I'll frequently Google an issue I can't figure out and someone will have some fancy black magic hacker solution with super-iterators and turbofishies and weird type inference that I couldn't think of myself and just throw it in my code with some minor modifications :)

[–] backhdlp@iusearchlinux.fyi 8 points 7 months ago

read the code and pretend you understand it (real understanding will slowly come with that)

[–] dohpaz42@lemmy.world 6 points 7 months ago (2 children)

I’ve been professionally programming for 18 years now. And honestly, I hate writing code from scratch. I copy/paste code from other parts of my codebase and just tweak as needed. Writing code from scratch feels like I’m doing something wrong.

load more comments (2 replies)
[–] Blass_Rose@pawb.social 5 points 7 months ago

You tell him "stop giving away our secrets!"

And yeah, a lot of people in the comments are running away from the joke, but realistically, to copy+paste code and have it work, you generally have to have a grasp of the code, at least to ask what you want and to paste it and change the variable names, and write the lines to stitch it all together.

Add imposter syndrome on top of that, and it may seem like you don't do anything of use because you copied 3 functions out of a 1k line file.

load more comments
view more: next ›