by sarthak-ag · 3y ago · 0 comments
In my programming job I consult SO multiple times, and I have never once felt the kind of hostile discussion environment that people try to potray. SO is very valuable to me especially for questions that have less to do with documentation but more about the essence of programming itself. It disgusts me that in future I will have to communicate with a brainless LLM instead where I have no recourse if its answer doesn't satisfy me, nor I have the confidence in the correctness of its word vomit.
Everybody is trying to do their best but the new askers don't have the experience to not ask their question and the experienced SO users have seen that question asked a dozen times already.
I have had questions closed as duplicate, where the "original" asked something else. Questions about choice of framework apparently are off topic on SE stack exchange -> closed. Weirdo moderators / keen users butting in on active, sane questions with "I'm voting to close because [random nonsensical rule]".
I feel bad writing it as I suspect most moderators on SO are great, but this is nonetheless my overwhelming experience of past 12 months.
EDIT I forget about the patronizing users who didn't read the question, but don't let that stop them from lecturing you. On SO rules, life mistakes...
There's also the issue of people trying to improve their SO score because that can impact things like job interviews, at least on the programming side, and as with any such system gaming it for high reputation (points for questions, answers, upvotes) has some side effects on people's behavior that aren't always pleasant. There's also a saturation effect, e.g. many common questions have already been asked, and the 'archive of truth' mentality means that you're supposed to search past answers before asking anything, which again tends to take a lot longer than ChatGPT does.
That being said, I realize you do have to be careful about subtle bugs.
My canonical example is “write a Python script that returns all of the AWS IAM roles that contain a given list of policies”.
The code it usually generates works correctly as long as you don’t have more than 50 roles in your account. It won’t add pagination support unless you spot the bug and tell it.
The second question I have is what type of questions do you find are better suited for Stack Overflow than ChatGPT? Are they questions based on post 2021 knowledge?
This is not always as easy for all types of questions. It's hard to come up with an example on the spot, but I tried a few queries I searched on SO in the last week, and found one to demonstrate. I was searching for "Where to store JWT in browser?". This is the SO answer [1] for reference. Now to prove my point, I ask the question to ChatGPT (3.5). Here's the chat [2].
On a first glance it looks like ChatGPT may have nailed it, though the information dump is HUGE. Among the 6 options it suggests, the last option "secure cookies" looks "correct". Indeed it is correct in what it says that this can prevent XSS attack. But it is not complete. Because it still does not prevent XSRF attack entirely. So I had to explicitly prompt it to think about XSRF and its response is weird. At first it incorrectly claims that XSRF attack is mitigated, but then in the response body it elaborates that we also need anti-XSRF tokens for complete protection. So I don't know what to make of it. Contrast this with the SO answer which is way more direct.
Honestly, ChatGPT's answer looks like that of a student who is trying to impress some examiner with their knowledge dump by beating around the bush rather than trying to precisely answer the actual question.
[1]: https://stackoverflow.com/questions/27067251/where-to-store-... [2]: https://chat.openai.com/share/c26fee93-5d3d-48e2-a820-297974...
Which is it you are referring to here?
I think most people dislike how hostile the main stack overflow site is to beginners, who despite being the ones who need the most help, are the most likely to get their question closed/ downvoted. It's unfortunately necessary to maintain the high quality of the site.
It's not just hostile to beginners. It's also quite hostile to experienced programmers (at least those subject to less than ideal design constraints), who are incorrectly treated like newbies and force-fed cookbook answers that fail to answer the actual question asked.
For example. Here's a paraphrase of some experiences I've had on Stack Overflow (obfuscated to preserve my anonymity):
> Me: I need to know about the implementation of this weird function in this weird proprietary language. I need to re-implement its output, which was (unwisely) directly exposed in our system's output and is depended on by our integrations. I know this sucks, but it's the problem I have to solve.
> StackOverflow: That's a bad design. You should use the XYZ function in Python instead.
> Me: You're not answering my question. I know it's a bad design, but I can't change it. The output is fixed, and I have no authority to force a change. If I can't re-implement the function, I'm suck using the weird language forever.
> StackOverflow: You should use XYZ function in Python. If you can't, talk to your architect and get budget allocated to rewrite all the downstream systems.
> Me: You're no help at all. Why did you even bother answering?
> Me (thinking to myself): Wait, I know: chasing after internet points and trying to feel high and mighty.
> StockOverflow: What if a newbie found this question? If I don't tell you to use XYZ function in Python, they might do something else instead! Like design and implement and entire less-than-ideal system!
> Me (thinking to myself): Good grief.