Category Archives: Desktop Java

Dependency Injection in both Ruby and Java

Dependency Injection: Vitally Important or Totally Irrelevant? by Jim Weirich at OSCON 2005. This is a great presentation about Dependency of Inversion (and why you might not need it). It nicely compares and contrasts Java and Ruby. It underscores why … Continue reading

Posted in Desktop Java, Rails | Comments Off

Quick tip: How to call parent outer class methods from an inner class

A friend of mine asked me about this and googled: “java inner class parent methods”. Hopefully this will help other Java programmers who run into this same problem. [By the way, I neither condone nor promote these naming conventions. :) … Continue reading

Posted in Desktop Java | 4 Comments

Iterating over OrderedCollections

One of the things you want to do after having an OrderedCollection (aka List or Array) is to iterate over the elements. I’ll look at the languages I’m interested in: Smalltalk, Java, Objective-C, Ruby, Python, and C#. First off, Smalltalk. … Continue reading

Posted in Cocoa, Desktop Java, Programming, Rails | Comments Off

Comparison of OrderedCollections in Smalltalk, Java, Objective-C, Ruby, Python, and C#

In my last post, I compared the collections classes at a high level. Now I’m diving into the one that is most often used, the OrderedCollection. What’s an OrderedCollection? It is the collection class in Smalltalk that supports ordering. Seems … Continue reading

Posted in Cocoa, Desktop Java, Programming, Rails | 2 Comments

Comparison of Collections in Smalltalk, Java, Objective-C, Ruby, Python, and C#

Why look at collection classes? Well, after reading a bit about the language syntax and writing “Hello World”, I think the next thing you should learn about a language/framework is its Collections classes. Its one of the things that makes … Continue reading

Posted in Cocoa, Desktop Java, Programming, Rails | 2 Comments

Java 5 for OS X 10.4 Tiger is here

Apple released Java 5 for OS X today. (Also known confusingly as both “Java 2 SE 5.0 Release 1″ by Apple and as Java 1.5 to Java developers who are used to the 1.x versioning scheme.) It only runs on … Continue reading

Posted in Desktop Java, Eclipse, Mac OS X | 3 Comments

Gauging market demand for different IDEs via SimplyHired.com

I was perusing the popular delicious links and found a new job site: SimplyHired, which bills itself as “building the largest job database on the planet.” Its pretty fast and lets you do searches without any commitment. So, I searched … Continue reading

Posted in Desktop Java, Eclipse | 5 Comments

64 bit JVM, here we come

I’m planning my WWDC trip and I noticed that the preliminary schedules are up now. BTW, if you’re planning to go, I’d book soon, since the early registration is ending soon. One of the sessions caught my eye: “64-bit Java … Continue reading

Posted in Desktop Java, Eclipse, Mac OS X | 3 Comments

The state of Java on Mac OS X

James Duncan Davidson wrote about the state of Java on Mac OS X and I saw a comment that was dead-on: I agree Apple is focused more on server-side Java on the Mac, but keep in mind that there is … Continue reading

Posted in Desktop Java, Eclipse, Mac OS X, RCP | Comments Off

Proposal to reduce repetition with Swing and SWT listeners

DRY – Don’t Repeat Yourself We know that this is good, since it reduces code maintenance, so why do we persist with writing listeners like this: (Note that this is example is written with SWT; Swing looks almost the same.) … Continue reading

Posted in Desktop Java, Programming, Swing, SWT | 2 Comments