Skip to content

Instantly share code, notes, and snippets.

View kuronekomichael's full-sized avatar
🤡
“You cheated not only the game, but yourself"

Koki Nakashima kuronekomichael

🤡
“You cheated not only the game, but yourself"
View GitHub Profile
@kuronekomichael
kuronekomichael / Preferences.sublime-settings
Last active December 22, 2015 04:48
tern_for_sublimeのauto_complete_triggers設定例
{
〜(略)〜
"auto_complete_triggers": [
{"selector": "text.html", "characters": "<"},
{"selector": "source.js", "characters": "."}
]
〜(略)〜
}
@kuronekomichael
kuronekomichael / scaling_isomorphic_javascript_code.ja.markdown
Created August 30, 2012 05:01 — forked from tily/scaling_isomorphic_javascript_code.ja.markdown
サバクラ両方で動く JavaScript の大規模開発を行うために

サバクラ両方で動く JavaScript の大規模開発を行うために

原文:Scaling Isomorphic Javascript Code (This is just for study, please contact me at tily05 atmark gmail.com if any problem.)

考えてみれば Model-View-Controller とか MVC ってよく聞くよね。実際どんなものか知ってる? 抽象的に言うなら「オブジェクト情報の保持されるグラフィック・システム (つまり、ラスターではないグラフィック。ゲームとか) 上に構築された、表示系を中心としたアプリケーションにおいて、主要な機能どうしの関わりをうまく分離すること」とでも言おうか。もう少し深く考えを押し進めてみれば、これは当然、他のさまざまなアプリケーションにもあてはまる言葉 (bucket term ?) だ。

過去に多くの開発コミュニティが MVC による解決案を提供し、それによってよくあるユースケースにうまく対処し、地位を築くことができた。例をあげるなら、Ruby や Python コミュニティは Rails や Django を作り、MVC アーキテクチャを実現した。

<!-- sample -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
<script type="text/javascript" src="http://assets3.github.com/javascripts/bundle_gist.js"></script>
<link type="text/css" rel="stylesheet" href="https://github.com/stylesheets/bundle_common.css" />
<link type="text/css" rel="stylesheet" href="https://github.com/stylesheets/bundle_gist.css" />
@kuronekomichael
kuronekomichael / gist:1624253
Created January 17, 2012 02:52
Standard Initializer
- (id) init
{
self = [super init];
if (self != nil) {
// init code
}
return self;
}