Exponentiation operator Array.includes Classes Object enumerable arrow functions Generators global import Async ivate fields trimStart trimEnd promises f and from string Nested im Observa string.ma Relations cons let sessionSt Template s
separation • Declarative data binding • Components, routing scheme, • data validation, animation, event management, etc • Community support = stability, new features, OSS Frameworks provide: How did JS get here?
big boilerplates). Understand what the different libraries in your packages.json actually do. Focus on how data flows through your app. Can we make keep up with JS better? Keep It (Stupid) Simple.
you need it to? Don’t eat soup with a shovel, don’t dig a ditch with a spoon. • What is the quality of code? Does it utilize modern best-practices? • Actively developed? Software is never “done.” • Active user base? • Documentation? • What dependencies does it rely on? Can we make keep up with JS better?
you need it to? Don’t eat soup with a shovel, don’t dig a ditch with a spoon. • What is the quality of code? Does it utilize modern best-practices? • Actively developed? Software is never “done.” • Active user base? • Documentation? • What dependencies does it rely on? Can we make keep up with JS better?
on micro-optimizations • Invest in modern JavaScript versions • Pack information into variable names • Commenting is to help the reader know as much as the writer. Don’t comment things that are already apparent by reading the code. • Embrace the language Can we make keep up with JS better? Write readable code.
styles: • Procedural: (imperative), like C • Object-oriented: objects are primary building blocks, like Java • Functional: functions as first class citizens. Like Haskell, ClojureScript, or Elm. Can we make keep up with JS better? Write readable code.
arguments to derive the return value, and does not produce any side affects (such as modifying values or state outside of itself). Immutability Involves how you handle changes. Example: instead of adding items to an array, you create a new array with your item at the end of it. Can we make keep up with JS better? Write readable code.
Kiran Prasad Our Node code base [is] 1,000 to 2,000 lines of code. The Ruby code base [was] 60,000. “ “ On ’s move to Node.js from Ruby on Rails Why JS can be is great.