73

This question has 3 answers with >100 upvotes.

The 3rd answer (mine) is fine, but the 1st and 2nd answers are terrible by all accounts.

The first one relies on jQuery to do a loop (wut?), the 2nd one relies on eval to do a sum. Let that sink in. eval to do a sum.

What can we do about it? These answers create a bad (and even harmful) image for visitors from search engines.

44
  • 17
    Your answer is highest voted though - although I agree it is annoying that the one with the check mark sticks to the top. That should be done away with (but so far they've resisted the request.)
    – Pekka
    Commented Jan 7, 2016 at 9:42
  • 9
    @Cerbrus OP explicitly asked how to do it with $.each, so that answer was legitimate, even if it should have also explained how to correctly do that sum. Commented Jan 7, 2016 at 9:47
  • 5
    I feel that if the answers were incorrect, the community would have voted them down. Even if they suck, they're still answers - and it helps to show others how not to do it.
    – Jimbo
    Commented Jan 7, 2016 at 9:47
  • 3
    @DenysSéguret: ah, I see. However, then the correct answer would be: "Don't use $.each", use x instead", as I'm sure you'll agree :-)
    – Cerbrus
    Commented Jan 7, 2016 at 9:49
  • 3
    @Jimbo: The answer should mention that it's how "not" to do it. If it doesn't, it's a perfectly valid reason to downvote the answer.
    – Cerbrus
    Commented Jan 7, 2016 at 9:50
  • 10
    Vote totals depend on the number of views first, the quality of the Q+A is a distant second factor. That one has had over a hundred thousand programmers looking at it. No, we can't reasonably stop them from looking. Or expect them to know the proper answer, they wouldn't have a reason to look. Or expect them to know anything about Lisp :) The accept mark is usually a good way to steer away from popularity, too bad it has the wrong one. Your beef is with @amir. Commented Jan 7, 2016 at 9:55
  • 2
    "eval to do a sum." You what mate?
    – Magisch
    Commented Jan 7, 2016 at 10:00
  • 3
    @OlivierGrégoire I honestly don't care at this point, as OP is long long gone. The question has an extremely high value for visitors from Google, and we want the best possible info to be at the top.
    – Madara's Ghost Mod
    Commented Jan 7, 2016 at 10:11
  • 2
    Well, if you don't care, why don't you continue not caring and move the accepted answer yourself, or ask the SO guys to do it directly? Commented Jan 7, 2016 at 10:14
  • 3
    @OlivierGrégoire Because even moderators can't move the accepted mark. That's a power reserved only to OP. Were I able to do so, I would have done so in a heartbeat in this particular case.
    – Madara's Ghost Mod
    Commented Jan 7, 2016 at 10:17
  • 2
    It cannot be so difficult adding up some numbers in Javascript, can it? What about a single good answer that shows the three common approaches like plain iterating, using reduce or using jquery (if this gives any advantage at all) and comparing execution speed. That could then be an outstanding answer. Commented Jan 7, 2016 at 10:19
  • 2
    @MadaraUchiha Then people shouldn't complain that the OP accepted the answer at the time he did so. Commented Jan 7, 2016 at 10:21
  • 6
    Florian Margaine is complaining (since he posted this meta topic), Pekka 웃 is complaining as well (since he asked the OP to switch answer). So... yes, people are complaining. Commented Jan 7, 2016 at 10:24
  • 2
    The closure as "This question does not appear to seek input and discussion from the community" is nonsense. There's plenty of dscussion going on here.
    – Cerbrus
    Commented Jan 7, 2016 at 11:21
  • 9
    Btw. Someone gave a very similar answer (using reduce) already a year before Florian Margaine come up with the idea. And it doesn't end there. One year later again somebody came up with reduce and one year later again. This guy measured the execution time and arrived that reduce is even faster than a while loop (+1 for actually measuring it)!! Commented Jan 7, 2016 at 12:46

7 Answers 7

59

So I'm just going to toss this out.

Let's say .. Five people vote to deprecate an answer (let's say we gate this at 15k+ rep, gating it through tag participation is simply not possible from an engineering standpoint). Their combined signal says:

This answer is probably actively harmful even if it was once correct, and needs to get the heck out of the way so the modern world can creep in

... would it matter if we took the accept mark away? We have gone through at least six possible implementations of this that attempted to preserve the accept mark without making the sort order even more confusing - it won't work.

For this to be able to work, folks would need to be behind the idea that as an answer loses relevance and usefulness - so does any accept mark it once had. Now:

  • It wouldn't take rep away from anyone
  • It would be a pretty silent ordeal. There wouldn't be notifications of this process - it would be very similar to deletion.
  • A deprecated answer would still be visible, but marked as deprecated and at the bottom of the pile (above any negatively scored answers if they existed)
  • The status could possibly be reversed if a substantial edit was made to the answer.

We'd need a feature request that aggressive in order to consider it again, folks really do need to be behind dropping the accept mark in order to make deprecation work. It's like the .. purgatory .. before deletion, so we need to treat it pretty much like deletion.

I want to do this, I've worked at lengths with Bluefeet and Shog in order to come up with a system that handles this (we were always supposed to have this in place, it was always Jeff's intent to close this gap).

Come up with a feature request that treats deprecation basically like deletion, but with some possible ways out of it for those that discover that something was deprecated and still care enough about it despite knowing they won't lose any rep to fix it, and we'll take another shot at it. We can't mess with the sort order, we can't make this process noisy and causing contention all over the place - but we do need something.

I'm open to any sane idea given the above constraints, with a decent amount of support shown for it.

Here's a start on how to gate the feature:

  • Must be an answer (though, we want to know if many answers to a question are deprecated, because the question probably has some issues too)
  • Must be at least 1 year old
  • Must have received at least 5 down votes in the last 30 days and still have a positive score of at least +5(? probably needs to be configurable so all sites can have it) - otherwise just delete the darn thing
  • Must not be community wiki - otherwise just fix the darn thing

... you can take it from here :)

