Posts Tagged ‘mistake’

On the Subjects of object == null and collection.size() == 0

Tuesday, July 28th, 2009

Let’s just get one thing straight here people, an object that is null does not mean the same thing as a collection/array of length zero. I’m sort of seeing this more and more as I continue my existence on this planet and I say we put a stop to this now. Take this example method declaration (written in Java):

public Collection<searchresult> getSearchResults(String searchTerm);</searchresult>

Straight forward enough, I would hope. This method takes in a searchTerm String, magic happens (ah abstraction), and a Collection of type SearchResult is returned. Now here is the kicker: what happens if the search query resulted in no results? What should be returned? And why?

(more…)

Best Buy Strikes Again with Brilliant Advertising

Tuesday, September 9th, 2008

Ok Best Buy I’m sold. Where can I get a iPhone 3GB? 8GB and 16GB are just way too much for me.

No Final Fantasy 7 Rerelease on the Playstation 3 for 2008-08-16

Saturday, August 16th, 2008

In response to: http://www.cmsimike.com/blog/2008/08/14/final-fantasy-7-release-on-the-playstation-3/

It is with a sad and heavy heart that I report that there doesn’t seem to be a Final Fantasy 7 release for the Playstation 3 today. Not at the Best Buy in Pasadena anyway. Seems like the internet was right once again. And, in a way, I didn’t think it would happen either. I just had some hope. Hope that is now crushed.

If you need me, I will be in the corner sulking and watching Spaced.