Coral Kashri (She/Her)
coralkashri.bsky.social
Coral Kashri (She/Her)
@coralkashri.bsky.social
C++ Senioreas blog writer: https://cppsenioreas.wordpress.com/
Israel ISO C++ discussions member
Learn all about reverse iteration in C++, including a simple pre-C++20 method: `for (auto elem : reverse_view(container))`. No ranges library needed!

#cpp #ranges #iterators #programming #CppSenioreas #cplusplus
Reverse Iterations
Learn the ways to iterate in a reverse order on a container - C++11 to C++20 with a custom, easy to use, method to allow a reverse iterations in a simple way prior to C++20 and without the ranges library.
cppsenioreas.wordpress.com
January 1, 2025 at 12:46 PM
We're diving into the dark magic of ADL in C++—a spell that summons hidden dependencies and lurking bugs. Join us as we uncover its secrets and learn how to avoid its traps! ✨🔍

#Cplusplus #Cpp #CleanCode #CodingTips #Programming #ADL #CppSenioreas
ADL – Avoid Debugging Later
In C++, Argument-Dependent Lookup (ADL) can be a tempting feature to use for cleaner code, but its reliance on context-specific resolution often leads to unexpected behavior. While ADL may seem like an elegant shortcut for function resolution, it can introduce ambiguity and make debugging significantly more challenging. In this article, we explore why you should avoid using ADL in favor of more explicit and predictable function calls. We’ll discuss how ADL can create hidden dependencies between your code’s components and lead to subtle bugs that only emerge in certain conditions. By adhering to more transparent and straightforward function resolution techniques, you can avoid unnecessary complexity and ensure your code is more maintainable, easier to understand, and far less prone to unexpected runtime issues.
cppsenioreas.wordpress.com
December 20, 2024 at 12:44 PM
Is the comma operator in C++ a hidden gem or a lurking danger? In 'It's just ',' - The Comma Operator,' I explore its surprising dangers. Could using it lead to subtle, unnoticed errors? Let’s uncover the truth…

https://cppsenioreas.wordpress.com/2023/12/09/its-just-comma-the-comma-operator-cpp/
October 20, 2024 at 9:19 PM