1237
submitted 8 months ago* (last edited 8 months ago) by alphacyberranger to c/[email protected]
all 47 comments
sorted by: hot top controversial new old
[-] damnthefilibuster 76 points 8 months ago

Yes, because till University, you’re trying to learn something new. And the best way to learn is by doing.

At work, all you’re trying to do is save money (for the corporation). Best way to do that is to reuse, recycle.

[-] Clent 46 points 8 months ago

It's more complex than that.

In the real world we're not all working on the same assignment...even if it feels like it sometimes.

[-] [email protected] 71 points 8 months ago* (last edited 8 months ago)

Anyone can copy code. Making the copied code work well in your own codebase, and fixing it when it doesn't, is what requires skill and experience.

[-] Chunk 27 points 8 months ago

When I was 8 I was making a "video game" (a complete bundle of code trash 😉) and I would copy people's code and everything would melt down. I would spend hours debugging just to realize I needed to pass an extra argument or indent or something.

Today I'm better at my job. I am now the one writing confusing function APIs 😈

[-] [email protected] 14 points 8 months ago

It's no exaggeration sometimes it takes a dozen different how-to blogs and stack overflows to find an example where somebody has exactly what you need and nothing more. So many people add so much fluff and unusual structures that the thing they're claiming the code does can't even be found.

[-] [email protected] 64 points 8 months ago* (last edited 8 months ago)

When I get helper functions from stack overflow or similar, I normally add a comment with a link to the article, mostly for my own sake so if there's any problems later I can re-read the article to get more info, or use it to try and find other solutions.

[-] 6xpipe_ 12 points 8 months ago

You’re supposed to do that anyway. Code on SO is licensed as CC BY-SA, which requires attribution.

[-] [email protected] 3 points 8 months ago

I used to do that on complete copy and paste parts.

Now we aren't allowed to do so. If stackoverflow.com is used you have to adjust the answer so that in court your code will not be a copy. They are afraid of users licenseing their code afterward.

[-] rambaroo 8 points 8 months ago

For JS shit I usually have to rewrite them because they aren't production quality in terms of readability. Still really useful for getting answers on obscure stuff

[-] [email protected] 3 points 8 months ago

The quality is definitely varying, the hardest part is to find a example that fits what you expect, or looks like it can be refactored into what you need.

[-] [email protected] 32 points 8 months ago

well using someone's code properly licensed isn't plagiarism

a fair few of my uni classes were like take this guys code and make it do this, which were like 4 lines changes

[-] rtxn 19 points 8 months ago* (last edited 8 months ago)

"Here's this header file that implements 99% of the mathematics, because I'm not paid to teach mathematics."

Ironically I learned a lot more about linear algebra from that header file than from my actual teacher.

[-] [email protected] 11 points 8 months ago

I just saw a "faster linear algebra" package scroll by on pacman. I almost pulled up the source/documentation.

The only thing that stopped me was that I have about 199 things more relevant to my usage than linear algebra.

[-] ItsMeForRealNow 27 points 8 months ago

It's almost as if we all work better when working together.

[-] [email protected] 6 points 8 months ago

Apes together, strong.

[-] visor841 27 points 8 months ago

Plagiarism isn't just using someone else's work. It's when you use someone else's work and claim it was your own. The programmers aren't plagiarizing as they're being freely admitting it's not their work.

[-] [email protected] 37 points 8 months ago

If you've ever copied and pasted code from StackOverflow without mentioning the author, linking the creative commons license, and linking to the author's account you've technically violated the creative commons license and I'd argue you've technically plagiarized.

Does anyone care? No, not really.

[-] [email protected] 12 points 8 months ago

Just don't tell your Legal department.

[-] [email protected] 5 points 8 months ago

Uh oh. So you think legal might be on to us, like, existing?

I know I’m safe though because every line of code I have ever written came to me in a vision as I stared at a flat white wall.

[-] [email protected] 6 points 8 months ago

flat white wall

Hey guys, look at this light mode user! My wall is dark mode. 😎

