JavaScript -> try to build another x-OS platform, by Netscape Mocha - LiveScript -> JavaScript
- Continuous-Passing Style
- deep function in function => flow control
- function depends on multiple calls => flow control
how about debuging?
async.js: use a handle to track status
promise pattern: promise.then( succ, fail )
- Ref: CommonJS Promise/A
- Ref: Q framework Stack overflow
function() {
return [ f1().promise, f2().promise ];
}.then( function() {
echo "async f1 & f2 is done~~";
});ECMA-262 Edition 6: generator, cannot be called in async, need promise's help
- 原來 debugger 有 profiling,每個瀏覽器都有
- jsperf
- youtube record
- OWASP
- 要幫忙清 passwd cache in input
- 要用白名單,不要用黑名單,只接受能控制的
- CSRF
- Clickjacking
- ClickJacking Test
- one time token
- vim
- sublime text
- column selection
- multi selection
- goto anything, include file, function ( path keyword like browser url parsing )
- LiveReload, auto reload when file changed
- 容易畫圖,skitch
- 配色,kuler
- 抓到斷線後,不只提醒,也要阻止user繼續點
- pjax
- Slide
- 不同tab之間可用web storage/cookie來作data sync
- pageVisibility, 讓程式知道現在tab 不在focus
- web sql database
- 根據解析度給不同圖片 sencha