News

Take your next step toward building fluent, context-aware DSLs, starting with examples based on real-world APIs from EasyMock and Guice. Then try a hands-on exercise in building a fluent, context ...
Copying objects is a common Java programming operation that has one serious trap. Here's how to avoid copying from an object reference and only copy the instance and values you want.
In a previous column I discussed all the reasons for creating read-only objects and how they could simplify your applications (in fact, I recommended that creating a read-only object should be your ...
You can dramatically simplify your code by using value objects, but to create a value object that makes sense to the developer who uses it, you need to redefine what the equals sign means. Along the ...
This tutorial explains how a Java HashMap works internally and explores the challenges of implementing it, including buckets, collisions and hash codes.