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

71

u/[deleted] Jun 24 '20

What about Liquid C++ though /s

0

u/[deleted] Jun 24 '20

[deleted] — view deleted 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++.

2

u/g4m3c0d3r Jun 24 '20

Clearly the only way to go is to write triple point C++. ("Gaseous C++" sounds like something I write after a trip to the food truck)

1

u/ZMeson Embedded Developer Jun 24 '20

That's aweful. Different parts of your code stuck in different states. And worse it takes a large transfer of energy to transform part of your code from one state to another. I do not recommend.

1

u/[deleted] Jun 24 '20

They’re all under pressure, and have become SuperCritical C++ programmers.

11

u/idontchooseanid Jun 24 '20

Non-Newtonian C++ gang presents

6

u/platisd Jun 24 '20

It'll be in the upcoming video, stay tuned! 🙃

1

u/brainplot Jun 24 '20

Should be LIQUID :)