This is a situation that I have run into a few times during my experience on StackOverflow.

A user - often times a beginner at a certain technology - will ask a question.

> I'm trying to do *xxx*. I've tried the following, but can't get it to work.

Sometimes, I'll see other users step in and throw a bunch of code at the user, saying "Do it like this." These answers can be over-complicated, or just unnecessary for what the user is trying to achieve. I think sometimes we get overzealous and do an unnecessary amount of work just to answer simple questions. It's not inherently harmful to the community, but there's a balance between complexity and helpfulness that we should try to maintain.

In contrast, this is a [perfect example](https://stackoverflow.com/a/33133361/2278598) of what I think you SHOULD do in an answer. The poster had nice, clean code, and they explained it in detail. Maybe I'm just visiting the wrong tags, but I see too many answers that just throw code at the author without much of an explanation at all.

We all want to be good programmers, and answers that explain concepts well, or WHY you should do something in a certain way, can be one of the best methods to help someone in this regard.

Apart from [How to Answer](https://stackoverflow.com/help/how-to-answer), are there any good community guidelines that you try to follow when answering questions on SO? Any incredible answers that you try to model after?