Good Books/Tutorials

I have a firm grasp on objects, abstract classes, and interface, as well as inheritance and encapsulation. I understand the concepts and whatnot.

The problem is that when I think about writing a program using these concpets I have difficulties. Not because I don't know how to implement them, but because I'm unsure how to relate interfaces and abstract classes to the project.

In the examples that I've read, they use Animals, Shapes, and whatnot. The desings seem intuitive, but what about real programs...

Can anyone give me a good tutorial or book that would help me?

Thank You

[617 byte] By [java4life87a] at [2007-11-26 13:56:26]
# 1

The best way to get a good tutorial is to post a brief summary (one paragraph) of a project that you would like to work on. Include a question with the summary asking for recommendations for a particular area of design. If you get something valuable, then go through and try to figure out how to combine what you already know about the concepts and what feedback you received from your post. Then you should start to work on a prototype and slowly learn about why this is done this way and why this is done that way and the various choices and alternatives you have for various areas. There are typically many viable alternatives to choose from.

Keep in mind that it takes about approximately two years to learn properly object-oriented design. Less or more depending about your drive and commitment to arduous study.

GhostRadioTwoa at 2007-7-8 1:35:57 > top of Java-index,Java Essentials,Java Programming...
# 2

> The best way to get a good tutorial is to post a

> brief summary (one paragraph) of a project that you

> would like to work on. Include a question with the

> summary asking for recommendations for a particular

> area of design. If you get something valuable, then

> go through and try to figure out how to combine what

> you already know about the concepts and what feedback

> you received from your post. Then you should start to

> work on a prototype and slowly learn about why this

> is done this way and why this is done that way and

> the various choices and alternatives you have for

> various areas. There are typically many viable

> alternatives to choose from.

Whilst I see the good intention in the quoted post, the phrase "easier for a camel to pass through the eye of a needle" comes to my mind. There are tutorials out there for specific APIs, like the Pet Shop example, but I think it would be great if there where a book that started with the assumption that the reader was not a beginner and then went on to develop an application: say a scaled down Word or Excel. The purpose of the book would be to teach some practical OOD. Now is there such a book out there?

DrLaszloJamfa at 2007-7-8 1:35:57 > top of Java-index,Java Essentials,Java Programming...
# 3
I think a good tutorial can be created/written right here in is the forum, in this thread. The starting point would be the brief summary (one paragraph) of a project that somone would like to work on.
GhostRadioTwoa at 2007-7-8 1:35:57 > top of Java-index,Java Essentials,Java Programming...
# 4

> I have a firm grasp on objects, abstract classes, and

> interface, as well as inheritance and encapsulation.

> I understand the concepts and whatnot.

>

> The problem is that when I think about writing a

> program using these concpets I have difficulties. Not

> because I don't know how to implement them, but

> because I'm unsure how to relate interfaces and

> abstract classes to the project.

>

> In the examples that I've read, they use Animals,

> Shapes, and whatnot. The desings seem intuitive, but

> what about real programs...

>

> Can anyone give me a good tutorial or book that would

> help me?

>

> Thank You

I guess its the same with all the developers at some stage. Only practice makes the man perfect. I would suggest reading "Refactoring" by Martin Fowler. If you want to go further Enterprise Application Patterns by Martin Fawler is a good one as well. Another good one I came across was Code Complete by Steve Mcconnell 2nd edition.

kilyasa at 2007-7-8 1:35:57 > top of Java-index,Java Essentials,Java Programming...
# 5

> I have a firm grasp on objects, abstract classes, and

> interface, as well as inheritance and encapsulation.

> I understand the concepts and whatnot.

I used to think the same way before comming to this forum. But I am still learning these concepts.

Probably you would be in the same phase.

Search on this forum, you would be finding a lots of beautiful matters.

For example see this thread:

http://forum.java.sun.com/thread.jspa?threadID=789900

It is a very basic example, but you could get marvelous things if you search.

> The problem is that when I think about writing a

> program using these concpets I have difficulties. Not

> because I don't know how to implement them, but

> because I'm unsure how to relate interfaces and

> abstract classes to the project.

basically, the concept behind interfaces and abstract classes is generalization.

They make up a contract, and any class could implement that contract.

I think you should read about "Design patterns", these are commonly followed programming techniques for specific scenarios, you have to just identify your scenario.

"Java Design Patterns" by James W Cooper. is a good book for that.

> In the examples that I've read, they use Animals,

> Shapes, and whatnot. The desings seem intuitive, but

> what about real programs...

No body is going to code for you! You have to code by your own (that's what for you get paid). You can request for help, but don't rely on others for getting your problem solved.

> Can anyone give me a good tutorial or book that would

> help me?

Read "Programmer's Guide to Java?Certification" by khalid A. Mughal" Really nice book for clearing concepts.

Don't read this book-> feel it, work with it.

Once I read this whole book in one day (can you believe it). But I didn't got anything out of it. I thaught it is a worthless book.

But then one of my friend told said the same sentence to me that I mentioned above, Now I am not reading it, I am feeling it. Its been 2 weeks, and I havn't even completed half of the book.

Well I think now I am booring you all. So I shut up my mouth.

> Thank You

Your welcome dear!

Sumit_Tyagia at 2007-7-8 1:35:57 > top of Java-index,Java Essentials,Java Programming...