Live data from Hacker News

Show HN: XKCD-inspired StackSort

gkoberger.github.com

21–30 of 210 posts

Re: Show HN: XKCD-inspired StackSort

#21

So if I make a post on stackoverflow with the tags "javascript" and "sort", and put some dirty JS in there, could it take down people's browsers?

In theory, sure. However, I only use answers posted before the comic was released to avoid this very problem :)

Re: Show HN: XKCD-inspired StackSort

#23

So if I make a post on stackoverflow with the tags "javascript" and "sort", and put some dirty JS in there, could it take down people's browsers?

In theory, sure. However, I only use answers posted before the comic was released to avoid this very problem :)

Are you taking edits into account?

Re: Show HN: XKCD-inspired StackSort

#24
post #4

Earlier quoted context omitted.

Do you test the result, or just hope if it runs, it actually worked?

It doesn't test for two reasons: 1) I thought it would defeat the purpose 2) "Sort" is very arbitrary. Do you want to sort by key or value? Is "1000" bigger or smaller than "2"? etc

Fair; also, it's called an 'ineffective' sort, and if you tested it, it'd become effective (not efficient, of course). So, good point!

Re: Show HN: XKCD-inspired StackSort

#26

Quick someone write a 'sort' that steals github session cookies. ;P

I only search answers posted before the comic was released for this reason :) (Also, I block any code that uses the word "cookie") Plus, I'm assuming that since they let anyone run arbitrary code on subdomains, they've thought this through.

Dammit, just as I was about to write a

function sortArray(a) { alert('Hello StackSort!') }

Question/Answer. =( Good foresight!

Re: Show HN: XKCD-inspired StackSort

#27
Noticed that there was a lot of "Potentially bad code" answers. I read you are avoiding scripts with "cookie" or written after the comic was written, but are there other restrictions? For example, this was banned: http://stackoverflow.com/questions/14800987/javascript-sorti...

Just curious about it.

Re: Show HN: XKCD-inspired StackSort

#28

Earlier quoted context omitted.

I only search answers posted before the comic was released for this reason :) (Also, I block any code that uses the word "cookie") Plus, I'm assuming that since they let anyone run arbitrary code on subdomains, they've thought this through.

Dammit, just as I was about to write a function sortArray(a) { alert('Hello StackSort!') } Question/Answer. =( Good foresight!

I also don't allow alerts :)

Re: Show HN: XKCD-inspired StackSort

#30

Noticed that there was a lot of "Potentially bad code" answers. I read you are avoiding scripts with "cookie" or written after the comic was written, but are there other restrictions? For example, this was banned: http://stackoverflow.com/questions/14800987/javascript-sorti... Just curious about it.

I'm guessing there are attempts to blacklist DOM manipulation.
Post reply on HN