Hacker News new | past | comments | ask | show | jobs | submit login

Actually, SO's obsession that the answers should contain code ready to copy/paste is flawed. They'd rather give them fish instead of teaching them how to fish.



I don't see that obsession, I have given plenty of prose-only answers that are the most popular one for the given question.


I've even gotten compliments for giving a prose-only answer instead of code.


But those were the users, not the moderators :)


On StackOverflow there's not much difference.


When you're reading the documentation for a software library, do you prefer if it includes examples for common usage or do you prefer a long list of API methods?

Have you ever used the "examples" section of a man page or do you prefer to scroll through the (sometimes long) list of parameters?

In my opinion, code examples are an important tool for teaching real-life usage patterns.


How else to you answer stuff like "how to compare strings in bash" if not with a code example?


On the other hand, often the people reading the answers are expert fishermen, but simply don't want to waste their time on trivial fish. If one wants to learn to fish, there are already many other resources.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: