efcl’s blog

GitHub英語のメモや引用が中心です。

JavaScript

9 anti-patterns for node.js teams

9 anti-patterns for node.js teams 9 anti-patterns for node.js teams from Jeff Harrell 9 anti-patterns for node.js teamsでは node.jsにおける9つのアンチパターンを紹介しています。 Baggage from your previous technology 過去の技術は置いてnodeに…

Pioneerのお試しステップ

pioneer.js - javascript integration testing pioneer/getting_started.md at master · mojotech/pioneer の補足的なファーストステップ インストール chromedriver が必要なので入れる。 npm install chromedriver -g npm install pioneer --save スケルト…

Acorn-cspのできた流れ

RReverser/acorn-csp についての話 Not working for web workers · Issue #90 · marijnh/acorn acornがnew Functionを使うので、CodeMirror経由でacorn使ってる人等がひっかかる Chrome Appとかも同じ問題 @RReverserさんがAST変換をしたCSP対応バージョンを…

JavaScript Memory Management Masterclass のメモ

JavaScript Memory Management Masterclass // Speaker Deckのメモです。 Q. メモリリークはどうやってチェックするの? A. DevToolsでSnapshotsを取って比較 Hidden Classes V8にはHidden Classesがあるので、deleteするのは最適化を逆に妨げる。 Closures …

JSでQueueとして配列を使った場合と自作したQueue(linked-list)での最適化の話

2 Since you're queuing functions to be executed, you can use a more efficient data structure than a JS array. A queue that has only enqueue, dequeue and isEmpty operations can have all these operations be O1. A JS array probably doesn't be…

Bowerは悪かどうか

Bower is a not only completely unneeded, it is a net negative to the JavaScript community. Please take it back. — Captain Hindsight (@cjno) May 15, 2014 昨日あたりから、sinon.jsのcjnoさんが発端のBowerは本当にいいものなのかについての話題が…