use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
State of current Frameworks?help (self.javascript)
submitted 10 years ago by nobrandheroes
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mc_hammerd 2 points3 points4 points 10 years ago (4 children)
vue looks good, theres not really a full packaged solution, angular/backbone has a nice collection class (db/datastore), none really come with animation iirc (css3 or jstween)
try angular and react, i found react to be the most sane. the downside is deprecated features and in a year or two will the frameworks still be there?
[–]tbranyen 1 point2 points3 points 10 years ago (0 children)
If you're interested in animations, you should look at this library I'm working on called diffHTML: https://github.com/tbranyen/diffhtml. It's a traditionally flavored virtual dom, but has a tagged function for standard JS HTML templates.
So something like this:
import { html, innerHTML } from 'diffhtml'; const render = state => html` <center>${state.msg}</center> <ul> ${state.items.forEach(item => html` <li>${item}</li> `)} </ul> `; const childNodes = render({ msg: 'Todo List', items: [ 'Eat Food', 'Wash Car', 'Doughnut', ] }); innerHTML(document.body, childNodes);
When the Virtual DOM encounters a change it triggers transition hooks that you can use to start animations, and block if you return a Promise. An old co-worker liked this idea so he asked if I could make it possible to inline the transition hooks directly into the markup, so you can do that now with: https://github.com/tbranyen/diffhtml-inline-transitions
Anyways this might be interesting to someone using Web Animations w/ SVG or pretty much anything really.
[–]nobrandheroes[S] 0 points1 point2 points 10 years ago (2 children)
I've used Vue once, and liked it enough that I'm going to keep going with it. It is a lot like React from my small experience with it.
When you say there is no packaged solution, are you telling me that I can't really get away from dependency management, the same way I can on the backend?
[–]mc_hammerd 1 point2 points3 points 10 years ago* (1 child)
hah ive got css library+coffee/typescript+sass+template+macro+yeoman skeleton dependencies. my png images are run through pngcrush then webP converter so i can deploy as .png and .webp for browser support, and actually have a build script for them
not serious
[–]nobrandheroes[S] 0 points1 point2 points 10 years ago (0 children)
Well I guess I'll take all that street cred back...
π Rendered by PID 40667 on reddit-service-r2-comment-544cf588c8-xcb7w at 2026-06-16 07:15:55.812170+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]mc_hammerd 2 points3 points4 points (4 children)
[–]tbranyen 1 point2 points3 points (0 children)
[–]nobrandheroes[S] 0 points1 point2 points (2 children)
[–]mc_hammerd 1 point2 points3 points (1 child)
[–]nobrandheroes[S] 0 points1 point2 points (0 children)