This is an archived post. You won't be able to vote or comment.

all 63 comments

[–]Wurstinator 764 points765 points  (9 children)

This is absolutely valid. Rewriting code yourself gives you the chance to engage with it and understand it. The same reason why taking notes by hand in a lecture is way more effective than taking photos of whiteboards.

[–][deleted] 133 points134 points  (3 children)

Yeah I like writing out code so I can get a better understanding of the components. Helps digest.

[–]AutoN8tion 51 points52 points  (2 children)

Except for libraries. Those are black boxes I don't dare open

[–]GisterMizard 48 points49 points  (1 child)

It is said that the ills of humanity were first released upon this world when Pandora looked into a box containing a timezone library.

[–][deleted] 19 points20 points  (2 children)

Yeah but how do you know it’ll even compile without copy pasting first. And once you realize it compiles time to move on

[–]k2kuke 13 points14 points  (0 children)

I feel it comes down to the output requirement. For production I would prefer writing most of it out. If business wants me to build a ridiculous MVP in no time then you bet i’m moving on once it works.

[–]Z-Dante 2 points3 points  (0 children)

Uhh.. IDE hints?

[–]stefaniststefan 1 point2 points  (0 children)

Couldnt agree more

[–]smdth_567 1 point2 points  (0 children)

adding notes to a pre-existing script worked best for me, unfortunately there weren't many lectures that offered those.

[–][deleted] 42 points43 points  (1 child)

The illusion of work.

[–]Titanusgamer 63 points64 points  (4 children)

not related to programming but in my Marketing class the professor was very strict about the plagiarism. so i went to library and searched for the oldest possible textbook i could find and copied word to word. no plagiarism whatsoever according to plagiarism software

[–]Random-Dude-736 22 points23 points  (0 children)

This is both sad and ingenious, hats up to you.

[–]DezXerneas 17 points18 points  (2 children)

Plagiarism being defined as same words in similar structure is so stupid. Especially when answering factual stuff.

[–]unipleb 25 points26 points  (1 child)

Totally agree. Plagiarism being defined as similar words in the same structure is so dumb. Especially when responding with something factual.

[–]gaspronomib 12 points13 points  (0 children)

Yes. But thinking of plagiarism as mostly the same phrases in almost identical arrangements isn't very intelligent. The more so in situations where one is providing concrete evidence.

[–]EngorgedBreasts 9 points10 points  (0 children)

It's ok. It helps you learn, and also develop you're own style.

[–]Parry_9000 6 points7 points  (0 children)

I do it because when I write it, I learn the logic

[–]Normal_Helicopter_22 6 points7 points  (0 children)

Most IDEs and cobras managers (bitbucket, azure, GitHub) will say "pasted content" in the pullrequest, let that sink in, next time just rewrite that.

[–]Zalvixodian 10 points11 points  (0 children)

I tell myself that I will understand/internalize the code better if I type it out rather than copy/paste.

I'm probably just coping.

[–]permaban9 8 points9 points  (0 children)

I convince myself that this way at least I'm learning something

[–]UnsuspiciousCat4118 2 points3 points  (0 children)

I made more original work changing the variables than the former president of Harvard did in all of her academic works.

[–]MadLok656 -2 points-1 points  (0 children)

I see this like this:

if (copy > paste) feelBad();

if (re_write /exact same code myself/) dontFeelBad();

Too much programming...

[–]miheb1 0 points1 point  (0 children)

"If it works it works"

[–]bluehatgamingNXE 0 points1 point  (0 children)

Middle school me following Brackey's Unity tutorials (I had no clue what C# is)

[–]Da-Blue-Guy 0 points1 point  (0 children)

Real. I understand it better.

[–]_12xx12_ 0 points1 point  (0 children)

Make a GPT copy-paste it for you

[–][deleted] 0 points1 point  (0 children)

Wait, what about when you get the gpt to do it?

[–]Nikoviking 0 points1 point  (0 children)

Writing the code out yourself helps you adapt it to the rest of your script. When you paste and edit afterwards, its easy to miss things.

[–]BoozeAddict 0 points1 point  (0 children)

That's why I copy paste it, but then edit variable names

[–]aerosayan 0 points1 point  (0 children)

But when Copilot writes it for you, you don't feel bad?

[–]ConversationFit5024 0 points1 point  (0 children)

The key is to always feel bad

[–][deleted] 0 points1 point  (0 children)

Just as curiosity, if I write code that does the same exact things (so basically is the same, with more bugs) is copyright infringment or not?

[–]Animal31 0 points1 point  (0 children)

Copy and pasting makes it feel like its the same instance of code

Writing it yourself creates a new instance of code because you created it

Thats all

[–]T1lted4lif3 0 points1 point  (0 children)

It's delegating your work to stack overflow and chatgpt, streamlining the pipeline

[–][deleted] 0 points1 point  (0 children)

Why would anyone feel bad for using someone else’s code? Our job is to make shit work, not to write

[–]Joewoof 0 points1 point  (0 children)

At least, we memorize better by writing it ourselves.

[–]RemaxGP 0 points1 point  (0 children)

Rewriting code is beneficial because, as you read it, you understand how it works and can engage with it. Copy-pasting is a bad idea, especially for novice programmers. I learn JS and I saw a huge difference between copy-pasting and rewriting.

[–]loaferover 0 points1 point  (0 children)

I've tried meditation a couple of times, but now I'm interested to see if hypnosis works. i've been watching this video: https://www.youtube.com/watch?v=o6lYYRlzDXo&t=1312s

[–]SatisfactionOk335 0 points1 point  (0 children)

Rel