24
  • With the gating mentioned at the end it might end up as a quite special thing to fix very special cases. There are alternatives however: Put the accepted answer even less often on top. Or: Decay votes with time (with a decay time inversely proportional to voting activity). Or as has happened here: Fix the darn thing and wait for the community scoring to eventually get a reasonable order again. If however you do this, deletion of answers, where will it end? Deleting posts against the score but still based on the content quality is still a dangerous thing to do I believe. Commented Jan 7, 2016 at 13:45
  • Tim, I'll type an idea up for this that I have. I'll post a link to the Feature Request here when im done. It could take a few hours though.
    – Magisch
    Commented Jan 7, 2016 at 13:47
  • 4
    @Trilarion We've extensively discussed "unpinning" the accepted answer and that's not likely to happen - it's the signal that the OP found an answer that worked for them (good or bad) and we also assume it's a tested answer. Whatever is put in place needs to be easily explainable to non-power users of the sites. Decaying votes gets a bit difficult to explain to newish users, so that is also not likely to happen.
    – Taryn StaffMod
    Commented Jan 7, 2016 at 13:49
  • 1
    @bluefeet Why do you assume that newcomers are unlikely to understand decaying votes? Given that, for example 1/3 of the votes are negative? Won't this be a good indication that the post is controversial?
    – Maroun
    Commented Jan 7, 2016 at 13:59
  • 1
    @MarounMaroun I'm not assuming they wouldn't understand it, I'm saying whatever is put in place needs to be be easily explained to non-power users. Don't forget that seeing the voting breakdown is a privilege earned 1k so a large portion of users wouldn't know 1/3 of the votes are negative.
    – Taryn StaffMod
    Commented Jan 7, 2016 at 14:01
  • 2
    @bluefeet Displaying the derivatives/trends of answers (maybe by nice little up or down pointing arrows) might be something worthwile to pursue. It also might be easiy to explain to newish users. This proposal here I don't like much. It looks like mistrust in voting and sets precedences. I hope it will not happen. I'm fine with additional symbols next to the post but deletion or putting at the end is too strong. Commented Jan 7, 2016 at 14:02
  • @bluefeet Well then please take a look at my feature request, will be glad to hear your input.
    – Maroun
    Commented Jan 7, 2016 at 14:02
  • 2
    @MarounMaroun: If we have decaying vote, we probably also need a way to re-affirm votes... or otherwise a lackluster late answer will easily dominate a 2K+ answer if it just garners a few upvotes. Commented Jan 7, 2016 at 14:13
  • 1
    I like this idea very much. In addition, perhaps gray it out like with posts with -3 or less.
    – Madara's Ghost Mod
    Commented Jan 7, 2016 at 14:23
  • 1
    "preserve the accept mark without making the sort order even more confusing" And why is the sort order confusing in the first place? Why do we need to place the accepted answer at the top and not the highest voted one? What good does it do? Just get rid of that and simply sort by votes? Commented Jan 7, 2016 at 14:32
  • 2
    So the community would have the ability to revoke acceptance on poor answers for questions that have been abandoned by the OP? Heck yes. Commented Jan 7, 2016 at 18:17
  • 2
    @bluefeet: "This answer is useful only to the question asker in their specific situation" vs "This answer is useful to a broad audience, which may or may not include the question asker". Pick one. Pinning an answer sends the message that the answer is vetted by the community at large, not the OP alone (peer pressure notwithstanding). How are you going to try and explain your way out of that?
    – BoltClock Mod
    Commented Jan 13, 2016 at 17:56
  • 1
    Just now seeing this (thanks to the recent deleted answer), but "gating it through tag participation is simply not possible from an engineering standpoint" that's simply not true. If it can be gated at 15k, it can be gated at X-tag-score.
    – TylerH
    Commented Nov 5, 2019 at 21:07
  • 1
    @TylerH I'm sorry, but you're not qualified to make that judgement (having never seen the code, or having any knowledge of other potentially performance impacting things going on around January 2016). Saying something "is simply not true" is also, to me, an egregious mischaracterization of my intent in writing what I did.
    – user50049
    Commented Nov 6, 2019 at 15:42
  • 1
    @TimPost I think anyone who knows how programming works is qualified to make that judgment, especially considering we already have tag-gated functionality like tag synonym recommendations, unilateral duplicate closures, and the now-defunct SO Documentation bronze/silver tag-based abilities. Anything that is logic-based (e.g. "if this then that") is possible. I like to think the engineering team at SO is a pretty good one, to boot; I'm sure they could implement something like this. Also, please don't make this somehow about "doubting your intent"; you can be genuine and wrong.
    – TylerH
    Commented Nov 6, 2019 at 15:49
34

Can we do something about old/outdated/terrible highly upvoted answers?

YES!!!

We can downvote them and leave a comment explaining that. Bad answers are still answers, and they can teach us a lot on how "not to" do things - they might lead to very rich discussion and provide food for thought for all of us.

I do expect the minimum of minimum from users who came to the post. C'mon guys.. really.. let's not change the accepted answer just for the sake of the laziness of people who arrive here! What if the user is inactive forever? Do you really want to change the accepted answer? Do you want to delete it? Why? Just leave a comment... I really, really expect people to take comments into consideration, or to scroll down to see other answers.

When new users arrive to the post, they'll note the comments and see the "see other answers for the correct way of doing that". Maybe we can also have the vote count expanded by default with some "sum" near it - it might also give a good indication of the quality of the post.

If the accepted answer is misleading, you can also leave a comment for OP asking him to untick it and pick another one (although I really hate to do that, IMO it's enough to downvote and point at the problematic issues in the answer).


NOT To-Do list:

  • Delete the bad answer
  • Enforce changing the accepted answer
  • Edit that deviates the answer from its original intent (even adding "Hey, take a look at other answers")
37
  • 48
    In practice, the vast majority of visitors from Google only ever look at the accepted answer (with the brightly colored V). That should be taken into consideration.
    – Madara's Ghost Mod
    Commented Jan 7, 2016 at 10:12
  • 31
    I'm sorry to say that I think this is a naive belief that the power of intelligent downvotes can ever overcome that of robovoters just wanting to vote up the junk. Sadly... Commented Jan 7, 2016 at 10:13
  • 6
    @MadaraUchiha I expect from us to comment on bad answers, and I expect users to read comments if they're there - not just copy and paste the snippet.
    – Maroun
    Commented Jan 7, 2016 at 10:14
  • 9
    @RichardLeMesurier Users should have minimal responsibility before they just copy-paste a snippet. If the answer is bad, and they don't mind to read the comments, we can do nothing about it.
    – Maroun
    Commented Jan 7, 2016 at 10:17
  • 1
    @MatthieuM. We don't want to turn people into robots. Yes, I do expect the minimal of minimal from users who read an answer here.
    – Maroun
    Commented Jan 7, 2016 at 10:25
  • 1
    @MatthieuM. That's a fair argument. And that holds true for "normal crap", but I think this is a rather special case, that little piece of code could literally end companies.
    – Madara's Ghost Mod
    Commented Jan 7, 2016 at 10:28
  • 5
    "We can downvote them and leave a comment" - In that case you would need another 100 downvotes to make it 0 score. Also, not everyone reads comments. Neither they should read them; an answer should contain any vital information within itself.
    – user
    Commented Jan 7, 2016 at 10:42
  • 1
    @Fermiparadox If they don't read comments and blindly copy-paste code, good luck for them.
    – Maroun
    Commented Jan 7, 2016 at 10:42
  • 7
    @MarounMaroun I disagree with the downvote philosophy. In cases such as this, a more heavy handed approach is required.
    – Magisch
    Commented Jan 7, 2016 at 10:51
  • 5
    That still says: "A lot of people disagreed with this answer, but even more thought it was a good answer". It doesn't indicate in any way that the answer is dangerous.
    – Cerbrus
    Commented Jan 7, 2016 at 10:57
  • 3
    You have to also consider that requires less rep to upvote something than it does to downvote (you can see why this is the case) - however in cases like this it won't help. Weighting the votes might be a way around this but it's a lot of work - and even then people will no doubt complain about the power users.
    – bob dylan
    Commented Jan 7, 2016 at 11:00
  • 2
    @MarounMaroun: The eval answer is harmful. It's a nifty trick, sure, but one that should never be used in production. At very least, the disclaimer should be expanded. Users that have enough rep to see the vote counts aren't the users we're trying to protect here.
    – Cerbrus
    Commented Jan 7, 2016 at 12:06
  • 4
    @Trilarion " The 100 people who liked it won't all have been wrong, will they?" In this case, they objectively were. This answer is actively harmful for people attempting to use it. At least now the disclaimer properly states that.
    – Magisch
    Commented Jan 7, 2016 at 12:17
  • 2
    @Trilarion I honestly believe in extraordinary scenarios like this it is in order to delete or heavily edit the answer.
    – Magisch
    Commented Jan 7, 2016 at 12:23
  • 4
    As a side note, I work on a lot of legacy code and I often need older ways of solving a problem, as newer more efficient ones are not available to me. So I find outdated answers are often the answer to my question. And I find one location to find all solutions, with comments about each one, to be far more useful than a single potential solution which I'd have to judge myself with nothing to compare against.
    – Rachel
    Commented Jan 7, 2016 at 18:30
18

The scary thing is that it took a concerted effort from meta to do something about this answer. Even though that answer received 80 downvotes in short order, it still retains a positive score (41 at the time of this writing). Thankfully, the writer opted to delete his own answer. If he hadn't, that answer would still be out there steering people wrong. I mean, just look at that steady stream of upvotes...

It seems to take a lot of effort to oust an entrenched answer. All the energy we poured into that spike of activity seems to get steamrolled by the long trend of casual, thoughtless upvotes. Meta took its best shot and didn't manage to strip the post of a respectable score.

... nor did it detract overly much from the reputation gained from the answer:

That little drop in reputation is the meta effect. That was 80 or so downvotes in the span of a few days... which effectively changed the rep from 1300 to 1190. Is that enough to make most people care?

The answer is deleted. So, that's a win, right? Never mind how ineffective this particular process might be when applied broadly -and it's not; most of these answers never receive the kind of concerted scrutiny it would require to unseat them. Even if they did, the mighty meta effect might still fail.

3
  • 5
    Nice statistic for showing that Maroun Maroun's advice, though presenting a popular position, is completely useless. Unless and until the poster decides that the damn thing should just have been deleted. Commented Jan 11, 2016 at 21:41
  • 4
    If people ignore "WARNING: This should not be used in production code, because eval invokes the JavaScript compiler" at the very top of the answer; they have bigger problems.
    – jfs
    Commented Sep 11, 2017 at 13:50
  • 3
    @jfs sadly, it's the world we live in. Plenty of people in our profession skim right over that stuff looking for a quick fix. Somewhere along the line, it tends to become our problem.
    – canon
    Commented Sep 11, 2017 at 13:54
4

https://stackoverflow.com/a/1230461/5389107

This right here, is downright dangerous. Using eval() without any need to do so, I'm frankly shocked it got upvoted at all.

Maybe the explanation that already sits at the top of this answer, which reads

WARNING: Some people insist this is not to be used in production code, because eval invokes the JavaScript compiler.

Could be extended to

WARNING: Some people insist this is not to be used in production code, because eval invokes the JavaScript compiler. It also introduces various security concerns by tacitly treating potential user input as code.

Edit 2: The answer has since been further modified and improved, to add additional emphasis as to why not to use eval().

Other users of the community feel free to rollback/modifiy the caveat when you feel I overstepped boundarys in doing that.

19
  • Go ahead. Do it. :) Commented Jan 7, 2016 at 10:09
  • @Trilarion Im uncomfortable with unilaterally editing the meaning of other people's answers, especially if they are highly upvoted.
    – Magisch
    Commented Jan 7, 2016 at 10:10
  • 15
    Honestly, I'm genuinely considering to downright delete that answer if it enough people agree. There's a difference between "not helpful" or "not efficient" to "downright dangerous". We don't want downright dangerous answers, unless the question is "how do I not do this thing?"
    – Madara's Ghost Mod
    Commented Jan 7, 2016 at 10:16
  • @Magisch Editing to circumvent intent is frowned upon, but this is incorrect information. Their caveat about eval is insufficient and you're only adding useful information to their caveat to better inform users. Commented Jan 7, 2016 at 10:16
  • @MadaraUchiha: I don't think you'll get much opposition to the removal of that answer.
    – Cerbrus
    Commented Jan 7, 2016 at 10:17
  • 2
    @MadaraUchiha I was under the impression that moderators didn't police answer content or correctness, but im not a moderator, so I don't know for sure. Afaik, the rep will be preserved for the person if you delete it, correct? In that case, maybe thats the correct way.
    – Magisch
    Commented Jan 7, 2016 at 10:18
  • @Magisch: To an extent, they don't. When it comes to "Downright dangerous", though...
    – Cerbrus
    Commented Jan 7, 2016 at 10:19
  • 2
    @Magisch you're right, but this is a rather special case of "actively harmful answer" and "in the field of expertise of a particular moderator".
    – Madara's Ghost Mod
    Commented Jan 7, 2016 at 10:21
  • @MadaraUchiha I would have no qualms with you deleting that provided it doesn't cause the user to outright loose 1300 some rep instantly.
    – Magisch
    Commented Jan 7, 2016 at 10:22
  • 4
    I think that the Some people insist part is still down right offensive: the eval answer might be clever in a way, but it's still garbage way of doing what the OP wanted to achieve but not only that, it's raises various if not endless security concerns. My version would be something along "While this may seem like a clever way of achieving the sum of an array of numbers, it also introduces various security concerns by tacitly treating potential user input as code and should never be used in production code. See answer XXXXXX for a better solution" plus some reference why eval is awful.
    – Pete TNT
    Commented Jan 7, 2016 at 10:34
  • 10
    "This right here, is downright dangerous." No, it isn't. It's wrong, it's pointless, it's a really stupid way to solve the problem, but it's not dangerous to use eval on content you control. Not remotely. At all. The comments call out what's wrong with it. That's sufficient. @MadaraUchiha: Pinging you because you were considering deleting it. Commented Jan 7, 2016 at 18:38
  • 5
    I don't think it would be fair to delete that answer because of its harmfulness. SO is filled with upvoted answers that can be potentially dangerous. The answer is a solution that works for some people. It might be a terrible solution for most people, but it is still a solution for some. The best solutions are not always going to be checked. It is up to readers to determine that. The answer in question has plenty of comments explaining why is not a good solution. As a reader, I can learn from that.
    – Mikey
    Commented Jan 7, 2016 at 18:56
  • 2
    I think it is really bad style to edit another persons answer with a comment esentailly saying This answer is crap, even if it is. Comment on it, downvote it, put it up on meta (all of which has been done), write your own answer pointing out the problems in the other answers, maybe make a short edit that states that there are caveats/problems (under which circumstances) and point to further information about that topic. I understand the desire to prevent bad information from spreading, but I really have the feeling, that this got a bit out of hand.
    – MikeMB
    Commented Jan 7, 2016 at 20:55
  • 2
    @T.J.Crowder the answer makes no effort to explain that it's not dangerous to use eval on content that you control though. Next thing you know someone, somewhere, is using the answer to calculate the sum of an calculator output or something. I mostly agree on the sentiment that editing someone else's answer to call out it's bad is rude, but then again it's a trivial issue to fix that can pose tons of dangers, even if it can be perfectly safe but most likely will not be. Security is #1 and answers that are downright terrible should be flagged as such.
    – Pete TNT
    Commented Jan 8, 2016 at 7:27
  • 1
    How about a new Flag -> This answer contains security implications which high rep users could review. With options being Look okay, Flag as dangerous and Delete?
    – Pete TNT
    Commented Jan 8, 2016 at 7:29
1

This has been discussed many times already; and so have the below improvements; but I'll repeat them again:

  1. The top post has a score of 61; but if you check the actual votes you see 93 upvotes and 32 downvotes! This is a good clue for anyone that something is up with this answer and should be handled with care. Showing the amount of up/downvotes by default for everyone would be useful.

  2. There's also an answer with a lot more upvotes. I see no reason to pin the first answer to the top.

I would not be in favour of "deprecating" answers, what's "deprecated" for you may be very relevant to me. Examples:

  • When is Python 2 deprecated?
  • When are CentOS releases deprecated? 5, 6, and 7 are all still supported.
  • Lets not even talk about Android versions!
  • ...etc...

I forsee great discussions about when to deprecate what!

0
-7

The answers are community property as much as the questions and both are eligible for editing.

What is stopping you or anyone else from editing the offending answers with the caveats and warnings at the top of them?

If you do not have the rep or damage the answer in some way the community can roll it back or hopefully improve upon your edit.

3
  • 5
    That pivots on the question whether a legitimate warning is damaging the OPs rep, misrepresenting his intentions, defacing his post or the like. And many an OP will simply unilaterally roll it back anyway. Commented Jan 7, 2016 at 15:12
  • 1
    On years old answers where the answerer has not been active in months/years I do not see it as that big of a concern.
    – user177800
    Commented Jan 7, 2016 at 15:30
  • 2
    Unfortunately, that's not the only kind of posts needing it. And even without the OP, you easily get some spirited opposition. Commented Jan 7, 2016 at 15:32
-15

In my personal opinion, the eval() answer must die, and the sooner the better. I'm willing to delete it if no real resistance is raised.

As for the jQuery answer, given that the author is still active on Stack Overflow, I suggest pinging them and replacing (or adding) a better, non jQuery solution (like a simple for loop).

28
  • 2
    Just do it
    – Cerbrus
    Commented Jan 7, 2016 at 10:20
  • 16
    Oh man, this opens up so many requests to come. You don't know what you started...
    – rene
    Commented Jan 7, 2016 at 10:21
  • 3
    @rene If people open meta posts about posts which are actually actively dangerous for people to use, and there's a vast community support, and there's a mod that can properly assess whether or not deletion is a good solution, then bring on the requests.
    – Madara's Ghost Mod
    Commented Jan 7, 2016 at 10:23
  • 27
    Yes, I'm in favor of explaining in that answer why eval is bad and how it can be abused. Eval is still in the language and can be (ab)used, By deleting it you lose the opportunity to send out the correct warning. By deleting you deny its existence. Not a good tactic in my opinion. @Cerbrus
    – rene
    Commented Jan 7, 2016 at 10:26
  • 11
    That will be sad for Stack Overflow.. The day we delete bad answers (that are actually answers - just in bad quality).
    – Maroun
    Commented Jan 7, 2016 at 10:27
  • 3
    Also, worth noting, like I said, that's my personal opinion, and since I'm seeing the resistance being raised, the answer won't be deleted. I'm just probing for discussion here :)
    – Madara's Ghost Mod
    Commented Jan 7, 2016 at 10:30
  • 2
    Adding a bold note is way way better like rene has suggested it. Something like i.sstatic.net/QClec.png (One of my answers, still got a lot of dvs, but it is better) Commented Jan 7, 2016 at 10:31
  • 4
    Surely the real issue is that all votes are of equal value. Whether they come from Jon Skeet or Johnny McNewbie. A vote is a vote. So a small number of experts downvoting a dangerous answer can never outweigh armies of non-experts voting it up. Not sure what the best solution is, but force-deleting unpalatable answers seems a scary precedent to set. Though possibly drawing attention on meta alone could provide enough impetus to kill off terrible answers? We shall see... :)
    – Baldrick
    Commented Jan 7, 2016 at 10:51
  • 2
    I completely agree with the deletion of the answer but I also agree there should be a policy behind it, which currently there doesn't seem to be unfortunately.
    – Pekka
    Commented Jan 7, 2016 at 10:58
  • 8
    I do not agree on deleting an answer no matter how bad or how dangerous it is. It does not violate any of the SO rules. There is even a warning added to the answer. If moderators start deleting "bad" or "dangerous" answers, where does it end?
    – kockburn
    Commented Jan 7, 2016 at 11:27
  • 2
    @KФ It ends with all demonstrably and provably false or dangerous answers deleted. That .... doesn't seem to bad?
    – Magisch
    Commented Jan 7, 2016 at 12:37
  • 15
    I think there's plenty of warning about the dangers of eval in that answer to warrant leaving it alone. I think it's also worth mentioning that, despite the knee-jerk reaction in the comments, there's no actual security hole in the two lines of code in that answer. Commented Jan 7, 2016 at 13:48
  • 13
    @Magisch Is that array filled with use input? No, it's hard-coded with numeric values. Also, the warning about user input is in the answer already. Commented Jan 7, 2016 at 14:36
  • 3
    @JeremyBanks You're spouting hyperbole like "toxic fumes" and "public health hazard," but I'm the one being disingenuous? The warnings about using eval are already in the answer. How many times do I have to say it? Commented Jan 11, 2016 at 19:43
  • 3
    Look, social responsibilities and example code makes for an interesting philosophical discussion... But let's stay focused here. If you really wanna make the case for purging unsafe code, better make some coffee first - we got a long night ahead. (In short: start a new discussion)
    – Shog9 Mod
    Commented Jan 14, 2016 at 2:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .