Code Archive Skip to content Google About Google Privacy Terms
Home/Categories/Backbone/Testing Backbone + RequireJS Applications with Jasmine/ In my previous post, I covered the structure of a Backbone.js application using RequireJS. The next thing (or if you are a TDD fan, the first thing) we do is to run some tests on it. According to Coda Hale: Writing tests for your code may not reduce the number of bugs, but it will make fixing the bugs you inevitably f
Post.has().many('comments', { collection: Comments, inverse: 'post' }); Comment.has().one('post', { model: Post, inverse: 'comments' }); var post = Post.create({ id: 1, comments: [{id: 2}, {id: 3}, {id: 4}] }); post.comments().length; // 3 var comment = Comment.create({id: 5, post_id: 1}); post.comments().length; // 4 comment.post() === post; // true :D Source The source for Supermodel is hosted o
Pot.Deferred コールバック内で FileReader を返したときの不具合を修正JSDoc コメントが変だったのを修正Blob コンストラクタと BlobBuilder の実装の違いを吸収する Pot.createBlob() 関数を実装Pot.equals() に長さの違うオブジェクトを渡した時に不正な結果になる不具合を修正jQuery.ajax を Pot.Deferred 化する Pot.deferrizejQueryAjax() をスクリプトの読み込み順序に関係なく実行できるよう調整Pot.serializeToQueryString() で Boolean をそのまま文字列化するよう変更要素のリサイズ値を取得できる Pot.getResizeSize() を実装DOM 要素が画面上に見えてるか判別する Pot.isElementInView() 関数を実装オブジェクト
ペアプログラミングを実践する技術系企業が増えていることに注目し始めた Wall Street Journal が,自らの見解を Computer Programmers Learn Tough Lesson in Sharing (共有を通じて厳しい教訓を学ぶコンピュータプログラマたち) という記事に発表した。 Facebook やモバイル決済の新興企業 Square など,技術系企業の間でペアプログラミングが人気です。その信奉者は,カップルによる効果を賞賛のことばで語ります。ペアコーダはコストの高いソフトウェアエラーを捕まえることができる,Web サーフィンのような時間の浪費もない,というように。 しかし実践してみれば,すぐに問題に突き当たる。デートするのとは訳が違うのだ。 現実はむしろ,最悪のブラインドデート以下かも知れません。やっかいな問題があっという間に山と積み上がり,パートナーを
When you’re styling parts of a web page that will look and work differently depending on whether JavaScript is available or not, it can be very useful to use JavaScript to change or add a class name to the html element. By doing this you can create CSS rules that will only be applied when JS is available and vice versa. The trick is to make sure the class names are switched as early as possible du
Wednesday, September 19, 2012 iOS 6, Mobile Safari & Web Applications As many of you begin upgrading your iPhones, iPads and iPods to iOS 6 over the next couple of days, you may find that a lot of AJAX web apps (not just ours, but also others created with other tools that output HTML, CSS and Javascript) no longer run very well. Symptoms include: missing images, unresponsive interfaces, random dis
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く