Java Multimedia That Works: Q&A With Ian McFarland
Hits: 112
Description: McFarland: Because we already talked about the George Coates Performance Works stuff, I'll talk here about the chat server I've been working on. First of all, a firmly object-oriented language like Java has all sorts of facilities for making software robust, when used correctly. For example, when a user tries to enter a room, we can just call the Room.addUser method without worrying if there's space for the user, as we can have the room be smart enough to throw an exception if the room is full. Then we know we have to catch the exception wherever we wish to call Room.addUser, so we don't get any surprises at runtime.