Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Which C++ books are recommended?

2 views
Skip to first unread message

Immortal Nephi

unread,
Dec 31, 2009, 3:50:12 PM12/31/09
to
I have been through study by reading How to Program C++ by Deitel 6th
Edition. I believe that it has very little information to explain
design patterns.
I want to expand more knowledge of better understanding how Design
Patterns is used with Object-Oriented Programming. I don’t find any
good books.
ATM example teaches how to use UML 2.0 and write several base
classes, one inheritance and polymorphism. ATM is the base class.
Screen, Keypads, Cash Withdrawal, and Deposit Slot are base classes
and they have compositions to be placed in ATM’s base class.
Think of creating more subclasses. The screen’s base class is good
example. I might want to build more subclasses and add more member
functions and data members to all subclasses. They are private
subclasses inside screen’s base class.
We discussed gigantic class post earlier. Screen’s base class might
become gigantic class. I am able to extract gigantic class into
subclasses by using refactoring.
I want to learn how to use Design Patterns and Refactoring. Here are
two books below. I am not sure if they are the right books. If not,
please make the list which books do you recommend me to study more.

Object-Oriented Computation in C++ and Java: A Practical Guide to
Design Patterns for Object-Oriented Computing by Conrad Weisert

Refactoring: Ruby Edition (Hardcover) by Jay Fields

nick

unread,
Jan 1, 2010, 4:19:30 PM1/1/10
to
On Dec 31 2009, 3:50 pm, Immortal Nephi <Immortal_Ne...@hotmail.com>
wrote:

The book "Design Patterns Explained: A New Perspective on Object-
Oriented Design" gives a good overview of what design patterns are,
explains in detail some common design patterns, talks about UML class
and interaction diagrams, etc. The code examples are in Java but they
translate to C++ easily. It's a good read for someone just getting
familiar with design patterns.

Puppet_Sock

unread,
Jan 4, 2010, 12:13:35 AM1/4/10
to
On Dec 31 2009, 12:50 pm, Immortal Nephi <Immortal_Ne...@hotmail.com>
wrote:
[snip]

>         I want to expand more knowledge of better understanding how Design
> Patterns is used with Object-Oriented Programming.  I don’t find any
> good books.
[snip]

Look here. Many book reviews.

http://accu.org/

Socks

Nick Keighley

unread,
Jan 4, 2010, 5:54:39 AM1/4/10
to
On 31 Dec 2009, 20:50, Immortal Nephi <Immortal_Ne...@hotmail.com>
wrote:

>         I have been through study by reading How to Program C++ by Deitel 6th
> Edition.  I believe that it has very little information to explain
> design patterns.
>         I want to expand more knowledge of better understanding how Design
> Patterns is used with Object-Oriented Programming.  I don’t find any
> good books.
>         ATM example teaches how to use UML 2.0 and write several base
> classes, one inheritance and polymorphism.  ATM is the base class.
> Screen, Keypads, Cash Withdrawal, and Deposit Slot are base classes
> and they have compositions to be placed in ATM’s base class.
>
>         Think of creating more subclasses.  The screen’s base class is good
> example.  I might want to build more subclasses and add more member
> functions and data members to all subclasses.  

why are you adding more member functions/data to the screen base
class?


> They are private
> subclasses inside screen’s base class.

that sounds odd. Why would am embedded class be a derived class?

>         We discussed gigantic class post earlier.  Screen’s base class might
> become gigantic class.

only if you let it. How many different things can a screen in an ATM
do? If it adds something really weird like 3D or smell I'd say it was
time to reorganise your design.

0 new messages