This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is oop ok in a non-oop project?

 
pete stein
Bartender
Posts: 1561
  • 0
  • 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
Pie
Posts: 1367
18
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic