Vaniver comments on Less Wrong Polls in Comments - Less Wrong

79 Post author: jimrandomh 19 September 2012 04:19PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (302)

You are viewing a single comment's thread.

Comment author: Vaniver 19 September 2012 05:17:33PM *  3 points [-]

Awesome! But since we're stress-testing it, let's try doing things wrong.

First thing that I noticed is that it doesn't let you post if there's a poll error. That's great! ... except it doesn't respect four spaces to put something in code format, so I can't easily tell you what I tried and what failed. Putting tests in their own comments to make it more obvious when something passes.

[edit]Oops, this also floods recent comments.

Comment author: Vaniver 19 September 2012 05:18:12PM *  3 points [-]

Testing the spaces to make sure I'm doing it right:

Yep, [I](http://lesswrong.com/lw/ekw/less_wrong_polls_in_comments/7gqv) am.

Now let's try a well-formatted poll:

Is this commented? 
Submitting...

Comment author: CCC 20 September 2012 06:47:55AM 4 points [-]

Total:25, but adding up the votes for each option gives 24.

Comment author: Vaniver 20 September 2012 01:57:19PM *  3 points [-]

Fascinating, I got two and two (total 33), and after refreshing I see the poll text but it won't let me vote, because I already voted.

Also, I think it's sort of amusing that this is the only thing I found that looks like a serious bug to me, but it has the least upvotes of my tests.

Comment author: khafra 20 September 2012 05:53:35PM 0 points [-]

Less explanation of what exactly you were testing, so the fluency bias kicked in.

Comment author: Vaniver 19 September 2012 05:19:26PM *  8 points [-]

Trying to do a poll with only one option fails gracefully. Example: What kind of book did you read last? [poll]{a book}

Modifying the number of periods modifies the number of options available:

True False

|poll:True............False|

One period is well-defined: Nope. |poll:True.False| throws an "invalid poll type" error.

What about leaving off one of the names? |poll:True...| throws an "invalid poll type" error as well.

Submitting...

Comment author: Vaniver 19 September 2012 05:20:51PM *  4 points [-]

Trying to put two kinds of polls together:

How many bugs will I find?

The code for that was |poll:number|{all of them}{none of them}, with the pipes replaced by square brackets. It looks like the interior poll type takes precedence, which is probably what should happen, but it might be better to complain instead.

Submitting...

Comment author: ewang 22 September 2012 05:33:20AM 0 points [-]

Mean 1.69172935902e+16

What use is the mean if anyone can just do something like this?

Comment author: ewang 22 September 2012 05:34:42AM 0 points [-]

Point already raised and discussed, see below.

Comment author: [deleted] 22 September 2012 08:22:39PM 5 points [-]

Yeah, scrap the mean, and show the 1st and 3rd quartile in addition to the median.

Comment author: Vaniver 19 September 2012 05:24:27PM *  5 points [-]

Polls are stored by their id, which makes it so they can't be edited after the fact. (Probably wise.) But what happens when you refer to an old poll by its id?

This is |pollid:10|, which refers to the poll from this comment.

Error: Poll belongs to a different comment

What about a future poll?

Error: Poll not found!

Comment author: faul_sname 20 September 2012 07:09:25AM 1 point [-]

What if you then create the poll?