j5ik2oにふられたのでやった
Lo-Dash is a low-level utility library that offers consistency, customization, and performance. Created as a fork of the Underscore project, Lo-Dash has grown in features and popularity, while remaining faithful to its original tenets. Unlike most libraries, Lo-Dash eschews almost all native iteration methods in favor of simplified loops, resulting in tight, lean code. But Lo-Dash isn’t just a con
Titanium Nagoya Chatroom と同じ日に東京で行われていたAndroid Bazaar and Conference 2012 でScaling Titanium Mobileというお話をqnypの@junyaさんがされていました。 Titanium Nagoya Chatroomで喋り終えた後の帰りの新幹線で上記スライドのPDF版ダウンロードして読んでいてunderscore.jsの特徴について 配列や関数に対する操作を容易にする JavaScriptのビルトインオブジェクトを拡張しない 関数プログラミング由来のものを中心とした60ほどの関数 ということが書かれており最後の関数プログラミング由来・・という部分にちょっと興味惹かれました。 自分は以前にWSH+JScript+prototype.jsで業務効率化のツール(詳しくはこれ)をちょこちょこ作っていたこともあり、
This reference is an adaptation of the documentation at Underscore.js. It is interactive in its HTML5 form. Edit a CoffeeScript segment to try it. You can see the generated JavaScript when you write a CoffeeScript function by typing ‘show name’ after its definition. Example Underscore Underscore is a library for functional style programming. It provides 60-odd functions that support both the usual
©Powered by hamsketch Quoraの"What are some good resources for Backbone.js?" のトップ回答がcoolだったので、翻訳して追加して編集してコメントしてメモ。 - 公式 Backbone.js 公式サイト ソースコード 解説付きソースコード 解説付きソースコードの翻訳(日本語) Underscore.js(公式サイト)(ソースコード) backbone.jsはunderscore.jsに強く依存してるから、こっちも勉強した方が良いよ 実はこの2つはホストしてるところは一緒だよ(DocumentCloud) 最新の情報が欲しいなら... 公式Wiki GithubのWiki。活発 Backbone.jsは、コードのホストは勿論、公式サイトもデモサービスもgithub::pages、Wikiもgithub::wikiと、Oc
backbone.jsのサンプルコードを読んでいると、bindという名前のメソッドがよく使われてます。 そして、bindという名前のメソッドはbackbone.jsにも、underscore.jsにも、jQueryにも定義されています。 慣れている人は問題ないのでしょうが、私は読んでいて混乱したので、それぞれの定義と、サンプルで使い方をまとめておきたいと思います。 backbone.jsのbindメソッド object.bind(event, callback, [context]) レシーバオブジェクトの'change'や'destroy'などのイベントに、コールバックを紐付けます。 第3引数にcontextを渡すことによって、callback実行時の「this」を設定できます。 jQueryのbindメソッド .bind( eventType [, eventData] , handl
Backbone.js が注目されがちですけど、Backbone.js を支えている Underscore.js も、実はかなり便利なライブラリです。公式サイトを見ると、よさげなメソッドが盛りだくさん。 Underscore.js 私自身はまだ Backbone.js のついでに使っている段階ですけどね。 Underscore.js が提供するメソッドは数が多いので、今回はよく使ったものに絞って取り上げてみます。それ以外は公式ドキュメントを見てください。 each test("each", function() { var data = []; _.each(["foo","bar","hoge","fuga"], function(n){ data.push(n); }); equals(data.length, 4); equals(data[0], "foo"); equals(da
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く