Java Compiler Generating Secret Methods
I’m going to show you a little trick that will add two methods to any Java class, without actually defining them. Furthermore, these methods will be given package visibility, accessible by any class in...
View ArticlePassed The Java Developer Exam!
Since my current job switched everything off of Java to Ruby and Rails a while back, I was concerned that my Java skills may get rusty. I had wanted to pursue another Sun Certification anyway, so I...
View ArticleGetting A Java Object’s Reference ID
UPDATE: A number of commenters have pointed out that I’m totally wrong here. Please don’t do this. When you take an object that has not defined a toString method, it prints out strings that look like...
View ArticleWhat’s A Java Developer To Learn?
With the economy continuing on it’s tailspin, lots of developers are finding themselves out of work. Those that are lucky to still have a job (like myself) live in fear that their company may downsize...
View ArticleUnits are Not Classes: Improving Unit Testing By Removing Artificial Boundaries
Many developers think of unit tests as tests that test a single class. In fact, I myself once thought this way. If I wanted to write unit tests for a two-class system in which a class used another...
View ArticleCertifications Aren’t “Bad” (They Just Aren’t “Good,” Either)
I’ve been disturbed by a few posts made by James Shore lately. Though I greatly respect Shore and immensely enjoyed his book, one particular post of his really irked me: “Your Certification Is...
View ArticleFinding High-Impact Areas for Refactoring
At Rally, we’ve stayed committed for the last 7 years to never telling the business that the product has to halt active development to pay down technical debt. For us, the “big rewrite in the sky” has...
View ArticleReview: ViewSonic gTablet
When I saw the first iPad, all I could do was wonder what the point was. Was it to read books? A Kindle or Sony Ebook Reader seems like a better option, something with an e-ink display. Was it to stay...
View ArticleUbuntu, Tomcat, Jenkins, Git, and SSH Together
I recently wanted to set up Jenkins on my personal workstation to manage builds for side and personal projects. I was already running Tomcat on the system since I use that to run Subsonic, so I wanted...
View ArticleConditionally Running Tests With JUnit 4
At work, I’m building a module that interfaces with a customer billing system. Writing unit tests for something like this is easy using mocks, but I really wanted to write an integration test the...
View Article