From kde-devel Sat Jul 19 11:14:26 2003 From: Guillaume Laurent Date: Sat, 19 Jul 2003 11:14:26 +0000 To: kde-devel Subject: Re: new KDE Development book X-MARC-Message: https://marc.info/?l=kde-devel&m=105861343206778 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 <<