Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A general question

 
Mari Wessels
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ppl!
I have completed the assignment (fairly basic but it all works). Now, one of my co-workers says that he reckons I should use more oo (for instance, I don't have lock manager, calls to lock and unlock get handled by my booking class). I'd just like some opinions from ppl who have done assignment and handed it in, is Sun looking for massive oo and lots of classes etc. or just a clearly designed system that follows good coding standerds, is extendible and works?
Mari.
 
Nate Johnson
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you should being designing for OO and not a procedural design ... if you have designed around a few good patterns and have an extendible design then it is probably fine... about the number of classes, it doesnt matter how many you have... for me, I had 28 classes (probably half are interfaces that are required either for patterns or protocols). Just be sure that you follow the requirements in the instructions
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mari,
I agree with what Nate says. You can ask our "Fearless Leader" of this forum (Mark that is) about the evils of not using a lock manager. I don't think anyone is suggesting that you will fail the exam, provided that everything works and you have complied with all the instructions and requirements, but if your solution is more procedural than OO, you may not get as high a score.
Hope this helps,
Michael Morris
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using the LockManager, I think that is the only place that I lost points, because I didn't use this solution. I think it is a really great idea.
I'd also like to suggest that you do go over your code and see if it follows OO design, and if not to rethink how you can implement OO designs in you design.
You will know when it complies 100% too OO designs, it is kind of a big eye opener. You finally say, OH! now I see what all the hubub is about.
If you doubt that you are using OO, then you probably aren't.
Kind of tough to explain, but it is a like a light switch going off.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic