ちとく
- いいね数 181,973/156,926
- フォロー 487 フォロワー 760 ツイート 80,101
- Web https://chitoku.jp/
- 自己紹介 Vim で事足りたい
2015年09月10日(木)

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx


非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx


非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx


女を売買するソシャゲいくつかやってたけど、iOSだと揺れないと聞いてAndroidでもやってみた結果、何故か俺が好むような女はみんな揺れる乳がついていなくて端末を放り投げたことはあまりにも有名
タグ:
posted at 15:52:46

非公開
タグ:
posted at xx:xx:xx

でここで問題になるのがDOMContentLoadedがGCされるかされないかなんだよなー。されなかったらこれDOMContentLoaded内で保持するDOM変数に関わる全てのノードが、removeEventListenerされるまで保持されてしまうからな、
タグ:
posted at 15:22:15

非公開
タグ:
posted at xx:xx:xx


Twitterのbody以下全書き換えは、基本的にappendChild/removeChildでやってるので、body以下どれか一つでも参照残してたらメモリリークします。それが今のwebTwitterの惨状です。
タグ:
posted at 14:37:22

NodeList回したかったら
Array.prototype.forEach.call(document.querySelectorAll("#imglist"),function(e,i){ console.log(e); });
でしょ。prototype呼べば出来る
タグ:
posted at 14:29:48


これが起きやすいのがもう一つあって。
Node.jsにおいて
var cnt = function(c){
process.on('exit', function(){
c++;
});
return function(){ return c++; };
}(0);
タグ:
posted at 14:22:37

そしてすべての参照を消し去る、というのがクロージャと絡むと消えてないことが起こりやすいという話だ。
var cnt = function(c){ return function(){ retrun c++; } }();
で、cがcntをnullするまで消えないのと同じ話
タグ:
posted at 14:18:08

body以下全部removeChildしたし消えてくれるやろwは甘え、body以下全部removeChildした後全てのChildに対する参照を消さないかぎりノードは死なない
タグ:
posted at 14:15:36



body
└#hoge
└#fuga
という構造の時
var $ = document.querySelector;
var body = $("body");
var hoge = $("#hoge");
var fuga = $("#fuga");
とするこの時(続く)
タグ:
posted at 14:12:25

非公開
タグ:
posted at xx:xx:xx

非公開
タグ:
posted at xx:xx:xx

病院の待合室で小さな女の子が「おっぱいおっぱい」と叫んだ。これは微笑ましい。
同じことを私が公共の場で叫んだら、これは絶対に許されない。
何故なんだろう、などと考えながら伝習録を読みつつ順番を待ったが、特段の解悟は得られなかった。
タグ:
posted at 12:23:00


SVGコードゴルフについてと、GIZMODOの「Google新ロゴ」記事への反論 - 聴く耳を持... (59 users) bit.ly/1FymElK 13件のコメント b.hatena.ne.jp/entry/d.hatena... pic.twitter.com/78nXF2Rjd8
タグ:
posted at 05:46:08



非公開
タグ:
posted at xx:xx:xx

さて、どれだ
・AppleとMSが手を組んで打倒Googleを目論んでいる
・MSはどんな手を使ってでもOfficeを使わせようとしている
・MSがSurfaceに対するやる気をなくした
タグ:
posted at 02:37:40


非公開
タグ:
posted at xx:xx:xx

本日のガストは
台風が近づいているということもあっていつもよりも閑散としていますが
とりあえず左隣の大学生らしき女の子たちが盛んに
「くろこっちイイよね」
と言っております
タグ:
posted at 00:42:40


