4 ms·
I'm wary of external urls in code. Some plaintext comment would come in handy for the day the link inevitably goes dead.
by bleuarff 2mo ago
I'm wary of external urls in code. Some plaintext comment would come in handy for the day the link inevitably goes dead.
- brettermeier 2mo agoWhy could external URLs be a problem? And is it still one if you swap https to hxxps or something? What could go wrong with having a URL as a comment in code? I put URLs there sometimes and think it's very helpful.
- bleuarff 2mo agoYou don't control these external resources, and now the explanation of what your code does is tied to a site that could be taken down tomorrow, leaving you with a dead link and an unexplainable regex.
- RankingMember 2mo agoAgreed- I'm all for comments explaining a RegEx, but not hyperlinks in comments. The link inevitably goes dead and now you've left a helpful-looking present in a comment with dust inside.