backbone + coffee scriptで快適に 最近は仕事でもJavaScriptの使用頻度が多くなっており、煩雑になりがちでした。 解決方法を探していたところ、backbone.jsというフレームワークが良いらしいという話が出てきたので試してみます。 また、coffee scriptを組み合わせ、シンプルなサンプルを作成してみます。 backbone.jsとは backbone.jsはDocumentCloud(underscore.jsも開発しているところ)が開発しているMVCフレームワークです。 これを使用すればモデルの操作、HTMLレンダリング、URLフラグメントに応じたルーティング処理を分割して綺麗に記述することができます。 公式サイト ※1やソースコード解説 ※2があるので、詳細はこちらを確認してみてください。 まずはこれだけを用いてサンプルプログラムを作成してみまし
Understanding MVC And MVP (For JavaScript And Backbone Developers) January 13, 2012 Last updated: 16th Jan, 2012. Before exploring any JavaScript frameworks that assist in structuring applications, it can be useful to gain a basic understanding of architectural design patterns. Design patterns are proven solutions to common development problems and can suggest structural paradigms to help guide us
Backbone Fundamentals - A Free Work-In-Progress Book For Developers Of All Levels December 23, 2011 About a week ago, I began working on a new article about Backbone.js. It was due to cover some concepts and insights intermediate or advanced users might appreciate, but I found myself wanting to reference topics beginners might need to know if they wanted to get the most out it. Quite a few of them
Backbone.jsとは? Backbone.jsは、JavaScriptによる大規模なアプリケーション開発を行う際に力を発揮するMVCフレームワークです。データバインディングとカスタムイベントを備えたModel、配列情報を表すCollection、イベントをハンドリングするView、サーバーサイドのアプリケーションと連携するためのRESTful JSONなどをフレームワークとして備えています。 大規模な業務アプリケーションのユーザーインタフェースをJavaScriptでゴリゴリと作ろうとした場合、100%に近い確率で失敗するかと思います。これは、Flexのようなビルド時のコンパイラエラーを検出できないこと、存在するフレームワークがインタラクションやビジュアルに特化していること、ブラウザーやOSの組合せでAPIレベルの仕様が異なる事、同じブラウザーでもバージョンの違いにより挙動が異なる事
Updated on August 20th, 2015 – This blog post was originally written to use the Twitter public API. That API has since changed to not allow unauthenticated queries. We’ve updated this post to utilize the GitHub API instead which still allows a minimal amount of unauthenticated queries (60 an hour.) The linked jsFiddles have been updated to reflect this but you may encounter the rate limiting rathe
Backbone Patterns Building apps with Backbone.js Here, I try to document the good practices that our team has learned along the way building Backbone applications. This document assumes that you already have some knowledge of Backbone.js, jQuery, and of course, JavaScript itself. Table of contents Model patterns Bootstrapping data View patterns Inline templates JST templates Partials Animation buf
Exploring Client-side MVC with Backbone.js Jared Carroll · December 19th, 2011 Backbone.js continues to gain popularity in the JavaScript MVC community. I decided to give it a try by creating a simple, single-page app to CRUD a single domain model. While it wasn’t as trivial as a traditional server-side implementation in Rails, it did turn out relatively clean. This is a long post, and if you make
社内の有志でやっている JavaScript 勉強会があり、それのお題で Backbone.js のソースコードを読み始めた。 http://documentcloud.github.com/backbone/docs/backbone.html 今日は頭から読んで Backbone.Events を終えて Backbone.Model の has まで。 Backbone.Events の trigger を読むのに時間がかかった。 trigger : function(eventName) { var list, calls, ev, callback, args; var both = 2; if (!(calls = this._callbacks)) return this; while (both--) { ev = both ? eventName : 'all'; if (
■Backbone.js ●"Backbone.js" 公式サイト:最近ロゴが変わりましたねえ。 メソッド一覧見れる。が、その辺はソースコードを見るのがよいです。 ●"社内でbackbone.js with Rails勉強会を開催しました blog.mah-lab.com" だいたいの雰囲気はつかめる感じ 今のプロジェクトでは hamljs 使ってるなあ ■Rails ●"meleyal/backbone-on-rails GitHub" Railsエンジニアなら、これの Scaffold やればだいたいわかるはず ■全体的 ●"Single Page Web Applications with CoffeeScript, Backbone and Jasmine" coffee いいよ coffee 全体的になんとなくの使い方がわかる感じ ●"『Backbone.jsの1番良いリファ
IntroductionAuthenticationResponse Status CodesDate FormatAttachmentspostCreate AttachmentCommentsgetFetch CommentspostCreate CommentCustomerGroupsgetFetching Users and Customer GroupspostCreate a user or customer groupgetShow User or Customer GroupgetFetch Members of a customer grouppostAdd MemberDraftsgetFetch DraftpostCreate DraftputUpdate DraftdelDelete DraftEmailsgetFetch EmailspostCreate Ema
Designing an application with Backbone.js is amazing; it's flexible and fits in comfortably with my development processes. Since this library doesn't formalize common tasks like templating, it's all-too-easy to fall into the repetitive flow of rewriting the same template fetching/rendering/assembling for every project. LayoutManager formalizes from start to finish the fetching of layouts and templ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く