
Desertcart purchases this item on your behalf and handles shipping, customs, and support to Iceland.
Modern C++ Design: Generic Programming and Design Patterns Applied eBook : Alexandrescu, Andrei: desertcart.co.uk: Kindle Store Review: A modern development in the use of ISO C++ on how to produce more effective libraries. - 1st Indian subcontinent 2007 edition, 2017 printing. For ISO C++98 standard so not compatible with MS Visual Studio/C++ 6 or 7. The author describes his free multi-threading library, Loki where the textual errors have been removed. This is a modern development of C++ by using templates and macros to improve the speed at runtime. The macro processor is a completely programmable Turing machine so the templates can be executed statically at compile saving the time to do this dynamically at runtime. These methods are only usable with ISO conformant C++ compilers so it is not much use for other languages except perhaps the D language. There is a description of how to implement singleton, command, object factories, Abstract Factory and Visitor design patterns using policies, traits and typelists. The author since about 2010 became a lead developer of the D language. Review: Every C++ programmer needs to read this. - This book is about template metaprogramming. Even if you can't see a use for that technique, merely reading this book will tax your brain to the maximum and expand your programming horizons. I first read this book about a decade ago as some light (ahem) holiday reading and I'll be the first to confess that I didn't 'get it' first time. There were many 'how the ...?' and 'what the ...?' moments. Now a decade and a lot more experience later I've re-read it and finally it makes sense. Andrei taxes the language and the compilers to the maximum in ways that you may not want to do in production code as the number of people that will be able to maintain it will be small, but as an intellectual exercise this book should be up there with Knuth's classics.
| ASIN | B0DHYDR5NJ |
| Accessibility | Learn more |
| Best Sellers Rank | 178 in C++ Programming 1,679 in Software Design & Development 1,695 in Computing & Internet for Professionals |
| Customer reviews | 4.6 4.6 out of 5 stars (159) |
| Edition | 1st |
| Enhanced typesetting | Not Enabled |
| File size | 5.6 MB |
| Format | Print Replica |
| ISBN-13 | 978-0133387605 |
| Language | English |
| Page Flip | Not Enabled |
| Part of series | C++ In-Depth |
| Print length | 348 pages |
| Publication date | 13 Feb. 2001 |
| Publisher | Addison-Wesley Professional |
| Reading age | 18 years and up |
| Word Wise | Not Enabled |
| X-Ray | Not Enabled |
A**N
A modern development in the use of ISO C++ on how to produce more effective libraries.
1st Indian subcontinent 2007 edition, 2017 printing. For ISO C++98 standard so not compatible with MS Visual Studio/C++ 6 or 7. The author describes his free multi-threading library, Loki where the textual errors have been removed. This is a modern development of C++ by using templates and macros to improve the speed at runtime. The macro processor is a completely programmable Turing machine so the templates can be executed statically at compile saving the time to do this dynamically at runtime. These methods are only usable with ISO conformant C++ compilers so it is not much use for other languages except perhaps the D language. There is a description of how to implement singleton, command, object factories, Abstract Factory and Visitor design patterns using policies, traits and typelists. The author since about 2010 became a lead developer of the D language.
A**Y
Every C++ programmer needs to read this.
This book is about template metaprogramming. Even if you can't see a use for that technique, merely reading this book will tax your brain to the maximum and expand your programming horizons. I first read this book about a decade ago as some light (ahem) holiday reading and I'll be the first to confess that I didn't 'get it' first time. There were many 'how the ...?' and 'what the ...?' moments. Now a decade and a lot more experience later I've re-read it and finally it makes sense. Andrei taxes the language and the compilers to the maximum in ways that you may not want to do in production code as the number of people that will be able to maintain it will be small, but as an intellectual exercise this book should be up there with Knuth's classics.
D**C
A quality reading like I haven't had in long time
Up so far, the book is milk&honey smooth to read and a real pleasure. I'm an experienced developer with 10 years of C++ and many things I read in the book confirm my earlier observations and provide some good answers. No redundant paragraphs (which I'd hate); going in-depth on relevant examples; good grammar and precise wording; ... All in all, an actual intellectual wrote this book, no doubt. Very happy with it.
T**K
template metaphysics
This is 300 pages of the hardest of hardcore template metaprogramming you could currently hope to read. As a result, there is a risk you may find more to admire and speculate upon from afar, than to actually use. Various factors will decide this, from the robustness of your compiler, your comfort with far-out template wackiness, and your confidence in debugging and maintaining the result. One thing is not in doubt: C++ metaprogramming is devilishly clever. That's part of its appeal. It's also capable of producing flexible, efficient families of software. Modern C++ Design pushes the boundaries of TMP further than the more specialised matrix domain detailed in Czarnecki and Eisenecker's Generative Programming (a recommended prologue to this book). Here, the aim is implementing entire design patterns. This is a fairly bold claim, as the received wisdom on design patterns is that there isn't a canonical form that can be presented in code. And that still holds true. Instead, the code in Modern C++ Design is metacode built on two big ideas: policies and typelists, which are described in the opening chapters, along with some other useful tools. The hard intellectual work is done here, especially the typelist chapter, although previous exposure to the likes of Generative Programming definitely softens the blow. Policies are what Java programmers know as Dependency Injection, except one level of abstraction up (the relationship between classes and objects in DI is done with templates and classes with policies), and with the template instantiation and specialisation rules of C++ providing an extra layer of flexibility. Typelists are exactly as the name suggests - a list of types, but they exist only at compile time. They're fed to the TMP machinery, which spits out a class hierarchy based on the supplied list. With these tools in place, Andrei Alexandrescu then proceeds to show how they can be used to work some magic. Template versions of the command, visitor, abstract factory and factory method patterns are presented, along with other abstractions like smart pointers (perhaps the most orthodox chapter of the book), tuples, and multiple dispatch. The latter topic provides a connection to James Coplien's Advanced C++, which also discussed multimethods, albeit before templates entered the language. The books share a certain similarity, not so much in content, but in the spirit of stretching the boundaries of C++, and perhaps also in stretching its readability and maintainability. For all the virtuosity on display here (and in Coplien's book), I'm not sure if I'd to use these techniques in my own C++. This may just be down to my own mediocrity as a programmer, but TMP is more than just an idiomatic application of C++, it's really an entirely new language and not a very friendly one. When encoding error messages into class names is a best practice, you know you're pushing the envelope. There's no discussion in this book of where these designs are appropriate - I suspect the most rococo code will end up hidden safely behind frameworks and libraries such as the Loki library described in this book. Some discussion of these bigger picture strategic and cultural issues would have been handy, otherwise, a title like 'Modern C++ Design' suggests that herein lie techniques to sprinkle liberally throughout your code, and I suspect that this is not the case. If you, your co-workers, and any customers that need to look at your code are all template metagenii, this is going to be the most productive 300 pages you ever read. Lesser mortals will find much to wonder at and admire, and a whole new perspective on design patterns, but perhaps less to put into practice.
J**F
Then this book is perfect for you
Do you need to write C++ that no-one else on your team will understand? Do you want to know areas of C++ even the compilers think twice about? Then this book is perfect for you! In all seriousness, the book introduces generic programming and template metaprogramming. The concepts of policy-based design are made clear with relevant examples throughout the book. This is a C++ classic that all should read.
A**U
A great way to discover and understand advanced programming techniques
An excellent book and a IMHO a MUST if you want to get a professional C++ (and not only) developer. It covers lots of practical topics, unveiling advanced techniques and "hidden" features of the C++ programming language. I would suggest to get a good knowledge of C++ first (e.g. read Stroustrup's TCPL bible) or you won't grasp most of the topics. I must admit that reading the book I was all "Wow! You can do that?!?". Sure, not a big deal if you are already a pro, but you won't be reading this review, I suppose. I would suggest this book even if you intend to move to another language as it really helped me thinking about things and understanding many language features and hardcore techniques.
C**G
Well worth buying.
Despite the advanced concepts covered the book is very well written and quite readable, but it does require you to think! I was using concepts in this book in my applications almost immediately. 10/10
K**R
One of the best c++ book. Though its not suitable for begineers but if someone really want to know template, its for them. It require you have some idea on template, but you'll find yourself thinking in templates. Genious template tricks. If read carefully you'll learn design, best c++ practice, and patterns. Just get template idea before reading this book. Andrie is genious.
M**C
Si vous cherchez à savoir ce qu'est la métaprogrammation en C++ ce livre est définitivement fait pour vous. Vous n'aurez besoin pour le lire que de savoir les règles de base concernant les templates en C++ (et être à l'aise avec), et Alexandrescu vous guide vers la compréhension de ses constructions toutes plus étonnantes et remarquables les unes que les autres. C'est une véritable façon de programmer "at compile-time" qu'il offre au programmeur. Ces méthodes ne sont cependant pas très utilisées en environnement de production (utilisation lourde des macros, temps de compilation rallongés, maintenabilité discutable) et on admirera donc plus la beauté des objets que leur éventuelle réelle utilité. C'est en tout cas un moyen étonnant de voir comment les règles d'apparence inoffensives des templates C++ offrent finalement un pouvoir d'expressivité très riche.
A**L
I wanted some books to review my C++ skills and suddenly found out this deal. The price was in such a sweet spot that I couldn’t ignore it. To be honest, I was not expecting much. Anything readable would be acceptable for me. But I was amazed when I got it in my hands. The book was in a great condition for its price. I would love to buy again from them.
A**R
The material presented in this book is mainly for library writers and senior developers who are in charge of software design. Having said that, the material here is unlike you'll find in any other book. Author discusses design and implementation of reusable components like a (very sophisticated) singleton, visitor, generalized functors, smart pointers, etc. I found discussions on smart pointers and singleton to be particularly enlightening. Its amazing how a simple design pattern like singleton could have so many intricacies. But the chapter which blew me away was that of typelists, and what author achieves by using simple metaprogramming constructs (although I would be the first one to admit that a mere mortal software developer like myself would not be using typelists everyday, but its still fun to learn about them). This book is very different from whatever material I had read earlier on C++. Do read this book once you are familiar with topics like templates, common design patterns and smart pointers.
O**E
You really have to read this book! It's much more than "modern C++ design". . . . . . .
Trustpilot
2 weeks ago
2 months ago