News for hackers. Stuff that matters.
Re:Dwitter – A social network for short JavaScript demos by artursapek on Tuesday February 21, 2017 @06:59PM (#13701483)
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.

Re:Dwitter – A social network for short JavaScript demos by sigvef on Tuesday February 21, 2017 @07:31PM (#13701694)
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 by jlebrech on Wednesday February 22, 2017 @07:26AM (#13704953)
or the source box could replace 'for' with a loop thats designed to run a few seconds.
Re:Dwitter – A social network for short JavaScript demos by Lionleaf on Tuesday February 21, 2017 @07:33PM (#13701705)
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 by artursapek on Tuesday February 21, 2017 @07:54PM (#13701867)
I managed to finish one! https://www.dwitter.net/d/714

More suggestions:

- in-browser minification tool

- character counter would count using this output

- larger textarea

That way, I can compose without relying on vim + yui-compressor.

Awesome little site.

Re:Dwitter – A social network for short JavaScript demos by Lionleaf on Tuesday February 21, 2017 @08:05PM (#13701943)
Brilliant dweet! Part of the challenge is the manual minification. A larger textarea might be worth it especially as you can use linebreaks instead of ; for better readability
Re:Dwitter – A social network for short JavaScript demos by artursapek on Tuesday February 21, 2017 @08:20PM (#13702030)
Aye, then I cheated. :0 I'll try doing it manually next time.
Re:Dwitter – A social network for short JavaScript demos by NKCSS on Wednesday February 22, 2017 @02:38AM (#13703874)
Why not auto-save to local storage? That's something that's easily added.
Re:Dwitter – A social network for short JavaScript demos by xixixao on Wednesday February 22, 2017 @12:53AM (#13703364)
Use Firefox, it doesn't hang on infinite loops.
Re:Dwitter – A social network for short JavaScript demos by gillianlish on Wednesday February 22, 2017 @12:11AM (#13703198)
that is the fun. reminds me of programming on MSDOS.