Thursday, December 15, 2005

 

Used a switch statement

Today I used a switch statement for the first time in a very long time, I had no choice. OK I had a choice but a long list of else if's is worse. Switch statements never seemed like the "right" thing do in Java. Why I felt it was cool in C but wrong in Java is interesting. I guess that with the object oriented mindset there is a better way. But since I have bigger fish to fry, like dealing with the transaction manager in this code, I moved on let the swtich be.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?