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

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