How Bad Questions Ruin Good Programmmers

16 Feb 2016

Preface

Communication is the basis for human society and somewhere along the lines that trickled down to software engineering as well. While code can be interpreted by looking at it or by careful trial and error most people find themselves at the person oriented end of a book or video. The problem with both of these mediums is that they are finite. Furthermore, Employers don’t want you to program something that’s already been done and professors don’t want you to be working on an assignment which can easily be searched for.

StackOverflow is where many people end up when they feel they have exhausted their options (for some that point come much quicker than others). A quick glance will show a wide variety of quality in answers and questions. Many people come here searching for others to “fix their code”. A fair amount of these people receive this, in the form of wordless answers. This forms a reliance, especially on newer programmers. Which leads me to my hypothesis: Better questions, lead to better answers, lead to less reliant programmers.

Experiment

For the sake of this experiment I will be examining a few questions on StackOverflow. Their content will be judged based on a set of guidelines created by Eric Raymond, in the article “How to ask questions the smart way.”

At first this question seems innocent. I’d make the reasonable assumptions that this was made by someone relatively new to the scene. However, I would like to argue that this is what makes the content of the question more valuable.

First Question

The Bad

The most notable rule that this question breaks is choosing to ignore standard english grammar. While not incredibly hard to read, it is outputting. It should be noted that the question in the title is not in fact a question.

While a lesser offense, the author does attempt to give his idea of what the problem could be to the user. He makes a (grammatically incorrect) statement, in which he mentions several of the options available to him to solve the problem. This adds on to the fact that the author is not describing what he is actually attempting to do. While it is obvious that the author wants to tell if a website can detect if a user is using incognito mode, it is impossible to give a good answer without knowing the full scope of the project and what other hurdles there might be.

While the user breaks a fair amount of rules there are two rules that were broken that I would consider to be the worst offenses. In lue of a lack of forums StackOverflow filters itself by tags, which this author chose to intentionally disrespect. It’s obvious from the question that he did not know which this belonged in. Rather than asking a more specific question he chose to put this question in several unrelated tags and let the browsers choose.

Which brings us to the last final golden rule of asking a good question. Make sure it hasn’t been asked. The second comment reply to this question is a link to the same question being asked previously. To which the author would swiftly find out there is already an answer. Do not let people be your search engines.

The Good

Despite being a question I would throw into the “Bad” category, it is important to also understand what this question has done right. This question is direct with the way it asks a question. While the question falls into the cutesy category, it does a good job of focusing it’s intent. It doesn’t shout the question out into the void, but rather the problem is stated in an easy way for the question to be answered.

Second Question

The Good

The title for this question is amazingly written, it describes the error and three of the four separate building blocks that make up the function. The title isn’t formed like a question which seems counter intuitive but actually serves a distinct function. First, questions add excessive words or a sense of grovelling. This is both outputting and inefficient. Secondly statements allow for other users who will have similar problems to look up the problem.

The conciseness continues with the first paragraph of text. The author gives a small run down of the project in its entirety without being wordy. He describes the processes he is trying to use and then immediately follows it up with the error. While the author realizes that he does not understand that error code, specifically because it is an “unknown error” he does not discount the fact that someone else might be more familiar with that particular problem. To compound on this further, he released his code on a separate Github page. This allows for the question page to not be bogged down with snippets of code, while allowing access to material that might be necessary.

The second to last section describes the users attempts made so far to remedy the issue. While this seems similar to describing possible actions there is a distinct difference. Firstly this shows that several attempts have been made by the author before going to other people for help. While this isn’t that important it does build a trust between the person with the problem and the solvers. Secondly and more important it shows several solutions that the author has not been successful with, that other might have suggested.

The Bad

While for the most part this is a very well written question, even the greats trip from time to time. The last paragraph is the only place where I feel the author has done poorly. He grovels slightly, stating that he is at his “wit’s end” and asks what he is doing wrong. He also slightly implies that using any of the solutions he attempted before will all end poorly. This slightly invokes a desire to throw any of those away as near solutions. Other than that the query is well written.