Jackson Tree Model – Part 1

By on May 14, 2012 in eng |

Jackson API is an open source tool for processing JSON data. This post gives the example how the API is used in tree model mode

Tradeoff between explicitness and flexibility in unit testing

By on May 13, 2012 in eng |

Sometimes, I find it quite not flexible to write a test that require input string in a specific format e.g. JSON string. I prefer wrapping it in a builder class to sacrifice explicitness for flexibility.

Simplify code with refactoring

By on Feb 26, 2012 in eng |

I am sharing my experiences in code refactoring with my team members. I have shared some of the pattern that I have been using frequently. I will also share it here so I can use it as a reference in the future

Selenium Page Objects and Abstraction

By on Jan 23, 2012 in eng |

Last Friday, I explained the concept of Selenium Page Objects to my colleague and I feel like I didn’t explain it in a simple way enough. I have spent some time today to come up with explanation that relates the page object pattern to the concept of abstraction in programming

Simple explanation for inner join and left join

By on Dec 25, 2011 in eng |

The inner join is for filtering out unwanted records and left join is for pulling in extra information

Java Deflater and OutOfMemoryError

By on Aug 2, 2011 in eng | 6 comments

Summary: Relying on Finalizer to clean up native memory of Deflater object may cause OutOfMemoryError

The Answer Lies Elsewhere

By on Jul 3, 2011 in eng | 2 comments

A lesson my former group leader taught me is that don’t put all investigating effort toward only one direction and keep looking for other possible root cause

RenameTo and Poor Man’s File Based Cache

By on Jun 17, 2011 in eng |

I have fond an interesting concurrent problem in one of the servers in my project that caused a noticeable drop of throughput figure in performance test