Dwitter – A social network for short JavaScript demos
21–30 of 74 posts
What resources to people recommend for learning about animating in canvas tags like on Dwitter? I'm already familiar with Javascript, but seeing what people are able to do here with 140 characters amazes me.
Re: Dwitter – A social network for short JavaScript demos
#2212 hours until twitter name infringement
Re: Dwitter – A social network for short JavaScript demos
#23Name does not pass bar test.
Re: Dwitter – A social network for short JavaScript demos
#24Earlier 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
#25This 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
#26This 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.
Re: Dwitter – A social network for short JavaScript demos
#27This kills the Firefox.
Re: Dwitter – A social network for short JavaScript demos
#28This reminds me a bit of ShaderToy -- very cool :)
Re: Dwitter – A social network for short JavaScript demos
#29This is really cool, but executing other people's javascript in a page makes me nervous. What sort of restrictions are in place to prevent malicious exploits?
Re: Dwitter – A social network for short JavaScript demos
#30Prior art: https://t.d3fc.io/