Choosing a JavaScript Framework

8
whoami Fernando Martinez - [email protected] Frontend Engineer @ Treasure Data

Transcript of Choosing a JavaScript Framework

Page 1: Choosing a JavaScript Framework

whoamiFernando Martinez - [email protected] Frontend Engineer @ Treasure Data

Page 2: Choosing a JavaScript Framework

Choosing a JavaScript Framework

The web is a complicated mess. Build your product with simplicity in mind.

Page 3: Choosing a JavaScript Framework

The Problem• Web applications start small • Complexity builds gradually so it’s hard to notice • Complex applications are difficult to iterate on • Slow iteration === Dead company

Page 4: Choosing a JavaScript Framework

The Solution (part of…)

• Documentation • Explaining the API is not enough • Teaches the “why” of the framework • A code example is worth a thousand words • Prevents misuse of the framework

Page 5: Choosing a JavaScript Framework

The Solution (part of…)

• Modularity • Monolithic frameworks are seldom worth it • Avoid unnecessary vendor lock-in

• Some virtual DOM implementation • Developers don’t have time to worry about the DOM

Page 6: Choosing a JavaScript Framework

The Solution (part of…)

• Unidirectional data flow • Human brain is not good at understanding two-

way data flows • The web worked like this in 1990s. Any good

reason to change?• Testing

• Important, but not most important • Common by now in all frameworks

Page 7: Choosing a JavaScript Framework

“I think we're in this world I'd like to call Guard Rail Programming... 'I can make change because I have tests!'

Who does that? Who drives their car around, banging against the guard rails? Do the guard rails help you get to where you

want to go?”

- Rich Hickey

Page 8: Choosing a JavaScript Framework

Conclusion

A good framework is not a single framework, but a Framework of frameworks.