C++ Lambda Story is 100% Complete!
I’m pleased to announce that I’ve finished the work on the latest update for C++ Lambda Story! This makes the book complete now, and I can finally set its status to 100%! Read on to see the latest changes. It got more than 50 new pages!
Last time the book had 95 pages, and with the recent additions, it reached 146!
Some notable changes:
- Most code samples have now a link to an online compiler version in the title,
- Improved description of the syntax of lambdas, showed differences in C++17 and C++20 chapters,
- New sections: how to store lambdas in a container, Lambdas and Asynchronous Execution, recursive lambdas, Exception Specification in Type System,
- New section on variadic generic lambdas in C++14 and C++17 chapters,
- New section on variadic packs in C++11, C++20 chapters,
noexceptin longer examples if possible,
- Lots of smaller changes, improvements, layout across the whole book.
On my website, you can read at least five extensive articles that describe all the essential parts of lambdas:
Have a look if you haven’t read it before:
- Lambdas: From C++11 to C++20, Part 1
- Lambdas: From C++11 to C++20, Part 2
- 5 Advantages of C++ Lambda Expressions and How They Make Your Code Better
- C++ Lambdas, Threads, std::async and Parallel Algorithms
- C++ Tricks: IIFE for Complex Variable Initialization
I packed my knowledge about lambdas into a beautiful ebook, with lots of examples and additional descriptions. And just as with my book about C++17, I made it available at Leanpub. The platform makes it easy for me to publish new updates, and everyone who has the book can immediately access the latest changes (at no charge). Also, the platform allows you not only to read it as PDF but also Epub, Mobi or Online.
Here’s the list of the things you can learn:
- C++98/03 - What was the motivation for the new C++ feature?
- C++11 - Early days: You’ll learn about all the essential aspects of lambdas and several tricks you might apply. This is the longest chapter as we need to cover a lot of topics.
- C++14 - Updates: See how to use generic lambdas and captures with an initialiser.
- C++17 - More improvements, especially by handling
thispointer and allowing
constexpr. You’ll also learn how to leverage the overloaded pattern.
- C++20 - In this chapter, you’ll see all of the new features adopted for C++20 like template lambdas and how to use them with concepts and
While the initial version of the book was relatively short, the extended version (additional 100 pages, and especially those last 50!) was a result of the feedback and encouragement I got from JFT (John Taylor). John spent a lot of time on finding even little things that could be improved.
What’s more, I got a lot of feedback from the readers of my blog and the previous versions of the book.
Thank you all!
This version is also available as a Kindle book, at all stores on Amazon!
For example, here’s the US version:
I appreciate your feedback and support! The book has now almost 1000 readers (and only one refund)! That’s not too bad I think :)
Add your feedback/review here:
You can use this comment site:
Or just write a direct email to me: bartlomiej DOT filipek AT bfilipek DOT com
Some questions and answers if you wonder about getting the book.
I’m a beginner in C++? Is that book for me?
The book assumes that you have a basic knowledge of C++. I suggest taking some elementary course first.
I’m an expert, and I know everything about C++? Is that book for me?
Yeah… you know all about C++? Is this possible? :)
Anyway, in your case, the book will give you a good refresher and even will show you some new tricks.
I’m not a beginner nor an expert…?
Perfect! So the book will show you lots of examples that will expand your knowledge and also remind you things that you may already know.
Additionally, throughout the book, you’ll see other techniques and features related to modern C++ like,
constexpr, exceptions, fold expressions,
std::thread, perfect forwarding using callable objects and many more.
Is this a historical book with lots of boring descriptions?
The flow of the book focuses on the background behind lambda expression and its evolution. But it’s meant to teach you practical things. You’ll learn the lambdas step by step, understanding new capabilities that lambdas got with each C++ revision.
Will I get free updates?
Yes! While the book is 100% ready, I might add some more updates in the future, mainly bug fixes.
That’s why it’s best to by the book as early as possible; for example, the earliest version of the book was completely free.
The content looks like copied directly from the blog, so what’s the point to buy it?
The very early version of the book was adapted directly from the blog… but then most of the content was rewritten and heavily updated. Now, you get at least 4x of what’s available on the blog, not to mention the better quality and a nice looking pdf/ebook (there’s no need to click and jump between separate blog articles).
On the Internet there’s lot’s of free content about lambdas, so why buy the book?
Sure! Even on my blog, you can find lots of articles about lambda expression. The C++ draft is also free so that you can read the specification on your own. Or have an additional explanation from great cppreference pages.
But the book will save you lots of your precious time looking for those quality content, extra examples, extended descriptions. What’s more, by having a nice learning flow, you can understand this powerful C++ feature much faster at a super low price.
Is there a refund option?
Yes! if you buy the Book through Leanpub, then you have a 45-day guarantee. (Not applicable with Kindle direct Publishing though).
You can also download a preview with almost 60 pages.
Did I miss something?
If you have more questions, then please ask directly and write at bartlomiej DOT filipek AT bfilipek.com.
How to Get the Book and Join 1000 of Readers?
There are three ways:
Buy directly at Leanpub: C++ Lambda Story @Leanpub This platform also gives you a 45-day refund period!
Buy at Amazon, Kindle version: C++ Lambda Story, Kindle
Buy together with my C++17 Book Buy C++17 in Detail AND C++ Lambda Story Together
Support me on Patreon Become a Patron - each Patron gets the book for free.
You can also download a free sample which contains almost 60 pages!
Let’s start a lambda week!
To celebrate this new version, I wanted to create something unique. How about a week with lambda?
Starting tomorrow, till Friday, on this blog on through the mailing list you’ll see a short article which explores a selected lambda topic. Here’s the plan:
- The syntax changes (Tuesday 4th August)
- Capturing things (Wednesday 5th August)
- Going generic (Thursday 6th August)
- Tricks (Friday 5th August)
Stay tuned and lookout for the next article tomorrow :)