In a serious note, a developer should be aware of how licenses work. Just copy pasting from Stack Overflow likely breaks the defaults license. You could open up yourself or your company to serious legal trouble. And it really isn't ethical. I wouldn't want code I shared in a certain context be stolen by a large corporation and make them money

[-] [email protected] 4 points 8 months ago

Lol! I figured a plain white wall was as featureless as you could get for something to stare at while you mentally conjure code.

And since I’m in the office today (voluntarily!) there is literally a white wall to stare at above my monitors! But there is also a window slightly to the side, so my “staring blankly while totally thinking of something that will help the company” game is strong.

Dark mode is definitely the way to go though. I have three monitors and one phone in front of me, and 3/4 currently show a dark background in the application on them.

[-] unreachable 23 points 8 months ago

corporates: "what plagiarism?"

[-] [email protected] 6 points 8 months ago

Talk to the lawyers

[-] [email protected] 21 points 8 months ago

It's called importing not plageriusm

[-] CodexArcanum 21 points 8 months ago

All code already exists in Plato's world of perfect abstractions. Programmers merely view this ideal world darkly and scribble what imperfect algorithms they can vaguely remember.

[-] [email protected] 4 points 8 months ago

Stackoverflow is platonism for the masses, a means by which to copy perfect code from "programmers."

The "other programmers" are dead. There is no perfect algorithm. And so we must become programmers unto ourselves...

[-] [email protected] 19 points 8 months ago

Public domain? Creative commons? MIT? BSD? GPL? You mean I'm allowed to use these things without failing?

[-] [email protected] 14 points 8 months ago

Unless there's a bug. Then it is my code and I have to fix it. Immediately. No, I don't want to discuss my thought process for "why I made that decision" I want to fix it. Why are we having a chat about milk pouring technique while it is dripping off the fucking table. Prod is burning and you want to fiddle! (Meanwhile this is a minor bug that nobody has ever actually complained about but just the knowledge that it was my fault...)

[-] [email protected] 13 points 8 months ago

I have a suspicion that the reason universities crack down on plagiarism this hard (to the point of outright making up offenses like ‘self plagiarism’), is that it’s the only form scientific misconduct that is easy to prove and investigate.

If you are wondering if it’s true, just look at how long it took for Hendrik Schon to get caught. And even then, the smoking gun was reusing (fake) graphs in a publication.

[-] [email protected] 18 points 8 months ago

They crack down on plagerism because they're trying to teach and assess you, not whoever you copied from. If they wanted copied answers, they could just photocopy the answers for you and save everyone a lot of effort.

The real world may be different, but the idea is to get the knowledge and, more importantly, the way of thinking about your particular subject, into your head. Once you know that, you know what to copy.

[-] [email protected] 1 points 8 months ago

I was trying to make a larger point about the concept of plagiarism as a form of scientific misconduct. In a teaching setting you are just perpetrating exam fraud and should get nailed to the wall.

[-] [email protected] 3 points 8 months ago

Ah, fair enough, I think I misunderstood your point.

Yes, plagiarism as scientific rather than academic misconduct is cracked down on hard. As you said, it's easy to prove, and, I suspect they don't like the idea of having their own work copied without attribution.

[-] [email protected] 12 points 8 months ago
[-] unreachable 10 points 8 months ago

github copilot

[-] [email protected] 8 points 8 months ago

It is called a programming language. I guess repeating some sentences or even the idea for a story is normal when you write a book or code a program.

[-] [email protected] 12 points 8 months ago

There are also a lot of recurring problems, obscure bugs, performance enhancements that someone has already solved. Software development should care about completing a task, not inventing the wheel (or an image upload) the millionth time.

[-] AeonFelis 8 points 8 months ago

I'm sorry that you have to deal with my code.

[-] [email protected] 8 points 8 months ago
[-] cybersandwich 8 points 8 months ago

Collaboration* or using best-practices*

[-] [email protected] 3 points 8 months ago

It's often the lawyer and the corp who care about suing than the programmers

[-] [email protected] 1 points 8 months ago

I use dark mode for a reason. FU.

this post was submitted on 28 Sep 2023
1237 points (98.1% liked)

Programmer Humor

17670 readers
62 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 11 months ago
MODERATORS