This talk argues that Scott Meyers' mantra "make interfaces easy to use correctly and difficult to use incorrectly" isn't just good practice for humans. It's essential infrastructure for a world where AI generates C++ at scale.
When there's only one right way to call a function, both humans and machines get it right. If there are multiple ways, and some lead to disaster, AI increases the probability of disaster.
Through concrete redesigns of real APIs and parts of the standard library, we demonstrate how interfaces designed specifically to provide "one right way" act as implicit guardrails for generated code, and why the principles we should have been following all along are now urgent.
View Slides
Jody Hagins started using C++ back in the mid 1980s, with cfront. In 1993, he enjoyed writing enough C++ support code to enable writing loadable unix device drivers in C++. Since then, he has been applying C++ to various problems within the fintech space.