[Development] Upgrading the sources to C++11 keywords (Q_NULLPTR, etc.)

Marc Mutz marc.mutz at kdab.com
Tue Feb 10 11:35:43 CET 2015


On Tuesday 10 February 2015 11:01:50 Smith Martin wrote:
> >So, no, I don't think we should discuss everthing ever written about C++ 
> >efficiency in the Qt docs. But we need to point it out to each other in
> >code  reviews and become better at not writing sloppy code.
> 
> The suggestion was not to discuss everything about C++ efficiency but to
> discuss the traps for young players using a QMap when a sorted QVector
> would be better.

I'm not saying that the docs should not contain some information. I'm saying 
that this is not about our users, it's about us, the developers.

> >IOW: We need to start thinking about our algorithms and data structures 
> >again[1], but this time in the new world of caches and multithreading
> >where  the only fast data structure is an array.[2]
> 
> But if this is a new world, then the CS course and reference books you
> suggested might not say much about it yet.

http://www.akkadia.org/drepper/cpumemory.pdf Note the publication date.

> I'll bet most of our customers are not the C++ equivalents of Bruce Lee you
> imagine them to be. Some of them might be coming to C++ via trying to
> create something in QML.

Again, I'm not talking to or about our users, I'm talking to and about us, the 
developers.

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions



More information about the Development mailing list