Posts Tagged ‘code’

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…)

Why Use Free and Open Source Software?

Thursday, April 9th, 2009

This entry was written with the developer in mind. Though none of this information is developer-specific, I don’t know of any non-developers who like to go through source code. I do look forward to the day where everyone reads code for the love of it.

Why use free open source software? There are many reasons why you should use it, a lot of which have been covered all over the internet ad nauseum, for instance Why Open Source Software by David A. Wheeler. I am sure they are all great references as to why anyone should consider free and open source software (FOSS) as a software solution. I am here to talk about why I think you should use FOSS and for me, one of the most important reasons to use FOSS is to give you the ability to figure out why things are going wrong on your computer.

(more…)

Learn to Code with Google Code University

Wednesday, March 19th, 2008

One thing that I have yet to commented much on, at least in this blog, is my love of education. If I had the resources available to me right now, I would have already begun my Masters in Computer Science coursework, then promptly start my Ph.D. However at this point in my life that cannot be [easily] done. How ever, thanks to free courses online, I never feel like I am missing out on further educating myself.

(more…)

Celldoku – The J2ME Sudoku Experience

Monday, March 10th, 2008

Today’s post is going to be about my independent senior project at Loyola Marymount, Celldoku. I graduated in May of 2006, however only got around to uploading it into Sourcefoge a few weeks ago. I did plan on continuing development on it, however that plan was put on the back burner when I decided that I would go the iPhone route when ever/if-ever they release a 3G version of the phone. Those plans went back onto the front burner when the rumor mill on the interwebs said that Sun is planning on porting a Java runtime environment to the iPhone (thanks to the recent announcement of the SDK). However I may end up recreating the project as a native iPhone application. We will see.

(more…)