August 2009

Config Spring and DWR on Jetty with zero XML

I hate xml configuation files. They look awful. As a result, they can be very time-consuming to write, and are very error-prone. There's no type-safty checking whatsoever. I would rather keep configurations within my Java source code. After all, we programmers are the only people looking at these configurations, why create trouble for ourselves? Luckily, with annotation support in Java, we can now completely do away with xml files for developing Web applications. Here is my recent experience integrating Spring framework with DWR on a Jetty sever.

Spring Continue reading »

Is that a cat?

1. 用过晚饭后,唐唐又迫不及待的要麻麻带着到外面进行巡视领地的每日一游的活动。正当他迈着小步在sidewalk上走的时候,一辆SUV从住在我们这片小区里面开了过来。然后在不远处停了下来。接着车窗摇了下来,然后一位女子探出头来问到"Is that a cat?"当麻麻确认唐唐的猫身以后,便被唐唐又拖着继续巡视领地。只听见身后车里的几位不约而同的感叹到"Wow. Cat on a leash!" Continue reading »

Nice place