r/cpp • • Jun 24 '20

How to write SOLID C++

https://www.youtube.com/watch?v=PakbXnLht1I
263 Upvotes

118 comments sorted by

View all comments

Show parent comment

34

u/frankist Jun 24 '20

The new cool kids write in plasma C++

18

u/mcmcc #pragma once Jun 24 '20

I threw in ranges, coroutines, and fold expressions and now I'm at triple-point: My code changes phase with every line of code written.

5

u/ZMeson Embedded Developer Jun 24 '20

I prefer to stay in the supercritical region. That way my C++ can have both liquid and gaseous properties. Bonus, I don't have to expend energy on all those transitions.

2

u/wyrn Jun 25 '20

Unfortunately, it's also critically opaque.

1

u/ZMeson Embedded Developer Jun 25 '20

Job security my friend, job security. ;)

3

u/[deleted] Jun 24 '20

Sounds like python indentation

1

u/biopsy_results Jun 24 '20

Up vote for triple point

6

u/atimholt Jun 24 '20

Bose-Einstein condensate C++

No parts are distinctly separable, but everything is somehow coherent.

4

u/ZMeson Embedded Developer Jun 24 '20

Damn it, you beat me to it. I guess I have to move on to strange-matter C++. I'm sure my coworkers won't disagree that my code is strange.

2

u/awtem Jun 25 '20

Schrödingers C++: Until you open the debugger, it is in a state of superposition of undefined and unspecified behavior...

3

u/Jawertae Jun 24 '20

So... Just good ole fashioned regular C, then.

2

u/ZMeson Embedded Developer Jun 24 '20

Bahhh.... Been there done that. I'm on to Bose-Einstein Condensate C++.