In this next part of the big STL algorithm tutorial, we will continue with two algorithms that help us to reverse the order of elements in a range: reverse reverse_copy Let’s get started! ...
Code: The Hidden Language of Computer Hardware and Software by Charles Petzold
If you have been reading my book reviews, you know that I like history. Recently I wrote about Sapiens and I quoted Churchill - you know the guy who pretty much led the fight against Nazis - saying...
Don’t Run From Pain, Embrace It
How many times have you thought, oh I will find a way to get out of the way of this problem? Just this time I promise! And then you gently stepped aside. Later you were looking with eyes open wide ...
Try-catch everything without macros
We all have our vices. One of mine is that I tend to jump in code reviews quickly, without considering how much time will be taken if I find something I don’t like. Recently I opened PR that serio...
Sapiens: A Brief History Of Humankind by Yuval Noah Harari
“A nation that forgets its history has no future” as Churchill said. Or going more broad, as John Kennedy wrote, “without history, we have no future.” Sapiens is not just about the recent times, b...
Occupying a seat vs. show me your skill!
I’m still not looking for a new job, and - given the circumstances - luckily I don’t even have to. Still, after having met some people and having received a couple of interesting propositions I rea...
The big STL Algorithms tutorial: modifying sequence operations - remove calls
In this next part of the big STL algorithm tutorial, we will discover the 4 modifying sequence algorithms that will help you removing elements from containers: remove remove_if remove_copy...
Functional Programming in C++ by Ivan Cukic
C++ is an Object-Oriented language, right? Well, it’d be better to say among others. It can be used as such, but in reality, it’s a multiparadigm language, suitable to use as a procedural, object-...
Think about one with virtuous life
Marcus Aurelius jotted down the following thought: “This advice from Epicurean writings: To think continually of one of the men of old who lived a virtuous life.” This piece of advice might sound...
Loops are bad, algorithms are good! Aren't they?
This is a statement frequently repeated by people who either just more familiar with the <algorithms> header in C++ and/or are advocates of functional programming in C++. And of course, let’s...