I’m happy to announce the print/paperback version of C++ Lambda Story! After more than a year of updates and smaller changes, the whole project is completed! You can now purchase the book in lots of different formats. See details of this major update and also take part in a giveaway and get the book for free :)
Last time the book had 149 pages, and with this recent update, it’s now 158.
- Index at the back of the book.
- Nice diagrams for the lambda syntax.
- An extended chapter about top lambda advantages.
- New section about refactoring with IIFE.
- A lot of layout changes and fixes for better print quality.
- Code samples have their separate repository - see at github.com/fenbf/cpplambdastory-code.
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 to read it as PDF and Epub, Mobi or Online.
As the final step, I made the book available in Print on Amazon.
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
Print Version at Amazon
I completed the ebook version in Nov 2020 and spent the recent weeks adjusting that for the print version.
Amazon KDP makes it easy to publish this book in Print on Demand form. The book has 163 pages (print version), and Amazon needs around 3$ to print it and then it takes 40% of the revenue. The rest 60% is for me, and it’s almost the same as my royalty portion from the minimal price on Leanpub.
Here’s a work-in-progress version from January :) On top, there’s the final front cover.
The book is printed in Black&White. Here’s a sample screen:
You can buy the book here:
- Amazon.com: https://www.amazon.com/dp/B08VLM1R76
- Amazon.co.uk: https://www.amazon.co.uk/dp/B08VLM1R76
- Amazon.de: https://www.amazon.de/dp/B08VLM1R76
- Amazon.fr https://www.amazon.fr/dp/B08VLM1R76
- Amazon.ca https://www.amazon.ca/dp/B08VLM1R76
Full Color Version
Additionally, I also created a full-colour version with a nice syntax colouring and images. The price is much higher than the black&white version (33.99$) though. It’s because of the Amazon printing cost 13$ vs 3$. But my royalty portion is the same in both versions.
Here’s a link if you’re interested:
- @Amazon.com https://www.amazon.com/dp/B08VM82YF3
I appreciate your feedback and support! The book has now almost 1400 readers (and only four refunds)! That’s not too bad I think :)
One refund comment even mentioned:
“I wanted a print version.”
So here it is :)
Add your feedback/review here:
You can use this comment site:
There are also several reviews:
- at Adam Sawicki blog: https://asawicki.info/news_1739_book_review_c_lambda_story
- at Javier’s blog: Boutique C++ | Se Habla C++
Or write a direct email to me: bartlomiej DOT filipek AT bfilipek DOT com
How to Get the Book and Join Almost 1400 Readers?
There are several options:
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 - every Patron gets free Ebook version, and on the highest tier I’ll also send you a physical copy.
You can also download a free sample which contains almost 60 pages (available from the Leanpub page)!
I have three copies of the Print Version of Lambda Story (Black&white print, assuming Amazon.com can reach your destination), if you want one, then please add a comment below this article and answer one of following questions:
- If you’re a beginner user of lambdas: Where do you plan to use them?
- If you already have some experience: How do you use lambda? What’s your most common use case?
I’ll randomly pick three winners and contact them. Make sure I can see your email address from your GitHub profile or have some other way to contact you.
(I’m using utteranc.es commenting system which is based on GitHub issues (see a separate repo with discussion for cppstories.com), so you need to have a Github account and authorise this small and safe bot, read more here.
The giveaway is valid till next Sunday 14th Feb (So it’s ended now…)