Alex PapadopoulosCppPatch 12 / X macrosUsing macros in C++ is not a smart move, it is a C preprocessor technique which should be avoided in C++. But we always come in touch with…Mar 27Mar 27
Alex PapadopoulosCppPatch 11 / Non trivial union memberWe all hate unions, unions are great when memory is critical but in reality they are just bug generators. It is such a common bug to access…Mar 19Mar 19
Alex PapadopoulosnXvim 1, building a neovim distroOk there are a lot of nice neovim distros out there but as a computer engineer I have to build my own! In this series we will document the…Mar 15Mar 15
Alex PapadopoulosCppPatch 10 / decltypeAfter the auto it is the time to check another keyword that is used mainly in the template programming field. The decltype keyword may be…Mar 9Mar 9
Alex PapadopoulosCppPatch 9 / autoSince C++ 11 the auto keyword has been used to specify the type of a variable based on an expression used for the initialization of the…Feb 181Feb 181
Alex PapadopoulosCppPatch 8 / Alignment and PaddingSo you have a data intensive application and the amount of RAM is not unlimited. The first and easiest place to start optimizing the RAM…Jan 21Jan 21
Alex PapadopoulosCppPatch / lvalue — rvalue — xvalue — glvalue — prvalue / 7Once upon a time the C developers had only to consider for two type of values, those where the rvalues and the lvalues. The good all days…Jan 7Jan 7
Alex PapadopoulosCppPatch 6 / extern-sharing global variablesSometimes we need to share a single global variable across many files.So best way to do so is by defining the global variables in a source…Dec 2, 2023Dec 2, 2023
Alex PapadopoulosCppPatch 5 / constOne of the most exiting type modifiers is the const keyword. In Cpp it is recommended to use global const variables instead of the #define…Nov 22, 2023Nov 22, 2023
Alex PapadopoulosCppPatch 4 / Explicit ConversionsIn the previous article we talked about the implicit conversions that are implemented by the compiler in the background. This is not enough…Nov 12, 2023Nov 12, 2023