AlphaMixr Reviewed - Demo Downloads Hit 10,000
AlphaMixr for T-Mobile G1/Android Released
Fun With Generics
I was trying to declare a array variable this morning:
Map<String, String>[] mapArray = new Map<String, String>[2];
However, the compiler reports an error with the above statement: “Cannot create a generic array of Map<String,String>”. I had to replace the statement with:
@SuppressWarnings("unchecked") ... Map<String, String>[] mapArray = (Map<String, String>[]) new Map[2];
!?! If one of the goals of generics was to eliminate casts, it certainly failed here.
Bad Smells
We were working on some refactored code today that wasn’t refactored properly. The tests had been changed to make the refactored code pass. My colleague said that I should write-up my “profound” comment on the situation:
If you’re performing a refactoring and you find yourself changing asserts in existing unit tests, something should smell bad. You’ve probably done something more than refactor the code.
T-Mobile G1/Google Android
Ubiquitous Ubiquity
If you haven’t got it yet, go get the Ubiquity plugin for Firefox. This is one of the coolest things I’ve seen in a long time. I think applications should have this kind of feature. Instead of navigating menus, etc. have a shortcut that takes you where you want to go or helps you do a task.