1,518 karma · joined Aug 28, 2017 (9y ago) · 989 submissions
comment 2y ago · link · parent
Comment on whatever would be surprising when you read the code.
When I write code, a voice in the back of my head constantly asks “will I understand this code later?”. (People who just instinctively answer ‘yes’ every time are arrogant and often wrong.) Whenever the answer is ‘not sure’, the next obvious question is “why not?”. Answering that question leads you directly to what you need to write in your comment.
Sometimes the answer is “because the reader of the code might wonder why I didn't write it another way”, and that's the special case this article covers. But sometimes the answer is “because it's not obvious how it works or why it's correct” and that clearly requires a different type of comment.
comment 2y ago · link · parent
“Close the tab and move on” is what I've been doing. I'm just suggesting that HackerNews might be a better website if that weren't necessary.
Thanks for the other suggestions. I'm not sure if I can use bookmarklets on mobile (Fennec) but I'll look into it.
comment 2y ago · link · parent
A Nash equilibrium is a state of affairs in which no single person can improve their position without the collaboration of others. A frequently cited example is a bank run: if the bank goes bust, you better get your savings out quickly, but if everyone does it, the bank goes bust. The solution is for everyone to cooperate and agree to refrain from a run on the bank. Such collaboration is not easy to organize and not easy to convince a majority to participate in; but the ego-centric philosophy of capitalism makes it infinitely harder.
comment 2y ago · link · parent
comment 2y ago · link · parent
I'm not, I get what they're saying. If I want to eat pie, I need to bake one first or find someone to bake it every time. If I want to use a software, I only need to write or find the software once; then I can keep using it indefinitely. Therefore, the common assumption is perfectly justified. Most people who write software do so to create something that isn't already available.
That said, I still agree with the post. Justified or not, the assumption is frequently wrong. Coding is fun for its own sake.
comment 2y ago · link · parent
comment 2y ago · link · parent