Click here to Skip to main content
15,890,438 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Is Xamarin Forms Dead? Pin
Daniel Will16-Mar-21 4:11
Daniel Will16-Mar-21 4:11 
JokeThings I find buried in the C++ reference Pin
honey the codewitch12-Mar-21 13:28
mvahoney the codewitch12-Mar-21 13:28 
GeneralRe: Things I find buried in the C++ reference Pin
Greg Utas13-Mar-21 0:27
professionalGreg Utas13-Mar-21 0:27 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn13-Mar-21 13:11
professionalEspen Harlinn13-Mar-21 13:11 
GeneralRe: Things I find buried in the C++ reference Pin
Greg Utas13-Mar-21 15:00
professionalGreg Utas13-Mar-21 15:00 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn14-Mar-21 2:28
professionalEspen Harlinn14-Mar-21 2:28 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch13-Mar-21 16:22
mvahoney the codewitch13-Mar-21 16:22 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn14-Mar-21 4:04
professionalEspen Harlinn14-Mar-21 4:04 
Quote:
If they can get rid of the code bloat

With the latest compilers there should not be much, if any, of that.

Quote:
I feel like I need metaprogramming a lot

you do Wink | ;)
Quote:
I often can't afford it.

and you can … Big Grin | :-D

While coding I still find that I am continuously backsliding towards my pre C++ 20 ways of doing things. That is my fault, and not an inherent deficiency of C++ 20.

When I succeed at getting into "C++ 20" mode, shedding much of the mental baggage accumulated over more than 25 years of C++ development, the machine-code generated by the compiler is usually superior to the machine-code generated for code developed in pre "C++ 20" mode.

When I reason about code in "C++ 20" mode, how things will be laid out in memory comes more into focus, while in pre "C++ 20" mode there is more emphasis on the flow of execution - this is obviously very subjective, since this is me reviewing my own ways of thinking. What I think is interesting, is that the actual execution paths for the code I develop when I manage to get into "C++ 20" mode is shorter than before, sometimes significantly so.

For me, altering how I reason about coding is pretty d**n hard work. Reasoning about code in terms of compile-time computations and type selection, is not all that hard - making my brain pick solutions based on that, while actually trying to solve something else is, and that is what I mean by "C++ 20" mode.
Espen Harlinn
Senior Architect - Ulriken Consulting AS

The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague.Edsger W.Dijkstra

GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch14-Mar-21 6:19
mvahoney the codewitch14-Mar-21 6:19 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn14-Mar-21 10:38
professionalEspen Harlinn14-Mar-21 10:38 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch14-Mar-21 10:52
mvahoney the codewitch14-Mar-21 10:52 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn14-Mar-21 12:42
professionalEspen Harlinn14-Mar-21 12:42 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch14-Mar-21 12:54
mvahoney the codewitch14-Mar-21 12:54 
GeneralRe: Things I find buried in the C++ reference Pin
Espen Harlinn15-Mar-21 11:29
professionalEspen Harlinn15-Mar-21 11:29 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch15-Mar-21 11:57
mvahoney the codewitch15-Mar-21 11:57 
GeneralRe: Things I find buried in the C++ reference Pin
Stuart Dootson15-Mar-21 1:09
professionalStuart Dootson15-Mar-21 1:09 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch15-Mar-21 2:22
mvahoney the codewitch15-Mar-21 2:22 
GeneralRe: Things I find buried in the C++ reference Pin
Stuart Dootson15-Mar-21 3:31
professionalStuart Dootson15-Mar-21 3:31 
GeneralRe: Things I find buried in the C++ reference Pin
honey the codewitch15-Mar-21 3:52
mvahoney the codewitch15-Mar-21 3:52 
GeneralRe: Things I find buried in the C++ reference Pin
James Curran15-Mar-21 4:43
James Curran15-Mar-21 4:43 
GeneralOh no! Pin
Jörgen Andersson12-Mar-21 9:45
professionalJörgen Andersson12-Mar-21 9:45 
GeneralRe: Oh no! Pin
NotTodayYo12-Mar-21 10:09
NotTodayYo12-Mar-21 10:09 
GeneralRe: Oh no! Pin
RickZeeland12-Mar-21 21:04
mveRickZeeland12-Mar-21 21:04 
GeneralExploding Plastic Pin
honey the codewitch12-Mar-21 9:08
mvahoney the codewitch12-Mar-21 9:08 
GeneralRe: Exploding Plastic Pin
OriginalGriff12-Mar-21 11:17
mveOriginalGriff12-Mar-21 11:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.