Behind the Closed Door - Secrete of Greate Management (Pragmatic Programmer) Agile Project Management (Jim Highsmith) Agile Estimating and Planning Agile and Iterative Development - A Manager's Guide
2007-10-17

catergorize methods in class

关键字: design test tdd
there are two kinds of methods in one class, no matter what kinds of languages you use or applications you build: element methods (this is an ambiguous name, I know) and composed methods. 1. element methods the responsibilities of element methods are realizing part of an algorithm, like doing a s ...
2007-07-10

Naming a Method

关键字: design
How to name a method? This simple question can trigger a heat discussion and contention. As the old Bell Lab saying goes: "library design is language design", the name of method plays a vital role in the API design, and the quality of method naming distinguishes DSL-like design from unread ...
Application skinning/theme support with Rails (modified from Rails Recipe) (please excuse me for writing in English, for there's no input method installed on client's machine.) Rails provides a lightweight, CSS-driven approach to themes. 1. Add a String field called style to your applicati ...
Package up Rails app as WAR file & Run it on Tomcat Successfully                           (please excuse me for writing in English, for there's no input method installed on client's machine) ...
Functional test with Selenium-on-Rails (please excuse me for writing in English, I'm working on client-site, and there's no Chinese input software installed on the desktop) 1. Install plugin Selenium-on-Rails by executing $ script/plugin install http://svn.openqa.org/svn/selenium-on-rails/seleniu ...
2007-05-09

Groovy's HERE DOCUMENT and Closure

关键字: Groovy
Something fun with Groovy's 'HERE DOCUMENT', i.e., """...""" In groovyConsole, execute (Ctrl + R) following code: """ ${ println "Hi" } """ result: Hi Cool, isn't it? How about this? """ ${ class Foo ...
Jeff的企业级Ruby的文章非常好,提供了很多有用的信息。但是最近的工作经历让我思考凡是加上“企业级”的东西,都不仅仅是技术的问题。 先说技术的问题。从技术角度看,“企业级”根本不是个问题: Q: What the hell is "Enterprise Ruby" anyway?A: Yet another 'stack' of crap so complex that any salesperson can use Steak and Strippers to easily sell it to manageme ...
引子 王国维在《人间词话》中说:古今之成大事业、大学问者,必经过三种之境界:“昨夜西风凋碧树。独上高楼,望尽天涯路。”此第一境。“衣带渐宽终不悔,为伊消得人憔悴。”此第二境。“众里寻他千百度,蓦然回首,那人正在,灯火阑珊处。”此第三境。 学习编程语言也是这样: 一、语法,idiom,包括lib 熟悉阶段。你就独上高楼,望尽天涯路吧:     Ruby语法好怪啊,和Java都不一样啊……     Ruby看着挺习惯了 ...
昨天和在Studio工作的QianQian论道,谈到Rails的View,共识是:写Model和Controller时都在飞——Rails让你想哪就飞哪,一到View就掉下来了:太多boilerplate代码,太多CSS编辑。 今天和James在Botanic Garden吃午餐,讨论同样的问题,他有同感,结论:需要一个framework来结束这最后的一块了。 现在有Haml和DRYML,是Solution么?
bma
搜索本博客
最近加入圈子
存档
最新评论