r/ProgrammerHumor • • Oct 20 '21

Meme Stack Overflow in a nutshell

Post image
3.9k Upvotes

117 comments sorted by

View all comments

1

u/DaniilBSD Oct 21 '21

Day 205 of telling people

STACK OVERFLOW IS FOR FINDING ALREADY ANSWERED QUESTIONS!!!

IF YOU DO NOT HAVE YEARS OF PROFESSIONAL EXPERIENCE YOU ARE NOT QUALIFIED TO ASK THERE

Because either:

  • a. You are trying to do something stupid

  • b. Someone already asked it.

  • c. You do not have the experience to ask the question correctly (on the correct level of abstraction with correct terminology)

16

u/dudesuit Oct 21 '21

I try stupid shit all the time and never have the confidence to ask cause I know stack overflow will tell me just how stupid I am. 🤦‍♀️

-25

u/DaniilBSD Oct 21 '21

Go to a beginner subreddit - there are helpful people there

Or you know, you could read the documentation

12

u/dudesuit Oct 21 '21

I mean, sure... Your assuming there is documentation, or that it's accurate. Want crazy with some weak documentation? The .net reflection API. Oh, how about win32 in c? Or some other really messed up codebase that's old, not public, and should have been rewritten 25 years ago, yet was dragged into another 3 languages via obscure interop so that management could claim that the dev team uses new, more appealing languages? Stack overflow isn't interested either.

-11

u/DaniilBSD Oct 21 '21

You are acting like I said documentation is solution to everything, what I said is that if SO has no such question, it is likely that you are asking it incorrectly, it is a trivial solution described in the documentation or should be approached differently.

(Ex: how do I press a keyboard button for the user? 1) look in the input/output API, 2) just call the function triggered by that button, this also allows you to remap keys)

3

u/Nyghtrid3r Oct 21 '21 edited Oct 22 '21

Or it's just very specific knowledge that is obscure and hard to find in the documentation.

Example: For a system written entirely in python and C++, I needed to use one singular batch script. For some reason I kept getting errors, somehow related to escaping a backslash. The reason why it didn't work is that because I used the redirection operator, the script was parsed twice and thus I needed to use the escape symbol three times instead of once.

I'm not going to easily figure that out and I'm not gonna read the entire documentation for batch scripts because of one single command. So that's why I asked a question on SO and got blasted by a pretentious asshole. Afterwards it turned out it wasn't even in the documentation, at least not specifically.

1

u/dudesuit Oct 22 '21

Yeah, exactly. Try encoding a JSON secret to put into the dotnet credential store from PowerShell. The quote escaping by itself is maddening. It's the things the docs don't say cause they aren't obvious or even typical and that I'd ask at stack overflow that end up downvoted or never answered.

Don't get me wrong, I've had some great experiences on SO. Like I had a question about passing a queue through a void * into a freertos thread running on a different cpu so I could have a pub/sub model for sensor data on an esp32. The docs are fantastic for the people who get RTOS and MCU level development, but to us meer mortals... Yeah. SO has been very helpful there, with solid code examples. So it's not always. And it's probably a terrible idea since, well, I did use a void * to totally smash the compiler into letting me break stuff... But I got it working cause of SO.

9

u/kolonyal Oct 21 '21

why can't people just answer to a simple basic question?
currently playing with discord bots in node js, and i barely know javascript. Should I learn javascript first? Yes, but it's a hobby, not my job, i don't want to spend my time learning a whole programming language when i just want to do something fun.

Tried to ask for help regarding some small thing i wanted to do and didn't know how on programming discord server and obviously people told me to go watch a javascript guide :)
Literally the answer was a line of code made out of less than 20 characters

3

u/eyekwah2 Oct 21 '21

You're right, that's an incredibly lazy reply to tell someone to just learn the language, but you have to consider it from the point of view of someone who knows the language well and has actually gone through all the effort of learning the language from guides. There are guides everywhere, and they're well categorized that would allow you to cherry pick the information you need.

In the future, I would recommend you ask about the terminology, and then just search within the guides for topics regarding that terminology. If I wanted to learn how to use lambdas to filter a list of items, but didn't know the term "lambda", it would be very difficult to get what I want to learn. I'd end up with many older guides telling me to use a for loop, for instance. So ask for how things are called, and search for that and I promise you'll be met with greater success.

Also a very undervalued skillset in our field is learning how to search for the information you need.

3

u/kolonyal Oct 21 '21

Indeed guides are very useful, but for example a problem i stumbled upon was the for discord bots there are couple versions, and i was using the latest one that had pretty big changes, so whatever i would search for wouldn't work in my case. Took some time to figure that out

-4

u/DaniilBSD Oct 21 '21

Not on Stack Overflow.

This is the way that site works - its not a forum, not Qura, not Reddit. It is for the professionals by the professionals, but you are free to look silently.