Archive for the 'java' Category

The Accidental Feature

Thursday, June 5th, 2008

My manager was able to squeeze in another last-minute feature into this sprint.  When he told me what it was, I wasn’t too happy about it.  That part of the code isn’t the greatest, and I knew that we have some issues in that part of the functionality anyway.  I scheduled about 3 days for [...]

The Ghost Classes of Cobertura

Friday, April 25th, 2008

We use Cobertura inside our continuous integration system and I have spent the last two hours trying to figure out why a couple value objects where showing 0% coverage because, you know, they actually had tests written for them. Because I just wrote the tests!

After some investigation, I discovered the packages of these objects were [...]

An example of Intellij’s coolness

Thursday, April 10th, 2008

 So I was coding away in Intellij, and did my Ctrl-Click thing to bring up a method in another class, and look what I see:

So I click on “Update Project”, I get the latest from SVN, and I move on with my life.

This, my friends, is coding bliss.

I’m a No-Fluffer

Monday, April 7th, 2008

I sacrificed my weekend to attend Omaha’s No Fluff Just Stuff.  And I had a great time.  Some of my highlights:

 I saw most of Ken Sipe’s talks, mostly because everything he talked about was applicable to me.  My favorites of his were Iteration 0 (starting off on an Agile project) and [...]

A Tale of String Equality

Monday, January 14th, 2008

Whereas Mike waxes poetically about what he recently learned about String Comparisons in Java.

Spring and Jython — what a combo!

Wednesday, December 12th, 2007

I’ve been thinking off and on for a few month that using Spring inside of Jython would be a magical thing. You could just get a Spring ApplicationContext, call “getBean” and Jython (who doesn’t care what kind of object it is) would happily go on it’s way.  No importing a ton of object — just [...]

Eclipse Sighting

Wednesday, October 10th, 2007

No, note another lunar eclipse but a totally different Eclipse.

My mother-in-law is a Pampered Chef consultant and needed some help with their consultant application called “The Pampered Partner”. As I was mucking with it, I felt something familiar about how it started up, etc. Then I saw that it left some files called [...]

Tutoring Java

Tuesday, September 25th, 2007

My lovely wife is always trolling Craigslist, looking to put me to work doing odd jobs.  My latest odd job is a Java tutor.I never took a formal Java class. I bought a book, trolled the web, and was given a project.  The good news is that I don’t have a lot of cruft to [...]

Large Datasets in a Unit Test

Wednesday, September 12th, 2007

I spent my whole day essentially working on one unit test.  Yes, just one unit test. But let me explain.This part of the app just does something very simple — serializes the results of a database query into XML.  Of course, it’s not “simple” but we have tools to make this simple.  You take some [...]

Setting up a JNDI Data Source in Spring

Friday, August 17th, 2007

Just put something like this in your applicationContext.xml <bean id=”appDS” class=”org.springframework.jndi.JndiObjectFactoryBean”>  <property name=”jndiEnvironment”>       <props>        <prop key=”java.naming.factory.initial”>weblogic.jndi.WLInitialContextFactory</prop>        <prop key=”java.naming.provider.url”>t3://localhost</prop>      </props>    </property>     <property name=”jndiName” value=”datasourcejndi_name”>   </property></bean>You’re properties and jndiName will probably be different.  But still — no code, just configuration. It doesn’t get much better than that!Powered by ScribeFire.