Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is oop ok in a non-oop project?

 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been working on Java-4a and 4b (Say). I have gotten both to work, but the code is neither simple nor clear.

My question: Would it be ok to use OOP constructs in these non-oop projects (especially Java-4b)? I think encapsulation would help make the code more understandable.

Thanks in advance!

Pete
 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think we are supposed to arrive at a solution that does not need OOP. That said, if you have working code that uses OOP and can't figure out where to go with it, submit what you have and the nitpicks will guide you in the right direction.

Most likely you will end up removing the OOP for 4b, though (I think).

Okay, somebody else say something now before I ramble on indefinitely!

[edited for spelling]
[ March 11, 2007: Message edited by: Katrina Owen ]
 
Pauline McNamara
Sheriff
Posts: 4012
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramble on Katrina, your advice is right on and most welcome!

Pete, as Katrina said, you aren't really expected to get into "real" OO stuff until you reach the next section of the Cattle Drive. For the first assignments it's kind of overkill.

Have fun with Say!
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pauline McNamara:
Have fun with Say!


That almost sounds sarcastic? Nah.

Anyway, thanks for the advice. I will continue on.

/Pete
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic