It's hard to know exactly what your question is. Your title reads "Should we be teaching people to think for themselves?", but the only question presented in your post is "Are we training a generation of programmers who can't actually program, but can only search the web for programs that someone else has already written?". These are two very different questions.
Should we be teaching people to think for themselves?
While an admirable goal, I feel this is outside the primary scope of the Stack Exchange model, including Stack Overflow.
There is an expectation that people will do basic research before asking a question, and make some reasonable attempt to solve their question themselves. But as you're aware, this expectation is very often not met. And opinions vary widely on how strict we should be in dealing with people who don't meet this expectation.
There's a constant tension between varying and competing goals:
- To maintain a high level of quality.
- This is further complicated by the question of what "quality" means. To some, anything that could help someone else is "quality". To others, this means the site is streamlined to ensure search results aren't cluttered with less-than-useful content.
- To help other people.
- Again, there is no consensus on what "to help" means. To some, anything that gets a person farther along than they already are is "help". To others, just "fixing" someone's problem isn't necessarily "helping" them; an answer is only a good one, i.e. "helps", if it provides the person with new information that will improve their odds of success in the future.
- To gain reputation points.
- This perturbs everything surrounding the previous two points. Fact is, while altruism is a useful trait for Stack Exchange sites, many users if not most are driven by the pursuit of reputation points, at as little cost in effort to themselves as possible. As such, they are much more likely to provide hand-holding and quick "answers" to questions when it's easy to do so, and less likely to take the time to provide the "broader picture" answers that would provide a deeper understanding and better "help" for the person asking the question.
In other words, unfortunately the naturally-human tendency to seek the most reward for the least effort undermines the quality of the site at both ends. Not only does it provide us with a plethora of lazily-asked questions, it also provides us with a plethora of lazily-answered questions and a distinct lack of accurate voting.
Are we training a generation of programmers who can't actually program, but can only search the web for programs that someone else has already written?
I don't think so.
I mean, to some extent, I suppose the answer to that has to be "yes". That is, by rewarding lazy or incompetent behavior, we encourage this. However, it's been my experience that the people who approach their job in this way cannot really succeed on the backs of others. Even Stack Overflow simply does not have the bandwidth to literally write an entire non-trivial program for someone else.
Furthermore, it's also been my experience that people who have one part of their program written for them, without their learning or understanding how that part of the program works, eventually fail of their own accord. These people can cobble together a shaky implementation that works some of the time, and for employers looking the cheapest solution, this is often good enough. But they are never going to make it as a "real programmer".
And these people always existed. I don't think Stack Overflow is creating them. It's just providing a more efficient mechanism for matching up the people who can't or won't do their own work with the people who are willing to do those people's work for them.
More to the point, it is a monumental task to really educate a person. To teach them to think for themselves, and to give them the tools they need in order to succeed on their own without relying all the time on others. I don't think Stack Overflow can or should be expected to provide this education to others. It's admirable if and when people try, but these people are generally overly optimistic. I'm impressed at their patience and willingness to try, but most often they fail.
Stack Overflow just isn't the right environment for that kind of teaching and learning to work.
While a fine goal to strive for, I don't think it's the primary goal of Stack Overflow. The Q&A format lends itself best to questions that can be stated precisely and concisely, and to answers to address such questions directly. Every now and then, a really great answer comes along that delves more deeply into the issues the original questioner actually needs help with, and that's to be encouraged. But I think it's unrealistic to expect that each or even most answers follow that model.
And as disappointing as it is to me, I think it's probably also unrealistic to expect the whole of the Stack Overflow community to stop answering questions that show essentially no effort. There will always be varying opinions as to the real purpose of the site and what types of questions should be answered, and how they should be answered. One of the beautiful things about the community-based, voting-based approach is that whatever each of us individually thinks about the issue, we can be reasonably assured that whatever level of quality the site reaches, it strikes the balance between thoughtful questioning and laziness that the community as a whole feels is most appropriate.
After all, in theory every single question on the site could have been answered by the person asking it, using only their own effort. So it comes down to a subjective and somewhat arbitrary opinion on each user's part as to what constitutes "sufficient effort". In the long-term, the voting on the site should and probably does reflect the community's average opinion on that question.
sql*
to the ignored tags in your profile, [sql] questions are don't-make-me-think questions. People that answer them don't seem to mind and earn lots of rep from them.Are we training a generation of programmers who can't actually program
maybe. But if that means that the current scarcity of actual programmers, with its giant salaries and employers having to be nice and flexible, is ensured to continue far into the future, what's there not to like? :D