Skip to content

Tag Archives: programming

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...

To mock or not to mock

在寫 unit test 時會用到 mock/stub/spy 等技巧去代替一些 external dependencies,但有時要 mock 到甚麼程度確實叫人難以抉擇。簡單如...

編程套路

在software craftsmanship運動裏,有一堆用來練功的「Kata」1,是日本字「形」的意思,中文對應應該是「套路」。練習套路,就是重複同一個動作,將其內化,熟能生巧...