Pair program with me! profile for carousel at Stack Overflow, Q&A for professional and enthusiast programmers

5/28/2013

Awesome TODOMVC project

Look no further - this awesome project will give you everything you need to know about javascript. Take a walk through Todomvc examples and you'll be enlightened. It is incredibly usefull to take a look at just Vanilla.js, as a starting point.That way we can see pure javascript in action - outside of  framework solutions. And later, you can move on to other examples. Authors covered all known and unknown modern javascript framworks and libraries.
Backbone, jQuery, Angularjs, Ember, Dojo, Yui - and even Dart :)
And of course everything starts with pure js.

For example, injecting HTML without templates usage looks like this:

function View() {

  this.defaultTemplate =

'
  • '+'
    ',
    +''
    +''
    +''
    +'
    '+'
  • '; };

    It looks like a string concatenation horror :)

    Or a helper functions, for DOM query, that binds function to global object:

    window.$ = document.querySelectorAll.bind(document);
    window.$$ = document.querySelector.bind(document);
    
    

    Here's a link to TODOMVC GitHub page

    Happy Coding

    No comments:

    Post a Comment