From kdevelop-devel Tue Apr 25 13:20:13 2006 From: Hamish Rodda Date: Tue, 25 Apr 2006 13:20:13 +0000 To: kdevelop-devel Subject: Re: Google Summer of Code 2006 Project proposals Message-Id: <200604252320.15628.rodda () kde ! org> X-MARC-Message: https://marc.info/?l=kdevelop-devel&m=114597142916869 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart3161927.RKYbnlsjcW" --nextPart3161927.RKYbnlsjcW Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 25 April 2006 22:35, Kuba Ober wrote: > > > > I don't think that there's anything lacking in the C++ library > > > > documentation nor implementation departments, so please tell me how > > > > moving from a container library that's part of the language standar= d, > > > > and is built upon in numerous boost extensions, to a container > > > > library that comes with Qt is good? > > > > > > A few reasons in this case: > > > 1) The use of template classes made the code difficult to read > > > 2) The use of iterators (in particular, the frequent copying and > > > assignment of iterators) made it difficult to follow the program's > > > logic 3) I was unable to locate bugs that had gone unfixed for some > > > time with the old code > > Rephrasing: you're inexperienced. "Difficult to read", "difficult to > follow", "unable to locate bugs": it's all true in your case, and that's > about it. I don't mean "inexperienced" in a derogatory sense. It's merely > an observation. There are people who read template code just fine, and th= ey > are no better/worse than you, of course, so don't get me wrong. It's just > that they have learnt the "template cleverness". You don't think that any code can be difficult to follow? Even without=20 templates this can be true, surely if you are experienced as you say then y= ou=20 know this. Templates don't concern me. I just think Qt classes are superior, from the= Qt=20 docs: "The container classes are implicitly shared, they are reentrant, and= =20 they are optimized for speed, low memory consumption, and minimal inline co= de=20 expansion, resulting in smaller executables." The port is even a smaller code base. A crude estimate: rpp> cat *.h *.cpp | wc 2870 8822 80245 rpp2> cat *.h *.cpp | wc 2751 7478 63391 I'm yet to run benchmarks but I will at some point. Ironically, most of the work we're doing is so that we can support code=20 completion for templates :) Cheers, Hamish. --nextPart3161927.RKYbnlsjcW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBETiIPH8BtnSmIlUYRAtJgAKCECjrI7yF471bjN2J1BOZe+9L4HgCdGyLb lXuxi0CuYng0fUr3qjf0XJ4= =iHS3 -----END PGP SIGNATURE----- --nextPart3161927.RKYbnlsjcW-- _______________________________________________ KDevelop-devel mailing list KDevelop-devel@barney.cs.uni-potsdam.de http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel