Randomizing lines from a file, a tool in VC++ 2017
Is C++ well suited for writing fast small utilities/tools?Let’s see:For my recent giveaway I needed a tool that would take an input file - CSV with data and then draw a few winners from all of the...
View ArticleC++17 in details: Attributes
“C++ Attributes… what?”There were almost 40% votes like that in my recent Twitter survey. Maybe It would be good to introduce that little-known feature? There’s even a good occasion, as in C++17 we’ll...
View ArticleReview: The Complete Software Developer’s Career Guide
With around 230 positive reviews (85% of five stars) (4.7 on the average), John Sonmez made a huge success when he published his first book “Soft Skills”. 2.5 years later we get another book. Can the...
View ArticleC++17 in details: Code Simplification
With each C++ standard, we aim for simpler, cleaner and more expressive code. C++17 offers several "big" language features that should make our code nicer. Let’s have a look.IntroThe SeriesDocuments...
View ArticleBlog summary for the first half of 2017
See my blog stats and thoughts for the first half of the year.The StoryStatsTop 5 popular postsSummaryThe StoryKeeping things short I’d like to point out a few major things that happened in the first...
View ArticleC++17 in details: Filesystem
Although C++ is an old programming language, its Standard Library misses a few basic things. Features that Java or .NET had for years were/are not available in STL. With C++17 there’s a nice...
View ArticleC++17 in details: Parallel Algorithms
Writing multithreaded code is hard. You’d like to utilize all of the machine’s processing power, keeping code simple and avoid data races at the same time. Let’s see how C++17 can make writing parallel...
View ArticleC++17 STL Cookbook Book Review
C++17 is on the way, and I’m glad to see more books that stay on the bleeding edge of C++ adaptation. Today I’d like to present a book that focuses on the Standard Library.Is this another great book?...
View ArticleC++17 in details: Standard Library Utilities
The new C++ standard brings many useful additions to the Standard Library. So far we’ve discussed bigger features like the filesystem or parallel algorithms. Today, I want to focus on smaller, but also...
View ArticleLearning from bugs and PVS-Studio Team
Real life:Fixed 1 out of 99 bugs in a project. 117 to go…Have you experienced something similar? Although it’s impossible to write bug-free code, there are tools and practices to lower the rate of...
View ArticleC++17 in detail: Summary & Bonus
The last post in the series about C++17 (STL utils) was posted on 4th September. It happened to be just two days before the final C++17 spec was approved! :)C++17 is formally approved 2017-09-06 by...
View ArticleThe Expressive C++17 Coding Challenge
Let’s put C++17 in practice!One of the good ways to do it is to take part in a coding challenge. So together with Jonathan Boccara from Fluent C++ we invite you to participate in “The Expressive C++17...
View ArticleCpp Con 2017 Notes
Have you been at Cpp Con this year?I haven’t, but still I plan to watch some good C++ talks. Can you help me a bit and add your notes?Last update: 9th October 2017IntroTrip ReportsTalksBjarne...
View ArticleHow not_null can improve your code?
One of the key points of modern C++, as I observe, is to be expressive and use proper types. For example, regarding null pointers, rather than just writing a comment:voidFoo(int* pInt);// pInt cannot...
View ArticleExpressive C++ Coding Challenge Results
Three weeks ago with Jonathan from Fluent C++, we announced a coding challenge: link here.Let’s meet the winner and discuss some of the best solutions(Our choice is quite surprising! See why :))The...
View ArticleBetter code understanding with Sourcetrail
Do you write code 100% of your job time?I guess the answer is no. We can skip all the management part, meetings, coffee, youtube, cats… etc… but still, even if you’re next to your keyboard it’s not all...
View ArticleEnforcing code contracts with [[nodiscard]]
For my article series about C++17 features, I’ve made a separate entry about new attributes. At first sight, I thought that [[nodiscard]] is just another simple and a rarely used thing. But later I...
View Articlecode::dive 2017 conference report
This year I had a chance to visit Wroclaw for the 4th edition of Code Dive! Two days of a great programming conference!Briefly: many of topics related to C++, two days, 40 presentations, lots of people...
View ArticleSummary of C++17 features
How do you see the new C++ standard? Is it ok? Great? Meh?Last week, after a few years of break, I presented my new talk that addressed the above question! It happened at the Cracow C++ Local...
View Article5 ways how unique_ptr enhances resource safety in your code
Modern C++ stresses the use of RAII objects to manage resources. One of the easiest ways is just to start using unique_ptr across your code.Let’s see how we can leverage this smart pointer type. I’ve...
View Article