Desktop Matters

Is enthusiasm, energy, and creativity enough to catch up to competitors who may not have the same level of compassion but instead have a strong commercial interest? Spending two days at the Desktop Matters conference, sharing ideas and experiencing a newly re-energized group of hardcore Java Desktop developers first hand was truly outstanding. Java luminary Ben Galbraith […]

How private are private fields after all?

Last week, I sent the following brain teaser:

Can you write a void hack(Object obj) method that would change foo’s private member variable, so that the output looked like this? Psst: 74 A sharp developer came up with this solution:

Now there you have it. Just because a member is declared private doesn’t mean […]

Code Inspection

I recently got the chance to participate in another code inspection, in which among other things, the following line of code was heavily criticized for using String concatenation on constants and not using a StringBuffer object for the string operation in general. FindFile.FindFileInClasspath( kPropFilePrefix + “*”+ kPropFileSuffix + kKeyProperties, vPropFiles ); This is from a J2EE […]