@jwenting: I don't believe venuwin said it was at *his* company, so what you refer to as his 'ignorance' has no bearing on the project he was talking about. Besides, if it troubles you so, why not provide some examples? Might be a tad more helpful
@venuwin: Some tell-tale proceduralisms would be lots of 'instanceof' checks in the code (e.g. the switch statements santoro63 talks about). This indicates the developer is not taking advantage of Java's OO features such as inheritance, which would allow the JVM to invoke ('dispatch') the appropriate operations on objects automatically, as opposed to having the code explicitly check for object types and calling. E.g.:
Code:
// procedural (not so pretty)
Animal animal = new Mouse();
if (animal instanceof Mouse) {
System.out.println("cheese");
} else if (animal instanceof Cat) {
System.out.println("catnip");
}
As opposed to:
Code:
class Animal {
public abstract String getFood();
}
class Mouse extends Animal {
@Override
public void getFood() { System.out.println("cheese"); }
}
class Cat extends Animal {
@Override
public void getFood() { System.out.println("catnip"); }
}
// now the JVM can automatically decide what
// method to invoke
Animal animal = new Cat();
animal.getFood();
Google for OO, instanceof, dispatch, etc. Hope this helps!
Toedeloe,
Erik