Live data from Hacker News

Dwitter – A social network for short JavaScript demos

dwitter.net

21–30 of 74 posts

Re: Dwitter – A social network for short JavaScript demos

#24
post #5

Earlier quoted context omitted.

Just set something on `this`: if (!this.mySettings) { this.mySettings = { value: 1 } }

140 character limit, so that wastes like 60 of it. :-)

Ah, didn't realize, my bad! It's doable in fewer characters of course, but still a waste. Funny, I thought it was just a bit odd how terse some of these demos were, but given the 140 char limit that I somehow didn't notice at all it makes more sense.

Re: Dwitter – A social network for short JavaScript demos

#25

This is the coolest website I've seen in a long time. Awesome idea. EDIT: one issue I'm running into is it's easy to accidentally write half-finished code that freezes my browser. It would be nice to have an option to only refresh the preview upon clicking some kind of button.

One trick you learn as a dweeter is to write all for-loops as "fr" instead of "for", and then only adding the last "o" when you feel confident that the loop won't accidentally go on forever!

Re: Dwitter – A social network for short JavaScript demos

#26

This is the coolest website I've seen in a long time. Awesome idea. EDIT: one issue I'm running into is it's easy to accidentally write half-finished code that freezes my browser. It would be nice to have an option to only refresh the preview upon clicking some kind of button.

Sorry about your lost dweet :( Accidental infinite loops while editing can be a pain. A "reload" button isn't a bad idea, or a "recover dweet draft" functionality.
Post reply on HN