r/programming • • Aug 06 '22

Vim, infamous for its steep learning curve, often leaves new users confused where to start. Today is the 10th anniversary of the infamous "How do I exit Vim" question, which made news when it first hit 1 million views.

https://stackoverflow.com/questions/11828270/how-do-i-exit-vim
5.3k Upvotes

621 comments sorted by

View all comments

282

u/pogogram Aug 06 '22

The one thing I truly despise about the community in a general sense is this extreme aversion to people openly saying they don’t know something. God forbid you say that on stackoverflow.

“What? You don’t know what a modulus operator is? You absolute fucking troglodyte, why do you even exist? I was using those in the womb while I was programming my own fully immersive virtual reality games. You should be ashamed of yourself. I will not answer your question but instead keep bragging about how amazing I am. “

It’s this maddening thing that serves no purpose. There is literally nothing wrong with people not knowing something even if you think it’s simple or obvious. We all had to learn that obvious thing at some point. A lack of information doesn’t equal a lack of intelligence.

127

u/Fyren-1131 Aug 06 '22

Someone once explained that SO is not a forum to be used as discussion for problems, it's more akin to a dictionary / wiki of problems (since original answers from users may be edited / maintained by entirely different users after the original user made the answer).

Not that it defends the asinine elitism that's rampant there, but it kinda gives ground to the notion that repeat questions serve no purpose.

68

u/plokman Aug 06 '22

The problem with that is tech evolves much faster than a language. A good answer 5 years ago may be an awful answer today

36

u/Fyren-1131 Aug 06 '22

True, but the answers are maintained. I don't know the process of that, but often when I find a question asked a long while ago, the answer may have updated and new paragraphs added by other people over its lifetime.

7

u/chinpokomon Aug 07 '22

[T]he answers are maintained. I don't know the process of that.

If you see a problem, fix it. It's like a wiki in that you can contribute to improving the solution. At least leave a comment that can help guide others.

7

u/KrazyKirby99999 Aug 06 '22

It would be great if there was something similar in wiki form.

17

u/Fyren-1131 Aug 06 '22

But... It kinda already is, isn't it? When you look up something on wikipedia, you know the search query, you know the name of the article you search for. But that wouldn't work with development, because fairly often a solution has deeper implications than just the surface level implementation.

So I would argue it kinda is a wiki, except you browse and search for problems instead of solutions - and find the solution via the problem (original question by a user). "How to implement OAuth2 in .Net", "How to use Coroutines in Kotlin" etc

14

u/chucker23n Aug 06 '22

But SO has the concept of a "correct solution", making it more like a help desk system where an issue is resolved. The "correct" solution is (typically) marked by the person asking. It may not be actually correct at that point. It may be even less correct 5, 10, 15, 20 years down the road. (For example, many "here's the idiomatic way of doing x in language y" answers will have changed since.)

Wikipedia, for all its flaws of deletionism, etc., treats articles as living documents; as an answer evolves, it gets edited.

(Community edits do exist on SO, but I don't feel like they're always the right approach either.)

8

u/Fyren-1131 Aug 06 '22

Asked 12 years, 8 months ago

Modified 2 months ago

Viewed 3.4m times

but you see stuff like this though, which is evidence that answers are actually moderated over time (although this particular question and answer is a precious timeless constant 😂) https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454

→ More replies (1)
→ More replies (1)

16

u/THICC_DICC_PRICC Aug 06 '22

It’s this maddening thing that serves no purpose.

As someone who’s active on stack overflow, you know what’s really maddening? For about 80% of the questions in our feeds, if I google the question title verbatim, the first result has their answer. You shouldn’t be asking easily searchable questions on stackoverflow, you’re just burning people out who are there to help for free, and you’re clogging up the question pipeline with useless junk, leading to important questions going unnoticed. Fucking look it up, and you deserve to be berated if you’re on a fucking website, therefore you have internet and google, and you still choose to ask a question instead of typing in your question word for word into google.

→ More replies (9)

41

u/BuriedStPatrick Aug 06 '22

What I find most frustrating are the people who "answer" with the question: "why would you want to do that?"

It so utterly misses the mark of what a person is trying to achieve and it does come off as mocking a person for not understanding everything about the program.

There are of course "bad" questions out there with missing context and misunderstandings. But if you truly want to help a person like that, it's better to get to the core of what they're trying to achieve, maybe think a bit outside the box as to why they would think something would work a certain way before just putting up a wall of technical jargon they have to pass first.

73

u/fredoverflow Aug 06 '22

What I find most frustrating are the people who "answer" with the question: "why would you want to do that?"

tbf https://en.wikipedia.org/wiki/XY_problem is rampant among beginners

9

u/chengiz Aug 06 '22

Yes that is true but a lot who answer that way are not really interested in the problem. If it turns out the problem was not xy, they either give up and the question remains unanswered, or keep "explaining" how you cannot possibly be correct (because that would imply they were wrong in some way).

6

u/blbil Aug 06 '22

Holy shit, it has a name!

Thank you for this brilliant intel.

7

u/Lich_Hegemon Aug 06 '22

Sure, but that goes against the goal of SO of providing a Q&A compendium. Half the questions have answers unrelated to the question at hand, making it a nightmare to search for existing answers to a problem.

5

u/CarlRJ Aug 06 '22

The flip side, though, is there are times when someone trying to solve using the XY problem case is being decidedly unhelpful.

Like, you’ll be presenting one sample case, simplified, and saying you really need to solve it using method A, and they’ll counter “no, don’t do it that way, use method C! It ends up shorter! Ta da! You’re welcome! Please upvote/accept my answer!”

And then you have to say, no, I really need to solve this using A, I have 20 different places I need to use this and method C would only work for 3 of them. And then put up with grumpy responses trying to get you to change the original problem to fit their pet method C.

So, yes, I have had times where I’ve had to say, “wait, let’s back up, what problem are you really trying to solve”, but I’ve also had cases where someone is trying too hard to be “helpful” when I just really need advice on how best to implement thing A without them trying to “improve” things. It’s a balancing act.

5

u/lelanthran Aug 07 '22 edited Aug 07 '22

tbf https://en.wikipedia.org/wiki/XY_problem is rampant among beginners

To be perfectly honest, its false-positive detection is even more rampant amongst the people who don't want to admit that a particular tech stack is crap.

Try looking at any question along the lines of "how do I do a synchronous http request in node.js?"

"Why would you want to do that?" is among my list of top 5 five stupid questions of all time.

I'd rather have answers to the questions asked, not answers to questions the experts wished were asked.

→ More replies (7)
→ More replies (4)

11

u/pogogram Aug 06 '22

I try to remind myself that having knowledge doesn’t automatically make people good teachers. And sometimes people default to saying don’t do a thing without realizing other don’t have the same context floating around their head. I try to encourage the process of always answer the question, then say here is a reason not to do it this way and then show the better way. You help someone learn a better lesson without making feel stupid for simply not knowing and they will most likely pass that information on in a similar fashion.

6

u/f3n1xgamer Aug 06 '22

i dont think its bad sometimes, people don't even understand the problem they are trying to solve

2

u/Ayjayz Aug 06 '22

If an expert can't understand why you have a particular question, chances are you're approaching the entire problem in the wrong way. Telling someone the best way to use a fork to eat soup doesn't really help when what they really need to hear is "use a spoon".

→ More replies (8)

10

u/oniony Aug 06 '22

Turns out, even after over twenty years in the industry, I didn't know the difference between the modulo and remainder operators until a few months back.

33

u/Lich_Hegemon Aug 06 '22 edited Aug 06 '22

For those unaware. The modulo of a number is always positive. The remainder of a division can be negative.

If you do -5 / 2, the result is -2 with reminder -1 because (-2 * 2) - 1 = -5. That's the reminder and that's why it produces negative results.

Modulo instead is instead related to modulo arithmetic, which constrains numbers to a subset of integers from 0 to the modulo - 1, wrapping around any results that go past these bounds. -5 % 3 == 1 because -5 wraps past 0 around to 2 once for -2, and twice for 1.

6

u/CarlRJ Aug 06 '22

You can’t fool me, negative numbers don’t exist. Unsigned integers FTW.

Next you’ll be trying to muddy the waters with some poppycock about “floating point numbers” or some other such fairytales.

→ More replies (13)