3 ms·
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.
by nottorp 7y ago
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.
- Kaiyou 7y agoHow else to you answer stuff like "how to compare strings in bash" if not with a code example?
- the8472 7y agoI don't see that obsession, I have given plenty of prose-only answers that are the most popular one for the given question.
- deogeo 7y agoOn 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.
- jannes 7y agoWhen 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.