Skip to content

Instantly share code, notes, and snippets.

@aboutaaron
Created July 25, 2014 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aboutaaron/94474ac59e792680b825 to your computer and use it in GitHub Desktop.
Save aboutaaron/94474ac59e792680b825 to your computer and use it in GitHub Desktop.
JS notes
# New frontiers in javascript: the browser at the bleeding edge
## Possible futures
1. new libs (new jQuery)
2. ECMAscript 6
3. Make your own (sweet.js)
4. web assembly (coffeescript)
## 1. New Libs
- React.js: shadow DOM (diffing shadow DOM to DOM)
- calculate differences in DOM nodes
- fast rendering
- Pixi.js
- webgl lib
- performant
## 2. ECMAscript 6
- generators
- resumable function
- yield features
- maintaining eternal state
- http://jlongster.com/A-Study-on-Solving-Callbacks-with-JavaScript-Generators
- scoping changes
- `1et` keyword
- `{ let x = 10 }`
- `{ const x = 10 }`
- destructing assignment
- Before
`var foo = function () { return [1,2] };`
`vals = foo();`
`x = vals[0]; y = vals[1]`
- After
`[x, y] = foo ();`
- string interpolation
- `x = 1`
- my favorite number is ${x}
- with backticks `
- Concurrency Models
- David Nolan
- ECMAscript generators and CSP
- Promises
# 3. Sweet.js
- http://sweetjs.org/
# 4. Compile to JS
- elm
- functional reactive programming
- instead of when I click do something
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment