6 ms·
My most downvoted StackOverflow answer
- a1o 2y agoThat last image is really something. I will remember it.
- ChrisMarshallNY 2y agoYup. It is worthy of a meme, all by itself.
- 3eb7988a1663 2y agoIs there a name for this feeling of wanting to know more, even knowing that you will be horrified regardless of the answer? Morbid curiosity seems insufficient. Like, is there a subreddit dedicated to people drinking their own urine? Was that guy a one-off? I am choosing to remain ignorant, but it is taking some self-control to not dig deeper.
- ChrisMarshallNY 2y agoThere were worse, in the days of UseNet. It was bad. Don’t believe the old men that tell you it was gentler and kinder, “back when.” That’s where I cut my troll teeth, and miss it like I miss a boil on my behind.
- gosub100 2y agothere probably is such a subreddit (likely a fetish), but just like a lot of viral posts, there's no proof that the thing actually happened, but there is a market for making viral posts. It makes people feel popular, and high-karma accounts can be sold to advertisers and political groups who manipulate social media.
- mk12 2y agoYeah I think it's a copypasta. I've seen it elsewhere with the details slightly different.
- card_zero 2y agoIt is/was a health fad: https://en.wikipedia.org/wiki/Urine_therapy https://en.wikipedia.org/wiki/Urine_therapy I thought it went out of fashion in the 90s when they figured out it damages your kidneys, but I may have misremembered that.
- TaurenHunter 2y agoThere is at least one MMA fighter who practices that therapy: https://www.mixedmartialarts.com/ufc/machida-explains-the-benefits-of-drinking-pee https://www.mixedmartialarts.com/ufc/machida-explains-the-be...
- mock-possum 2y agoWow those interview responses are just… utterly inane. “I drink it because i drink it, it’s good for you because it’s healthy, i started drinking it because my dad said it was good for me, it helps me by being healthy and by being good for me” - like it’s all a completely pointless circular recitation of beliefs, no reasoning at all.
- wordofx 2y agoAh good old toxic site: StackOverflow. You could write. “THIS ONLY WORKS ON X VERSION” Before giving an answer. And people will downvote saying it doesn’t work on Y version.
- ElCapitanMarkla 2y agoAnd then you get a notification that XXX has rewritten your answer for reason YYY.
- bryanlarsen 2y agoI've got one of those too! It doesn't answer the question to the extent that it's fair to call it wrong, it's trivial, requires Javascript for a CSS question, and probably other complaints. It's too bad it doesn't show number of upvotes and downvotes because that "+80" is hiding a lot of downvotes! OTOH, it was useful to me, and useful to many others. I answered it 2 years after the original question, so it's highly unlikely the original questioner was still looking for the answer. OTOH, lots of people would get to it through Google, and their question is unlikely to be exactly the same as the original question. https://stackoverflow.com/questions/1817792/is-there-a-previous-sibling-selector/8329572#8329572 https://stackoverflow.com/questions/1817792/is-there-a-previ...
- marky1991 2y agoThey didn't link to the actual meta thread, but I don't see any anger in the stackoverflow comments. If the answer is just objectively bad (for example, it answers a question that wasn't asked), it ought to be deleted, that's just basic moderation. And of course c++ and c aren't the same language.
- shawn_w 2y agoActual Meta thread: https://meta.stackoverflow.com/questions/420337/what-is-the-procedure-for-getting-blatantly-off-topic-c-or-c-answers-deleted https://meta.stackoverflow.com/questions/420337/what-is-the-...
- cjensen 2y agoI don't understand. In the Meta the answer is used as an example of something that never gets deleted by the system. I don't see any anger about it -- just a discussion of a defect in the Stack Overflow system where unhelpful answers never get pruned.
- MattGaiser 2y agoAnd I’m curious how else SO should handle poor answers like that. Are they just supposed to leave bad answers like that up? Especially when OP admits they don’t actually understand the topic well and isn’t interested in fixing it?
- Aeolun 2y agoIn this case it seems to help about 50% of the people that see it? Possibly more, since the downvoters are probably just triggered.
- card_zero 2y agoMeanwhile on some other programming forum, you ask a question about C, you only get answers about C++. SO is right to put minimal effort into preventing that happening. But they put maximal effort into it instead.
- yarg 2y agoCorrect them? An incorrect answer can be useful, because it often illustrates common confusions and naive mistakes that people are prone to making; If it's corrected with an explanation as to why it doesn't work, a good wrong answer can be more educational than the answer that actually solves the problem.
- cornstalks 2y agoThere are tons of answers on that question already. Correcting it would just be duplicating one of the others…
- 2y ago
- happytoexplain 2y agoTangential, this note from the other answers confuses me as somebody who has no real C experience: > The sizeof way is the right way iff you are dealing with arrays not received as parameters. An array sent as a parameter to a function is treated as a pointer The conclusion is that it's impossible in that scenario, so you can only manually keep track. But isn't this what dereferencing is for? What's my fundamental misunderstanding?
- cjensen 2y agoYou're being confused by one of the parts of C that is difficult for beginners to wrap their heads around, and is a trap from the unwary. In C, there are arrays. If you use the identifier that names the array as a parameter to a function, it gets quietly converted to a pointer to the first item of the array and all array size information is lost. So you can obtain the array size, but only if you are dealing with the identifier that directly names the array. If you attempt the same technique on a pointer to the array, bad things will happen.
- LiamPowell 2y ago> If you attempt the same technique on a pointer to the array, bad things will happen. Technically a pointer to the array will work as expected (i.e. void f(int (*x)[5])).
- Marthinwurer 2y agoDereferencing just gets whatever the value is of that data type that is at the memory location in the pointer. That memory location is all the data that is in that pointer, all other data on how to use it is in the compiled-in type. the length isn't stored unless you manually store it.
- kstrauser 2y agosizeof() is evaluated at compile time: https://stackoverflow.com/questions/671790/how-does-sizeof-determine-the-size-of-an-array https://stackoverflow.com/questions/671790/how-does-sizeof-d... If you make an array 6 long, the compiler knows you did that. However, that information isn’t stored in heap anywhere. If all you have is sizeof(somePtr), there’s nothing for it to look at to retrieve the data.
- jchw 2y agoSurprisingly, I don't think I've ever drawn the ire of Stack Overflow, despite its reputation. I don't know my most downvoted answer, but the lowest score I have on an answer is -1, and it's just because the answer was bad. That said, drawing the ire of people on Hacker News is extremely easy, and I do that periodically.
- jay_kyburz 2y agotempted to down vote, just because you dared us to.
- ebcode 2y agoWelcome to Karma Club. The first rule of Karma Club is: you do not talk about Karma Club. [With apologies to Chuck Palahniuk]
- eYrKEC2 2y agoHere's the recipe. 1. come in on Monday and need to solve some stupid problem with a stupid regex 2. Ask a question about negative lookbehind or negative lookahead regex syntax in python and why it doesn't match the text you thought it should, because.... it's Monday. 3. Have people virtually spit-take all over you and heap their scorn for a n-millionth duplicate regex question. Enjoy!
- card_zero 2y agoIt's OK, they give you this number called "karma" which is like credit that you can spend on annoying people.
- JimDabell 2y ago> Surprisingly, I don't think I've ever drawn the ire of Stack Overflow, despite its reputation. It’s because that reputation is flat out wrong. If you went onto Stack Overflow and went around insulting people, you’d get downvoted quickly until you didn’t have enough karma to post.
- jamesfinlayson 2y agoI think most of my answers have been left alone, but I've had a few valid questions that have been dumped on because... I don't know? I guess people skimmed my question and assumed it was something was easy to search, therefore I'm a moron.
- deleted 2y ago[deleted]
- gryfft 2y ago> Apparently, I stepped (through time and space) right into one of the most fiery subjects on SO (a site not known for calm and respectable discourse at the best of times): > Are C and C++ two completely different languages? > And, look. I don’t know. Obviously I wasn’t a C or a C++ expert then, am not one now and not even on the path of becoming one. "Are Java and Javascript different languages? Who knows! But be nice to each other, which in this context means not downvoting answers from people who aren't familiar with the subject matter being discussed, I guess."
- joegibbs 2y agoReally, to be fair in this case it's more like "are Javascript and Typescript different languages though" seeing as C++ is, like Typescript to Javascript, almost a superset of C except for a few changes that break things.
- shprd 2y agoIn case of TS vs JS it's well advertised that: > existing working JavaScript code is also TypeScript code For C++, it's been decades since anything like that was true. > C++ is, like Typescript to Javascript, almost a superset of C except for a few changes that break things. "Almost" and "few changes" are doing some heavy lifting here. Advertising and insisting incorrectly that C++ is a superset is only doing harm to both languages and causing confusion like the one in the post. It might have been true some 30+ years ago, but let's stop spreading it (outside of historical context) and misinforming others. Please see: - https://en.m.wikipedia.org/wiki/Compatibility_of_C_and_C++ https://en.m.wikipedia.org/wiki/Compatibility_of_C_and_C++ - https://www.stroustrup.com/bs_faq.html#C-is-subset https://www.stroustrup.com/bs_faq.html#C-is-subset
- bawolff 2y agoIt also doesn't make sense because his answer basically told people to stop using c and use c++ instead. Like how can he both write an answer basically saying: c sucks use c++ instead, and also not know the difference between them.
- raggi 2y agoThis is excellent marketing material for LLMs!
- _yb2s 2y agoI think this might be satire but can’t quite tell… They answered a programming language question with an answer that only applies to a totally different programming language, and then wrote this whole article complaining about being down voted? Although, the last image made the click worth it.
- happytoexplain 2y agoI think "totally different" is not an entirely fair characterization of a commonly used superset.
- thrtythreeforty 2y agoAs a daily user and occasional language-lawyer of many C++ features: your perfectly reasonable understanding of the practical relationship between the two ("C++ is a superset of C") deeply irritates a certain type of highly pedantic language nerd, who feels compelled to point out that C is not in fact a subset of C++ and that your opinion is therefore invalid.
- morkalork 2y agoWhich is hilarious because I've interacted with people working in some extremely deep in-the-weeds C++ code describe their company's coding standard as "oh its just C with classes" heheh.
- kevin_thibedeau 2y agoTry initializing a sparse const array (in .rodata) in C++. It's easy-peasy with C's designated array initializers. With C++, the best you can do is a monstrosity with a constexpr lambda filling out a std::array.
- bawolff 2y agoI dont really think it matters if its totally different or sort of different. Their answer either works or it doesn't in the programming language being asked about.
- lxgr 2y agoIs the link to the actual answer broken for anyone else? I have no idea which one it is, and if it’s even still there.
- koito17 2y agoThe answer was deleted. Here is an archive link. https://web.archive.org/web/20231203060623/https://stackoverflow.com/questions/37538/how-do-i-determine-the-size-of-my-array-in-c/8129291#8129291 https://web.archive.org/web/20231203060623/https://stackover...
- bawolff 2y agoCan't help but feel there is a lot of ego in this post. Person gave an objectively incorrect answer (im assuming it was objectively incorrect, not really a c/c++ programmer). It was downvoted for being incorrect. That is how things should work There is no shame in being wrong on the internet on occasion. I know i've said silly things countless times. Making mistakes is part of life. But we don't leave incorrect info out there to mislead others lest correcting it offends the original poster, we downvote/correct it. It is not a personal attack for someone to downvote incorrect/misleading info.
- ohr 2y ago(author here): on the contrary, my point is that I was wrong(ish), and I often think about that before I get angry at other people on the internet. The other point is that there's (usually) no need to choose between good moderation and civility, and at least IMO "blatantly off-topic and should be deleted" really fails at being civil.
- shprd 2y ago> "blatantly off-topic and should be deleted" really fails at being civil. How would you express that instead? There was nothing harsh said here. Is it the word "blatantly"?
- ohr 2y agowell yes! also calling an answer which mentions c++ as well “off-topic”, it’s not like I wrote a haiku about marmalade. And why insist on deleting if people found it useful? It’s literally at the bottom of the page, so it’s not a public menace or anything.
- shprd 2y agoI'm not involved in this in any way, so I can't definitely say why. But maybe I can share some points: 1. Regarding the answer being old (This seem a major point from your article) Answers on SO are intended to be a living organism. It's expected to be maintained very much like code. If you look at answers related to CSS and JS, you'll find many cases of answers[1] originally written in 2008 that are still up-to-date and were updated by various contributors to cover multiple specifications over the years. That's just how it works. Notice how questions are designed to have one accepted answer. So, answers ideally should never fall under "its just something I wrote 10 years ago". It's not a book. 2. Was the answer helpful? or was it noise? Like you said, the answer was at the bottom of the page, and that's because the majority of people even before the discussion, have found other answers more helpful and voted for them instead over this. What to conclude from this? I believe that was the topic of the meta discussion, and we play by the community rules. Stackoverflow is designed to work similar to Wikipedia. If I was a involved with the discussion, I have no strong feeling about the answer and would probably vote to keep it because it's not harmful per say. But mods and active users are the ones qualified to set the policy that best serve the site/community over time based on their observations. 3. It's nothing personal The quality of the answer is what matters. The same person can have terrible and great answers. Both the author of the comment and the meta discussion seem to be criticizing the answer and expressing their frustration with it (Rightfully or not). But you went beyond criticizing certain toxic behavior or culture, especially with the parallel you draw at the end to "drives this point home." which seem to be insulting them as a person. There was nothing civil about that IMHO. [1] How the answer to "How can I horizontally center an element?" evolved over the years: https://stackoverflow.com/posts/114549/revisions https://stackoverflow.com/posts/114549/revisions
- billforsternz 2y agoI found this blog post a bit confusing. The classic pattern sizeof(a)/sizeof(a[0]) works perfectly in C and C++. Did he claim this wasn't the case? Or maybe he tagged it as C or C++ but not both? (A much more minor sin). Or maybe something else? I found it impossible to parse.
- exitb 2y agoArrays in C are often passed around as pointers to the first element, in which case you can no longer get a correct answer with this pattern. This is the most common scenario where it stops to apply. Sometimes the sized array form is actually never available, as with dynamically allocated memory. The correct pattern for all those cases is to pass around the size from where it's known, along with the pointer. One can also use a sentinel element to solve some problems without knowing the size explicitly.
- billforsternz 2y agoYes I know. I've been coding in C for 40 years and C++ for 30 years. It's a simple technique that applies in particular, rather simple, situations with both languages. Edit: The real point is, what was it about his answer that was hated/downvoted? Surely not the fact the sizeof(a)/sizeof(a[o]) requires a little knowledge and care?
- olvy0 2y agoI don't get it either. From sibling comments here I think that it's the fact the bulk of his answer was about C++ while the question was about C. But he noted that in his answer and separated the cases, so I don't see what was all the fuss about. It's certainly not a really bad answer, like that Lundin guy says in the comments. Must be some sort of SO culture we're missing. Because in normal day-to-day conversation between reasonable adults, this would have been an acceptable answer.
- Dylan16807 2y ago> But I was just starting out, and if someone wrote that my answer was so bad that “there’s little hope to delete-vote it”, I would probably be super sad. I don't understand. "There's little hope to delete-vote" means it isn't very bad!
- shprd 2y agoSo the author finds objective comments like: This answer is blatantly off-topic and should be deleted uncivil and offensive, even though he admits it wasn't a good answer, and write this post to preach being civil, only to end it with implying the critic resemble someone drinking their own piss.. WTF!? The irony in this post is through the roof
- olvy0 2y agoPersonally, I find the word "blatantly" very rude and uncivil as well. It might be a language/culture thing though, since you obviously don't.
- _nalply 2y ago"Someone is wrong on the internet". Happens to most people, me too. Someone posted something you think is wrong and hostility ensues. Some people try to hide the hostility behind superficially respectful words, but the hostility is there. ¯\_(ツ)_/¯