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.
That said, while debugging style questions are expected to contain an MCVE reproducing the issue (as well as a few other key ingredients), how-to questions do not have the same requirements. How-to questions need to be well-defined and reasonably scoped (i.e. general enough to be useful to future readers, while not being overly specific to the point that no one else will ever have the exact same conditions, or overly broad).
The problem with this question is that it was just too broad. We need the asker to limit their query to a reasonable scope, which requires them to break down their problem into smaller chunks and solve each chunk separately. Including code in this question would probably not have helped at all.
In summary: Howhow-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?