[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: new KDE Development book
From:       Guillaume Laurent <glaurent () telegraph-road ! org>
Date:       2003-07-19 11:14:26
[Download RAW message or body]

On Saturday 19 July 2003 09:39, Ralf Nolden wrote:

> You can easily learn C++ while you get into KDE/Qt development.

I think you've been writing too much C++, and you don't realize anymore how 
hard a language it is.

Your C++ tutorial part will have to explain things like

- differences between char*; std::string; QString

- why in some cases you can safely do 'class Foo a, b; a = b' and in some 
cases you can't.

- why in some cases you can reasonably declare 'myfunc(Foo a)' because Foo 
implements COW, and in some cases this will be very time-consuming because 
you'll be calling an expensive copy ctor so instead you should define 
'myfunc(const Foo& a)'

etc...

Qt actually implements a lot of fairly advanced C++ concepts, and does it so 
well that you don't realize it, because TT has understood what few C++ 
programmer ever get : how to make good C++ APIs, and how to hide the 
complexity from the user. So you can always just give some C++ basics to the 
reader and then hand him Qt in a nice little package, but when the guy will 
get into writing his own classes, chances are there will be some serious 
self-foot shooting.

-- 
						Guillaume.
						http://www.telegraph-road.org
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic