First off, the other person there was completely and 100% in the wrong with what they said. There is no justifying that, and we have been assured that they have been dealt with as such.

---

Now on the topic of your "stock" comment:

> Stack Overflow is not a code writing service

Stack Overflow _is_ a code writing service, among other things. We write code for people, we also explain concepts and debug problems. We do a lot of different things. 

There _are_ certain subjective limits to _how much_ code we will write for people, or how much explanation we think is necessary for the asker to understand the answer they are to receive; but I regret to inform you that Stack Overflow is in fact a code writing service.

> You are expected to write code yourself

Well, to a degree. You are expected to be able to write and understand code to the extent that is necessary to understand the answers you may receive, but this is really subjective and the bar is low.

**How-to questions are not inherently off-topic**, and **only debugging questions explicitly require code**

---

See also: [**What's better: a question with no attempt or with an unfixable/irrelevant attempt?**](https://meta.stackoverflow.com/a/338846/4639281)