Sunday, February 13, 2011

Was Java the right choice?

As I started to expand from a single ship navigating a 7x7 map to any number of ships navigating a nxm map I started to add more and more Java classes.  While this in and of itself isn't so scary, the thought occurred to me that in order to eventually do the port to the iPhone, all of these java commands and classes will disappear, leaving me with gaping holes all over my program. 

The past couple months of working in Java has given me a better feel for the strengths and weaknesses of this language.  It is strong because of the documentation and huge community.  It also has implemented a lot of functionality that is simple to import and use but therein lies my discomfort.  Java is meant to be a big black box.  You write code to make one black box work with another and I don't like that. 

The decision I have to make now is do I continue to use these boxes, or do I transition to C++ and leave java behind.  That is the way I'm leaning.  I might start a parallel project to see how long it takes me to recreate the functionality I have now but without all the black boxes as my foundation.

No comments:

Post a Comment