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

Programmer Humor

35617 readers
144 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] andyburke@fedia.io 193 points 1 year ago (6 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! ๐Ÿคฃ

[โ€“] Ilflish@lemm.ee 23 points 1 year 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 1 year 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 1 year 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.

[โ€“] TexasDrunk@lemmy.world 3 points 1 year ago

I use it to help me lay out pseudo code and check it against what I come up with. It has made the way I structure things (and comment on things) way better.

[โ€“] Maeve@kbin.social 4 points 1 year ago

Got me! I laughed tears!

[โ€“] DharkStare@lemmy.world 3 points 1 year ago

Exactly. I cut and paste all the time but I make sure I know what the code is doing first before I actually add the code.

[โ€“] Rowan@lemmy.dbzer0.com 1 points 1 year ago (1 children)

You wouldn't happen to be Burke from CS, would you?

[โ€“] andyburke@fedia.io 2 points 1 year ago (1 children)

I am who my name says and I have a degree in CS if that's what you are asking.

[โ€“] Rowan@lemmy.dbzer0.com 2 points 1 year ago (1 children)

Didn't want to put too many details in the question for privacy sake. Knew a guy with your name in college, was curious if you were the same. Have a great day!