Advanced JS

FacebookTwitter

Javascript : Style et Bonnes pratiques | Maxlab | Le Blog

Lorsque l’on débute dans un nouveau langage on ne maîtrise pas forcément ses spécificités techniques et sans recul on fait parfois quelques erreurs. http://maxlab.fr/blog/2012/05/javascript-part-1-bonne-pratiques/
JS library

http://fgribreau.com/articles/voyage-au-coeur-de-javascript.html

Voyage au coeur de JavaScript (ECMAScript 3)

Cet article est une traduction de JavaScript. The Core écrit par Dmitry Soshnikov. Javascript The Core est un sommaire détaillé de la série d’article “ ECMA-262-3 in detail ”. Commençons par étudier le concept d' objet , un fondamental d'ECMAScript. L'objet ECMAScript étant un langage orienté objet de haut niveau, il fonctionne avec des objets.

Named function expressions demystified

by Juriy "kangax" Zaytsev Introduction Surprisingly, a topic of named function expressions doesn’t seem to be covered well enough on the web. http://kangax.github.com/nfe/

Closures

https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Closures Closures are often considered an advanced feature in JavaScript, but understanding them is essential to mastering the language.
One of the phases I went through while learning about JavaScript was the intense desire to write my own library, similar to jQuery (but massively scaled down). My library has gone through several major revisions — and more than one complete re-write, but now is exactly what I started out hoping it would be: functional, clean, small, and a solid learning experience. I’d like to share what I learned from this project, and I hope you share back with me through the comments! Finished project demo

Creating your own JavaScript Library

http://www.mikedoesweb.com/2012/creating-your-own-javascript-library/
How to Easily Create a JavaScript Framework, Part 1

How to Easily Create a JavaScript Framework, Part 1

http://www.admixweb.com/2009/05/20/how-to-easily-create-a-javascript-framework-part-1/

Seven JavaScript Things I Wish I Knew Much Earlier In My Career

http://coding.smashingmagazine.com/2010/04/20/seven-javascript-things-i-wish-i-knew-much-earlier-in-my-career/ I’ve been writing JavaScript code for much longer than I care to remember. I am very excited about the language’s recent success; it’s good to be a part of that success story. I’ve written dozens of articles, book chapters and one full book on the matter, and yet I keep finding new things. Here are some of the “aha!”
Now that we're able to inherit properties from other objects and extend the specialised objects to define their own behaviours, we have a little problem: what if we actually wanted to access the parent behaviours that we just overwrote? http://killdream.github.com/blog/2011/10/understanding-javascript-oop/

Understanding JavaScript OOP — Sorella's Basement

JavaScript Learning Roadmap

Do you want to feel the taste of DevReach 2012? Why HTML5 and JavaScript were http://pltod.github.com/index.html#/

Encapsulation in JavaScript

http://www.codeproject.com/Articles/108786/Encapsulation-in-JavaScript Introduction Encapsulation is one of the main concepts in object oriented programming.
In Part 1 we saw how to create classes in JS, including private, privileged, and public properties and methods. This section discusses inheritance in Javascript.

OOP in JS, Part 2 : Inheritance

OOP in JS, Part 1 : Public/Private Variables and Methods

This page shows how to create private variables and methods in "classes" in Javascript through the rather simple example of a person. (This is really a very rough approximation of the classical OOP pattern, and not necessarily a "best-practice" for JavaScript programming.) Part 2 covers inheritance. Summary private variables are declared with the 'var' keyword inside the object, and can only be accessed by private functions and privileged methods.
I’ve been doing a lot of work, lately, with JavaScript inheritance – namely for my work-in-progress JavaScript book – and in doing so have examined a number of different JavaScript classical-inheritance-simulating techniques. Out of all the ones that I’ve looked at I think my favorites were the implementations employed by base2 and Prototype . I wanted to go about extracting the soul of these techniques into a simple, re-usable, form that could be easily understood and didn’t have any dependencies. Additionally I wanted the result to be simple and highly usable. Here’s an example of what you can do with it:

Simple JavaScript Inheritance