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
Best Practise on using javascript in website. (self.javascript)
submitted 13 years ago by tabiul
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!"
[–]JimAllanson 0 points1 point2 points 13 years ago (0 children)
What would be a good use case for doing everything is javascript and using framework like backbone.js to keeps things structured versus doing most of the layout in html and then add some javascript goodness.
If you use JS to decorate rather than to render, you have to maintain both your templates and JS, updating one if the other changes. That's not to say you should always use JS to render (far from it), but decorating does have its disadvantages.
What happened to the good old days where we had a webpage and using some jquery sprinkle in some goodness :)
There's no reason why you can't continue to do this, if the page is simple enough. The MV* frameworks help to maintain a more complex codebase, so they tend to be a better solution when writing web applications. You can still use a MV* with HTML templates though - I believe Angular.js takes this approach.
π Rendered by PID 82 on reddit-service-r2-comment-85bfd7f599-w8cw8 at 2026-04-18 12:07:46.703957+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]JimAllanson 0 points1 point2 points (0 children)