5 ms·
I'd love to see a widget that would let you display and toggle between two versions of the code on a webpage: * a first version illustrating the core concepts
by huxley 14y ago
I'd love to see a widget that would let you display and toggle between two versions of the code on a webpage:
* a first version illustrating the core concepts
* a second more complex version aimed at showing proper coding practices including comments showing where you can have performance or security issues.
It would be a nice addition to the many source code beautifiers/formatters out there.
- Firehed 14y agoUnfortunately if it's the first semi-working code sample in a Google result, it will still end up in production somewhere no matter how crappy it is and how many warning labels are put on it.
- mikeash 14y agoThis is a really cool idea, and I'm going to have to see if I can incorporate it into future blog posts. I'm not sure if it'll be worth the trouble, but it certainly bears thinking about.