top | item 14897915

Show HN: Social experiment with live textboxes

29 points| penpapersw | 8 years ago |lines.editfight.com | reply

13 comments

order
[+] Rjevski|8 years ago|reply
This needs some way of voting posts down/flagging. Too many "Send nudes" and other inappropriate messages.
[+] penpapersw|8 years ago|reply
Yep definitely have a feature like that in the works. Where if > 50% active users vote to kick someone they're kicked out for 30 mins. Easy to do, just a matter of finding the time to code it :/
[+] jdiez17|8 years ago|reply
Site looks broken to me. Using Chrome on Linux.

>There are 0 people here (NaN have typed stuff).

I'm also getting JS errors: "Uncaught TypeError: Object.entries is not a function connection.onmessage @ (index):403".

[+] penpapersw|8 years ago|reply
I didn't realize how new that was. Yeah I rely on the newest of the newest features. I check caniuse.com and if at least 3 major browsers supports a feature then I use it freely. Sometimes that means using stuff that doesn't work on older browsers or IE11.
[+] mercer|8 years ago|reply
Maybe you're on an older version of Chrome? I can't be bothered to do the research but I recall Object.entries being a (relatively) recent addition.
[+] Ndymium|8 years ago|reply
Object.entries requires Chrome 54, have you upgraded?
[+] cardamomo|8 years ago|reply
I wonder how subtle changes to the way the game is framed may alter what people write.
[+] benjyclay|8 years ago|reply
Rick roll links and profanity incoming!
[+] Ndymium|8 years ago|reply
That's cool! How did you make it?
[+] penpapersw|8 years ago|reply
It was originally vanilla JS on the front-end but I changed to Vue.js because it was really inconvenient without something like that. Vue has its own caveats but they're less annoying than nothing. The backend is a single free-tier EC2 server running a single Node.js process, using Websockets. Everything is custom except a canned websocket lib (and Vue).
[+] M4v3R|8 years ago|reply
From what I can see it uses VueJS for the UI and websockets for server communication. I would bet that the backend is in NodeJS :).