API Design for C++ by Martin Ry

API Design for C++



Download eBook




API Design for C++ Martin Ry ebook
Publisher: Morgan Kaufmann
Format: pdf
ISBN: 0123850037, 9780123850034
Page: 446


Since C++ is extensible, one could actually create their own std::basic_streambuf derived class which works with file descriptors, and attach it to an std::ostream, which can then be used with anything that works with a stream for output. Coming from an c++/C# background, this is more my style of development. << TiltEffect for Windows 8 Metro XAML | Creating a DirectX XAML control using C++/CX >> So over time, I have built myself a couple of mantras when I work on an API, and it generally is about how 'tight' or 'loose' you design your API. Based on hearsay, Qt is quite complicated and hackish inside, but what it presents to the outside is pure delight in terms of API design. Somewhat later I had the pleasant experience of writing C++ code with Qt. Log in · Home · Archive · Contact · Feed Subscribe; Filter by APML. Sue is designing a JavaScript library, Magician.js. With that in mind, she could design her API like so: Tags: api, api-design, javascript . Our eventual goal is to get to a point where the API is ready for proposal to the C++ committee as a reference implementation. A very tight API has very few public methods and extensibility points, where a very loose API exposes everything and allows everything to be extended. In this post we look at the details of the design document which outlines this new API.