Friday, December 15, 2006

Firefox, run!

Pango-enabled firefox is much slower

Add above to .bashrc. Make sure to log out to let it take effect. Now only if I can figure out how to get it run faster on OSX.

Saturday, May 06, 2006

Exception Breakpoint and Field Watchpoint in Intellij

Exception breakpoint and Field Watchpoint are great timesavers when troubleshooting bugs that result in exception. No more staring at the code; sprinkling line breakpoints everywhere. Simply set up the exception breakpoint, reproduce the exception according to the bug description. Volia, Intellij suspends the program when it hits the exception and now it is easy to go through the stack and pinpoint what the problem is.

Technorati Tags:

Monday, February 20, 2006

TDD Infected

In the past, I did not get what is the big deal about the whole TDD (Test Driven Development) thing. When I previously skimmed Kent Beck's "Test Driven Development book, I found the example in the book to be ridiculously simple or even dumb sometimes.

That is until I had chance to pair with Edward and watch the TDD in action.

We had a bug to fix and Edward had a hunch about where the bug is. But instead of going straight to fix it, he insisted on writing a test to reproduce the bug first. Unexpectedly, the first version of bug reproducing test didn't turn red. This lead us to fire up debugger and started tracing the code. Along the way, we discovered that our hunch was in fact wrong. When the test finally turn red, we knew exactly how to fix the bug. And sure enough, it took us no time to make the test green and we were confident that we indeed fixed the bug.

It is truly an "Aha!" moment for me.

So I revisited Kent Beck's TDD book afterwards. The book's example still read as ridiculous. But as I can relate to my personal TDD experience, the messages in the book begin to resonate with me.

Since I started to practice TDD couple weeks ago, the most important change is that I no longer try to "over-apply" patterns up front. I am able to delay that decision till the needs arise knowing comfortably that I can always refactor to pattern without fear of breaking anything. A big plus in my book.

Technorati Tags:

Sunday, January 08, 2006

Kinesis Advantage and TypeMatrix 2030

My wrist starts to bother me. To avoid RSI, I researched on ergonomic keyboard and narrowed my choices down to:

  1. TypeMatrix 2030, $100 from ebay.
  2. Kinesis Advantage, $250 ordered through fentek-ind.

I ordered both keyboards to try out and hope they will save my wrist.

UPDATE: Verdict is out. Kinesis Advantage is an instant love and TypeMatrix went straight back to ebay.

Technorati Tags: ,

Thursday, January 05, 2006

Sony eBook Reader


This is the widget gadget I am going to get in year 2006.

Technorati Tags: