The most important API design principle
summary
Claims that APIs should expose Non owning interface views not owning containers, demonstrates this with QStringView and by changing QRegion to be QRegion iterable so callers iterate without forcing allocations. Implementation detail: keep inline small-storage, return begin/end into that or a vector. Result: library binary loses 3 kilobytes saved of text and code removes special-case allocation logic, showing the idea works and enables swapping internal containers.
AI-written summary · about
chapters (4)
related talks
49mQt Quick Best Practices and Design Patterns
53mQt Quick Best Practices and Design Patterns
30mThe building blocks of QML, and how to use it with C++
01h 22mArranging Items, QML Components and Debugging QML (part 4/4)
01h 09mTaming the Filter View in C++ Programming
39mACTIVITIES AND FRAGMENTS ARE NOT MVX VIEWS
24mDesigning UI Architecture for Embedded Devices with Qt and QML
24mThe Roadmap: Next Generation Qt (part 2/2)
