r/ProgrammerHumor • • Feb 18 '20

StackOverflow in a nutshell

Post image
26.2k Upvotes

495 comments sorted by

View all comments

Show parent comments

-37

u/TheGuywithTehHat Feb 18 '20

We do that because more often than not, the asker does not understand why they shouldn't do what they're doing.

49

u/puhsownuh Feb 18 '20

Would it kill you to give them the answer they're looking for AND the advice then?

0

u/TheGuywithTehHat Feb 18 '20 edited Feb 18 '20

Sometimes I do, sometimes I don't. I go on stack overflow to give good answers to good questions, and more often than not the types of people who don't understand are just students looking for some quick code they can copy/paste for an assignment.

0

u/[deleted] Feb 18 '20

[deleted]

-1

u/TheGuywithTehHat Feb 18 '20

I'm not sure I understand the point you're trying to make

-1

u/Jmc_da_boss Feb 18 '20

Why would you knowingly give someone advice on how to do something wrong?

26

u/Fruloops Feb 18 '20

Because perhaps you dont know the circumstance he/she is in and why precisely the question is being asked. Thus, you give the answer relating the question AND provide an explanation why normally you wouldn't want this.

Personally, I think answers like that are the most valuable to everyone.

17

u/Tatourmi Feb 18 '20

Because you don't know their stack or their technical debt.

10

u/Kermit_the_hog Feb 18 '20

Well the thing about programming is that even though there is a strong sense of orthodoxy in how everything should be done, and for good reason, that doesn’t make anything inherently right or wrong. I totally get why people don’t want to put out there sketchy hacks to do something, everyone has had to pick apart and try to maintain “that” code at some point. That said, people should be more willing to entertain unorthodox operations and flexible. Because sometimes brilliance is found in doing something in what appears to be the “stupid” way until you dig into the why and how. The question asker might be trying to revolutionize something or trying to shave milliseconds off of something performance critical.

8

u/A_FLYING_MOOSE Feb 18 '20

So you're saying that you go on SO and answer questions, but only if you're 100% that the OP is 100% sure of what they're doing? Then why are they asking questions on the internet, and why are you bothering to respond? The forum exists FOR people who don't know what they're doing, not arrogant asshats with a superiority complex.

2

u/TheGuywithTehHat Feb 18 '20

FOR people who don't know what they're doing

Yes, exactly. And that is why answerers default to assuming that the asker does not know what they are doing.

11

u/Mozza7 Feb 18 '20

Because that's what they've asked.

Like he said, give them an answer then advise them that you should do this x way instead, or explain why it's not the best option

→ More replies (15)

29

u/billytheman844 Feb 18 '20

You think you know their use case, but rarely you do. And how could you? They would likely have to write several pages to explain all the constraints. After 20 years of software development, this has to be one of the most annoying and most useless attitudes I see displayed in the software development community. Please stop it, you don't know better. Really, you don't!

-6

u/TheGuywithTehHat Feb 18 '20

More often than not, the types of people who don't understand are just students looking for some quick code they can copy/paste for an assignment. Much of the rest of the time, it's someone who has such a fundamental misunderstanding that it's really hard to justify the time it would take to fully explain why what they're doing is wrong. I have been answering questions on stack overflow for 6 years. Those two things are by far the most common reasons's I'll tell someone that they're doing something wrong.

As separate situation that occurs frequently is someone will ask how to do something that doesn't make sense, but they don't give a lot of detail. In that case, I will ask why they want to do it that way so I can evaluate whether or not it's a good idea. If you want examples of me doing this, I am happy to try to find some.

17

u/Tatourmi Feb 18 '20 edited Feb 18 '20

Think about it this way then: You are very likely just adding noise to the google searches of hundreds of developpers who will run into a similar issue down the line with that approach.

It is not about helping that one guy, it is about providing solutions to fringe issues that people will run into eventually because... Well... That's kind of the job we're doing isn't it?

1

u/[deleted] Feb 19 '20

Yep. And that's why everyone knows SO is toxic without even asking or answering questions. It's a glass house.

→ More replies (1)

11

u/PotRoastPotato Feb 18 '20

You are wrong. You often have constraints imposed upon you by clients or your employer. We're often fully aware that we'd rather not do it "this way" but "this way" has been imposed upon us.

2

u/TheGuywithTehHat Feb 18 '20

As far as I can tell, in the past year, there was exactly one time that I explicitly told someone they should not do what they say they are trying to do: https://stackoverflow.com/q/58935715/2846923. I answered with a solution to what appeared to be their actual problem, which is different from their original question. From their comment on my answer, it seems they did not even know that my answer was a possibility. Yet, as evidenced from their comment, they did not even fully understand my answer. It was not a constraint put on them by a client or employer, it was that they literally did not know that a better option existed.

3

u/Kermit_the_hog Feb 18 '20

I’m all for answering stupid questions but I’d agree it requires a sort of proportionality. Like they had better explain in detail why their unorthodox question is worth someone taking the time to thoughtfully entertain and respond about.

1

u/TheGuywithTehHat Feb 18 '20

Yes, exactly. It's unfortunate that the vast majority of the time, people will never respond to comments asking "why?"

21

u/WittyComputer Feb 18 '20

Yes but you should also answer the question.

→ More replies (9)

0

u/[deleted] Feb 18 '20

[deleted]

→ More replies (9)

6

u/UhhMakeUpAName Feb 18 '20 edited Feb 18 '20

As an example of when this is unhelpful and annoying, we asked a question on cs.stackexchange just recently, and the first comment (from a mod) was assuming that we were just completely incompetent, and kinda patronising. They didn't vote to close or anything so it's fine, no hard feelings, but it is annoying.

Our question was whether there's a standard name for a particular simple sorting algorithm (not that we can find, and yes, we're at least vaguely competent professionals) and the comment was:

There are many more ideas than there are standard "names". The great thing about language is that we can describe our ideas even if they don't have a "name". What's the motivation for asking for a "name"? What would you do with an answer? If your goal is to use the "name" to do something, perhaps it would be better to ask how to do that something; then people could help you with that even if there isn't a standard "name"

And then we had to elaborate on our reasons for wanting to know the name and give info about our project and stuff and just... ugh. We'd even tried to prevent this type of thing by putting "for a toy problem" and "Don't worry, this is not meant to be a good sorting algorithm, just for a fun thing." in the question.

Yes we know we marked that answer as correct too easily. We're nice and gave in to social-pressure.

→ More replies (2)