(no title)
warty | 7 years ago
Question: How do I #include a 500MB text file in my C++ code as a string? My compiler explodes when I do this!
Me: Don't do this, your compiler isn't designed for this! Consider loading the text from a file instead!
Comment: -1 Dude this isn't helpful. What if it's code golf and you need to include a 500MB text file!? You never know. Get over yourself.
Stuff like this has happened to me so many times.
bad_user|7 years ago
When a user asks a question on X, it would be better to first assume that he knows what he’s freaking doing.
E.g. yes there might be valid reasons for inserting 500 MB as a string, and myself as another user desperately searching for an answer to it, I get pretty annoyed when I see answers for a Y instead.
SO contributors should answer the freaking question first. Can it be done and how. Otherwise the answer is of no use to people having the same question but for a different problem. Not to mention that I’ve seen questions closed as duplicates.
This is why I rarely go to SO for answers. I don’t want an opinionated forum, I want a mailing list where people assume you’re a grownup that really wants a solution to the question and not something else.
sosborn|7 years ago
The ones that can’t explain why are almost always unaware of the actual problem they need to solve.
bmpafa|7 years ago
Yikes. SO is where I learned to program, and if this were the norm, I wouldn't have made it.
If I ask a question the premise of which suggests I'm _way_ off, I wanna know. I have to imagine this scenario is far more common than the one you outline, wherein the poster has arbitrary constraints on his/her problem that need to be respected.
Let the voting system decide which answers are useful for posterity & which aren't. But to the answerers who take the time to help askers tackle the spirit of a question--not just its text--I say: thanks.
perl4ever|7 years ago
I find the attitude of "solve your problem by ignoring stated constraints" particularly irritating among database gurus, who should be more in tune with the business world than a lot of people.
When someone simply refuses to accept the constraints of a problem, it doesn't demonstrate intelligence, even if the problem as stated is insoluble; better to just ignore it. All they are really saying is "sucks to be you, glad I don't have to work there" which is boorish and unproductive.
None of that means that people don't sometimes go down a rabbit hole that they didn't need to. But know-it-alls generally need to step back and either disengage entirely or consider the constraints on a problem.
PurpleBoxDragon|7 years ago
Question: I'm trying to do Y so I can do X. I know Z is the right way to do X, but I'm not allowed to do it for $BUSINESS_REASON that I have absolutely no control over.
Response 1: Don't use Y to do X. Use Z.
Response 2: $BUSINESS_REASON is stupid, fix that.
Then some time later I'll come back and post my work around, with fair warning it isn't the right way to solve problem X, but if you have to use Y this is the best I've found.
Lionsion|7 years ago
username223|7 years ago
wiseleo|7 years ago
Can_Not|7 years ago
In my experience I see more of the opposite: XY answers. I search for or ask X, and there's a bunch of "smart guys" trying to subvert a secret hidden context to the question resulting in a secret question Y. When I arrive from Google to see the Y answer on X question, the answer is useless because unmentioned condition Y doesn't apply to my scenario. Multiple answers are always great though, because sometimes there is a sane default answer, and one or more "well if Y applies, you might actually [...]". There's a lot of value in multiple answers with their nuances explained or why they're outdated or the new way explained, etc..
slavik81|7 years ago
wolco|7 years ago
hackits|7 years ago
dingo_bat|7 years ago
A better answer would be:
This is wrong because <reasons>. Consider loading the text from the file. If you want to #include it anyway here's what you can try.
This will ensure that the code golf people can do what they want and normal people try the recommended thing.
warty|7 years ago
Of course there are cases in favor of both sides here or there. If you have reasons to go the esoteric route, then you should simply explain why. If you're browsing from the internet, you have to understand you're reading a conversation between two individuals, catered to the question-asker and not the rest of the universe.