jing js (二)

Javascript Engine

Parser

1
  - Usually generates AST

Runtime

1
2
3
4
5
6
  - Value representation
  - Object model
    - Dictionary mode
    - Fast mode
  - Built-in Objects
  - Misc

Execution Engine

1
  - Execute code

GC

Foreign Function Interface (FFI)

1
2
3
  - Handle interaction between JS and "the outside world"
  - JS call out to native function
  - Native function call into JS function

Debugger

Http is Hard

Http?

Response code

1
2
 - 418 code is a joke
 - 5xx server error

Client Methods

1
2
3
4
 - POST
 - GET
 - PUT
 - DELETE

Lean Development with Node.js

Founding a company

1
2
 - Find problem and want to fix it
 - A little crazy

Customer Interviews

1
2
 - open ended questions
 - people you don't know

Why node.js?

1
2
3
 - community
 - open minded
 - data collection

Open minded

Toolkit

1
2
3
4
5
6
7
 - Express
 - Postgres
 - Node-orm
 - Underscore
 - Request
 - Moment
 - Phantom.js

Resources

1
2
 - The Lean Startup
 - The Four Steps to the Epiphany

The Hitchhiker's Guide

Server side

1
 - express

Single-page app?

Client Side

WebRTC

Framework

Client Side

1
2
3
4
  - CommonJS
  - Require .js
  - Angular
  - Ember

Github

1
jingjs-talk