News for hackers. Stuff that matters.
Re:Docker for Windows won't run if Razer Synapse driver mana... by moomin on Tuesday February 18, 2020 @08:15AM (#22355763)
I'll suggest one more addition to this (and any code you take from the internet): put a comment in saying where you got the idea from (with a link). It can help the next guy out a lot. And you might be the next guy.
Re:Docker for Windows won't run if Razer Synapse driver mana... by yorwba on Tuesday February 18, 2020 @01:01PM (#22358350)
> put a comment in saying where you got the idea from (with a link)

StackOverflow content is licensed under CC BY-SA, so you're legally required to do that if you copy code from an answer. (Unless it's so trivial the code is not copyrightable, but it's better to be on the safe side and attribute the source correctly anyway.)

Re:Docker for Windows won't run if Razer Synapse driver mana... by m_mueller on Wednesday February 19, 2020 @05:20AM (#22364351)
> And you might be the next guy.

It already happened to me a couple of times that I had a problem, googled it, and found a helpful SO answer .. by myself some years ago. So this is definitely a helpful suggestion.

Re:Docker for Windows won't run if Razer Synapse driver mana... by inetknght on Tuesday February 18, 2020 @09:02AM (#22356096)
Especially if it's not a copy-paste job. If there's any adjustments or even a rewrite, the comment should include the reason why the changes were made. The next guy coming along might not realize that changes were needed
Re:Docker for Windows won't run if Razer Synapse driver mana... by nradov on Tuesday February 18, 2020 @12:58PM (#22358306)
It's usually better to put that information in the revision comments when you commit rather than in the code itself. Otherwise the code accumulates layers and layers of comments over years.
Re:Docker for Windows won't run if Razer Synapse driver mana... by jonreem on Tuesday February 18, 2020 @04:52PM (#22360771)
Personally, I've developed a strong preference for putting this type of information as close to the affected code as possible. Immediately next to the affected code is the only place these types of comments have a prayer of being kept up to date. Keeping them in another document, a commit message, or anything similar just results in the content of the message instantly going out of date.
Re:Docker for Windows won't run if Razer Synapse driver mana... by penagwin on Tuesday February 18, 2020 @04:47PM (#22360738)
I feel like it depends - I know I don't just start digging through the commit history of every line I edit.

If I'm trying to fix a bug, and only have to change one line for it to start working, and the tests still pass - but that line was there for a reason that wasn't commented (some edge case) - I'll likely miss it.

Re:Docker for Windows won't run if Razer Synapse driver mana... by Jare on Tuesday February 18, 2020 @08:38AM (#22355920)
This is huge and has saved me a few times already when I became my own "next guy"
Re:Docker for Windows won't run if Razer Synapse driver mana... by tracker1 on Tuesday February 18, 2020 @12:40PM (#22358032)
So much this... I tend to do this. There are times where I need a limited subset of a library, and will just pull the two classes I need, add the comment at the top, and adjust the namespace.
Re:Docker for Windows won't run if Razer Synapse driver mana... by nitrogen on Wednesday February 19, 2020 @03:15AM (#22363867)
Including an update to all of your copyright notices, of course