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.