Flux | Application Architecture for Building User Interfaces

Flux is the application architecture that Facebook uses for building client-side web applications. It complements React’s composable view components by utilizing a unidirectional data flow. It’s more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code. <br /> Flux applications have three major…

Read More

JavaScript Best Practices Part 1

Choose easy to understand and short names for variables and functions. Bad variable names: Also bad variable names: incrementerForMainLoopWhichSpansFromTenToTwenty } createNewMemberIfAgeOverTwentyOneAndMoonIsFull Avoid describing a value with your variable or function name. Might not make sense in some countries: Works everywhere: Your code is a story – make your storyline easy to follow! Global variables are…

Read More

idiomatic.js/readme.md at master · rwaldron/idiomatic.js

Beautiful Syntax A. Parens, Braces, Linebreaks // if/else/for/while/try always have spaces, braces and span multiple lines // this encourages readability // 2.A.1.1 // Examples of really cramped syntax if(condition) doSomething(); while(condition) iterating++; for(var i=0;i<100;i++) someIterativeFn(); // 2.A.1.1 // Use whitespace to promote readability if ( condition ) { // statements } while ( condition )…

Read More

Callbacks, Promises, and Coroutines (oh my!): Asynchronous Programmin…

Callbacks, Promises, and Coroutines (oh my!): Asynchronous Programming Patterns in JavaScript .title .title-container .author-info .author-container .infoContainer #slideview_likes Uploaded on Oct 31, 2011 This talk takes a deep dive into asynchronous programming patterns and practices, with an emphasis on the promise pattern. … This talk takes a deep dive into asynchronous programming patterns and practices, with…

Read More