API Design for C++ by Martin Ry

API Design for C++



Download eBook




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


Last, he talks about how the Coherence team built Java-like memory management for C++ and how they made Coherence 3.4 work on many of the operating systems running on Intel-like processors. (Click here if you can't see the video.) . Then I had MFC, it was better, but being just a wrapper for the C Win32 API, it wasn't modern C++ or API design. Another example: Contrary to the default belief of some I've encountered (and then corrected), Gavin King has never programmed in C++. You are creating an API that developers will interact with. Worse, recent APIs implemented in modern programming languages make the same mistakes as their 20-year-old counterparts written in C. This is a rather accessible look at the . Asynchronous APIs are trickier to design than synchronous ones. You can't simply return the result of the operation, since it isn't ready yet. 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. Multi-threading and event handling are built into the C++ API. There seems to be something elusive about API design that, despite years of progress, we have yet to master. Use http://boost.org/ 3) While you're at it - look in Alexandrescu's 'Modern C++ Design' how to write good C++ strings. With this book, you will learn how to design a good API for large-scale long-term projects. Object based, but hardly useable and hardly C++, just IDL and a vtable. With extensive C++ code to illustrate each concept, API Design for C++ covers all of the strategies of world-class API development.