Skip to content

Tag Archives: programming

TDD 之辯

DHH 說 TDD 已/該死,再看他在 RailsConf 2014 的 talk,也漸明白他說的是甚麼。他質疑的,是以 test-first 來驅動的設計,先決條件是要令該單元可...

Time picker key suggestion

前陣子遇到 UI 上有要求做個 Time picker 有以下要求: 遇上一題:在一個時間輸入有 0-9 鍵,在每輸入一鍵時就必需廢下一個輸入時用不用的鍵。例,輸入 2 時廢 6-...

2048 元素版

貪得意弄了個元素版的2048,稱之為《Fusion》,其實只是改了 tile 出甚麼字和變成 5×5,預設頭 20 個元素,可我也其實只是玩到 Mg。...

DIY two-way binding in AngularJs

AngularJs provides a convenient two way bindings to wire up your model and view. But somet...

一切由測試開始

開發軟件有很多原則,其中一條是 YAGNI,You ain’t gonna need it,意思是只開發需要用到的東西就好了,不要想太多。可惜偏偏越有經驗的開發者,越會...

Configure grunt for livereload with tomcat

In JEE project, tomcat or jetty is always used for local development. We build the WAR fil...

Watch only some targets at grunt.js

You have a grunt watch config like this: watch:{ deploy:{ files: ["app/**/*.js", "app/**/*...

Compass as a standalone jar with jruby

By using jruby, you can package the compass as a standalone jar file and run compass direc...