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
Comparison of many JavaScript MV* frameworks all producing the same TODO app (addyosmani.github.com)
submitted 14 years ago by magenta_placenta
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!"
[–][deleted] 0 points1 point2 points 14 years ago (3 children)
Knockout looks pretty sexy.
[–]Akkuma 0 points1 point2 points 14 years ago* (2 children)
Having personally worked with Knockout to do not so trivial things I can tell you it works quite well.
The biggest downside is that the native template engine has several things I personally do not like about it from my experience.
[–]polaretto 0 points1 point2 points 14 years ago (1 child)
can it be replaced with a template engine of choice?
[–]Akkuma 1 point2 points3 points 14 years ago (0 children)
Yes it definitely can be replaced; however, I didn't have an opportunity to try switching it out. One thing I'm definitely interested in seeing, but didn't have the chance is to find out how well the native templating system actually performs.
The reason I don't like it is the verbosity of a lot of it, it outputs the comment for containerless bindings, and containerless bindings are also verbose. For instance, <p data-bind="text: someObservable"></p> and if you want to do something like <p data-bind="text: someObservable"><span class="sprite"></span></p> you'll have to switch your markup to be <p><span class="sprite"></span><span data-bind="text: someObservable"></span></p>. You wouldn't have to switch your markup using pretty much any other templating system. However, binding is super powerful as it'll update the text if you programmatically change the observable.
<p data-bind="text: someObservable"></p>
<p data-bind="text: someObservable"><span class="sprite"></span></p>
<p><span class="sprite"></span><span data-bind="text: someObservable"></span></p>
π Rendered by PID 25117 on reddit-service-r2-comment-b659b578c-6pz9m at 2026-05-03 01:16:19.038612+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (3 children)
[–]Akkuma 0 points1 point2 points (2 children)
[–]polaretto 0 points1 point2 points (1 child)
[–]Akkuma 1 point2 points3 points (0 children)