Latest articles
Item 19: Use interfaces only to define types
In the book Effective Java 2nd edition, the item 19 stipulates to "use interfaces only to define types" and not to use them to define constants.
Emacs Module : Test 1
Since I've heard about Emacs' Dynamic Module feature, I've wanted to try it out. This article presents a small "hello world" with this feature.
Exploring the Wildcard Capture Pattern in Java Generics
While I was reading the Java Specification and Java Tutorials, I stumbled upon the "wildcard capture pattern" and the "Object cannot be converted to CAP#1" error.
When Good Code Goes NaN: How mismanaging Java's Unorderable NaN Value led to a bug
I recently encountered a bug which was caused by a NaN value in my Java code. NaN, short for "Not a Number", is a valid value for a float or a double. NaN is a tricky value because (1) it spreads like a virus and (2) it is unorderable.
Dumping a binary file with od(1)
I was recently working on an embedded device that provided a limited CLI interface and was looking for an utility to dump a binary file.
I was aware of hexdump(1) but alas, it was not available on my platform. That is how I discovered od(1).