Java

Is quite cool after all. 

I had an epiphany about a week ago because I wanted to use pointers in Java, or at least a hash from Perl.  Well, luckily the JavaCollection library has things like HashMap, which does the same thing.  Now it looks like I’ll have to sort it with an ArrayList. 

The main purpose for using these “pointers” is to allow the code to handle dynamic situations, where the results of some operations aren’t know in advanced (like with just plugging in an enum, instead).

People keep saying Java is an OO language only, but you can use static methods and vars, and then it’s just like using a code module in VB or Perl, conceptually.  It’s the lack of pointers that is limiting, that’s _why_ you end up using objects instead.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s