1251
submitted 1 year ago* (last edited 1 year ago) by alphacyberranger@lemmy.world to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] BeigeAgenda@lemmy.ca 65 points 1 year ago* (last edited 1 year 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_@lemmy.world 12 points 1 year ago

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

[-] Johanno@feddit.de 3 points 1 year 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@lemmy.world 8 points 1 year 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

[-] BeigeAgenda@lemmy.ca 3 points 1 year 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.

this post was submitted on 28 Sep 2023
1251 points (98.2% liked)

Programmer Humor

19817 readers
99 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 2 years ago
MODERATORS