Live data from Hacker News

WorldChat.io: Chat with realtime translation

worldchat.io

21–30 of 31 posts

Re: WorldChat.io: Chat with realtime translation

#21

Earlier quoted context omitted.

Should still be sanitizing user input, there's no reason to be passing the message as an html variable in handlebars {{{message}}} :/ You trust your server-side sanitization that much?

Do you trust the client side at all?

I trust handlebars with all my user inputs.

Re: WorldChat.io: Chat with realtime translation

#24

{{{message}}} in handlebars means that if someone one gets around your server-side sanitization your client side is wide open to XSS ... also, rate limit the users, this is thing is managing to crash chrome!

Working on it, any tips to keep entity encoding in handlebars without the triple stash?

Don't encode entities, just use the DOM (append text nodes).

Re: WorldChat.io: Chat with realtime translation

#25
Due to the massive amounts of spamming going on right now I think there should be some sort of chat room system on there which allows you to create a room and send the link.

Or you could even follow a similar idea to Omegle by pairing two people together but make it so it pairs two people who speak in different languages?

Re: WorldChat.io: Chat with realtime translation

#26

I built a proof of concept for something like this for someone quite a while ago... what he had that you desperately need is channels. This is entirely useless with any amount of people (particularly when spammers can't be controlled, which is just how the net is). Excellent idea, but it needs some concept of segmentation to be useful.

Totally agree, let's make it happen! http://github.com/mashape/worldchat
Post reply on HN