POV-Ray : Newsgroups : povray.off-topic : Teach yourself C++ in 21 days : Re: Teach yourself C++ in 21 days Server Time
29 Jul 2024 04:23:09 EDT (-0400)
  Re: Teach yourself C++ in 21 days  
From: Orchid Win7 v1
Date: 16 Apr 2012 15:10:19
Message: <4f8c6e9b$1@news.povray.org>
On 14/04/2012 06:41 PM, Warp wrote:
> Orchid Win7 v1<voi### [at] devnull>  wrote:
>> Sure, maybe you could learn BBC BASIC in 21 days. But C++? I doubt it.
>
>    It depends on the depth of your C++ understanding that you want to
> achieve.

>    OTOH, you can learn to make simple (and safe, although not necessarily
> efficient) programs in that time, with the proper teacher.

Well, maybe. My initial impressions of this book are not great.

>> Riiiight. So, let's see, on day #6 you start writing and using classes -
>> a fairly advanced topic.
>
>    Not really. Classes are the most basic element of OO programming (and
> also the most intuitive part), so IMO they should be taught on the *first*
> day. (This does not include inheritance and dynamic binding, though. That
> can wait.)

I guess it depends. You can start at the top, explaining OO theory and 
then working down to how you write code with it. Or you can start with 
writing simple procedural code, working up to using functions, and then 
using classes and other OO features. Either way would be logical. The 
way this book seems to do everything is to just jumble it all up in 
fairly random order.

>    Inheritance is much less useful than people thought 20 years ago
> (it still has its uses in *some* situations, but much less than predicted).

My university lecturer asserted that "inheritance is overused, and 
collaboration is underused".


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.