Wednesday, January 25, 2023

How to Store an lvalue or an rvalue in the Same Object

 

There seems to be a problem coming up every so often C++ code: how can an object keep track of a value, given that this value can come from either an lvalue or an rvalue? In short, if we keep the value as a reference then we can’t bind to temporary objects. And if we […]

Copy-Paste Developments

Published April 26, 2022

Amongst the many tasks a programmer does, one of them is to add a new feature in a location of the application where there are already many similar exising features. The temptation is then to warm up very specific muscles of our left hand: the pinky muscles that will press on the Ctrl key, the […]

Design Patterns VS Design Principles: Abstract Factory

Published April 6, 2022
In the “Design Pattens VS Design Principles” series, we look at design patterns and relate them to design principles. In this episode, we examine the Abstract Factory pattern. Let’s see how Abstract Factory works and what it is useful for, then relate it to a design principle. We will also see a C++ technique

No comments:

Post a Comment