Last year I wrote this jar of ideas that together consists of creating “opportunities for nice surprises”. I called it “principle of maximum opportunity”.
In practice, it uses generic programming, ranges, overloads, variant, optional and more. I never publicized the article because it's long and not the best literary style. But, there, for science:
https://motsd1inge.wordpress.com/2019/03/22/principle-of-maximum-opportunity/