HPB JS Patterns

HPB JS Patterns

The presentation has some gifs. It's not fun as the the keynote. Here's the keynote link: https://www.dropbox.com/s/0dxb2c7xas6s5xq/L%26L.key?dl=0

Be74fd9a577ea5ef1ab2e7c71bcfa4b5?s=128

Djalma Araújo

July 10, 2015
Tweet

Transcript

  1. 2.
  2. 3.

    Why? • Code understanding / Organization • Large code base

    • Too many developers • People moving between projects
  3. 6.

    Object Literal • No instances allowed • Awesome for utilities

    (Loading Spinner, Simple Binds, Specific Behaviour in a page) • Such an object is also sometimes called singleton.***
  4. 10.

    Function as a Class • Multiple Instances • Great for

    multiple rendering modules • Good for objects that needs inheritance • ECMAScript 6 brings “class” method as a syntax sugar