3 ms·
I go one further. If I do use a piece of code from Stack overflow (usually a workaround for some API pain point or specific technical gimmick), I linked to the
by remram 5y ago
I go one further. If I do use a piece of code from Stack overflow (usually a workaround for some API pain point or specific technical gimmick), I linked to the answer from a comment. I then built a tool to notify me if that answer gets new comments or new answers are added. [1] Similar to how I check for new versions of my npm/pip/gem/cargo dependencies, I check for new info on my Stack overflow dependencies.
[1]: https://github.com/remram44/depoverflow https://github.com/remram44/depoverflow
- Larrikin 5y agoI link to SO in a comment if there's some bug I'm working around or similar with an explanation about why a strange code snippet is doing something that looks strange. There is usually a TODO so that the code can be removed when the bug is fixed.
- remram 5y agoThat's good too, I just find personally that in larger codebases, those TODOs tend to stay forever.