Zhu Wu's Blog

The world is a fine place and worth fighting for.

Use MariaDB4j in Unit Tests

Recently, we wrote a lot of raw and complex SQL queries for data analysis in our new project, and these queries run on a MySQL database. Then, we notice that it becomes a nightmare to maintain these queries, and we decide to add unit tests to...

Continue reading →

Use AspectJ to Modify Java Standard Library

This article explores the capabilities to alter Java standard library using AspectJ without recompiling source code of Java. It is highly experimental and do not apply it to production environment.

1. Weaving mode and development style


Continue reading →

Debugging Ruby Methods at Runtime

Due to the dynamic nature of Ruby, it is hard to locate a method definition statically. Thus, we can only find the method definition accurately at runtime. Here are some tips.

Suppose we have an object called foo. We can use foo.methods to find...

Continue reading →