Posts
Safety variable initialization in C++, finally!
C++ is getting a very interesting feature. It makes the initialization of trivial types (int, float, double, etc.) safe by default. This will only be available by default on C++26, but you can use it today via a special compilation flag.
Let’s take a closer look at how this all works. You may have seen code like this before:
int ii;
std::cout << ii;
My 2023 reading (and listening) list
Dear World,
As the year draws to a close, I’ve taken a moment to list the books and audiobooks I’ve read and listened to. My goals are to briefly revisit the knowledge I’ve acquired and inspire a few people to have some great reads. After all, knowledge should be shared!
Disclaimer: I’m not a great fan of fiction when it comes to books. If that’s what you’re after, you might find this list a bit disappointing. These are primarily personal development books, but they’re definitely worth the read!
7 Habits of Highly Effective People: A quick reflection on principles
The 7 Habits of Highly Effective People, by Stephen R. Covey. This has got to be one of my favorite books ever. It has a very clickbait title, I’ll be the first to admit it. Do not let that demotivate you. This book contains many invaluable teachings that will never age.
The costs of dynamic polymorphism
Hello World !
I stumbled upon two articles this week, which I would like to share with you. The first one is about final classes in C++, and the second about CRTP (curiously recurring template pattern).
These are short readings which may have huge implications, at least for me. They may give you new ideas for your code or allow you to revisit some important C++ concepts which are not always obvious.
Goodbye Comma Operator, Goodbye
It’s always sad to see a feature that I extensively used being deprecated of your favorite programming language. Such a sad destiny, How could the gods of C++ have done this to me?
No, actually I’m just kidding. I’ve never used it in the way described below, and I guess no one ever has. Have you?
On on a more serious note, it’s nice to see the committee is doing some clean-up at least. Let go of the past we must, young Jedi.
An example of Undefined Behavior in C
(This post is a republish of a Quora answer I gave 2 years ago: https://www.quora.com/What-is-wrong-with-this-C-code-8/answer/Marlon-Marques).
Question
What is wrong with this C code?
The Big Four in C++
Although I’m still trying to get my head around C++17, discussions on C++20 are all over the place. It seems that our beloved language will gain some strong reinforcements next year.
I invite you to take a look at the following article by Rainer Grimm which briefly explains the Big Four of Thrash Metal C++20 (how cool a name is that?!).
My experience as a Software Developer in the EDA Industry
Here’s a typical conversation I often find myself having:
Person : So Marlon, what do you work with?
Marlon: I make programs. =D