2005-04-28から1日間の記事一覧

ベストプラクティスィーーズ Ten good practices for writing JavaScript in 2005 マスト読み!ちなみにこれを紹介していた SitePoint のブログには染みる一節が、 Ten good practices for writing JavaScript in 2005/Stylish Scripting The key point is t…

Singleton on JavaScript

JavaScript singleton objects (and how to avoid polluting the global namespace) ためになるなぁ!。サンプルをもう少し「private」と「public」に強調して書くと…、 var MySingleton = new function() { var testVar1 = 0; //private var testVar2 = "un…

DOM(/JavaScript)もまた「ウェブ標準」です。

Gotta keep 'em separated The first is that just because something appears to be easier, doesn't make it the right tool for the job. In fact, there was probably similar excitement when the <font> tag was introduced to HTML: a quick and easy way t</font>…