I am currently kind of struggling with how to react to people who obviously put no real effort in trying to find a solution for themselves. I find myself to get more and more uncomfortable about those kind of questions and to react harsh or rude and would like to have a recommendation on how to handle it.
I don´t mean "basic questions" like it was a topic here but putting no effort in finding solutions to "harder" questions and improving yourself and your skills.
Take this question for example. I think I gave quite a good answer. Changing or adding rewrite rules does not seem like a basic problem for me, but you can find quite a lot about it and the code I provided should be a good starting point to move on and learn more about it, improve the code and fit it to your needs and so on.
But comments like "Where do I add it?" always make me think that the one I answer to is not interested in learning something before and after we solve his question. And solving that specific question is then, in the end, just part of a more or less clever hidden "write my code for me", through a series of questions.
And I think this behaviour might become risky, too. Just throwing code at people who are not trying to understand what is going on there, is kind of like giving them a loaded gun and telling them, that they should probably not shoot at other people or themselves but that it´s up to them. Can you understand that reference? (I struggle to write in English what I think in German about this situation, sorry.)
I don´t think that providing code examples is how Stack Overflow (should) work and I am more and more often just deleting my answer after typing, because I think "Hey, you made no effort, why should I?".
How can I handle these situations/questions better or how do you handle them?