Screaming Interfaces
summary
Shows concrete C++ patterns that make common interface mistakes compile-time errors: a named-type booleans wrapper that prevents swapping two bool params and stops the override bug, a validated<T,Validator> wrapper that removes repeated null or SQL-sanitization checks (author cites eliminating ~15,000 if ptr==null checks), a produced_type via Boost.Preprocessor helper (~100 lines) that enforces gather→filter→final data flow using std::tuple_element, and tagged constructors (reserve vs fill) for clearer container construction; all examples are fully implemented and compile.
AI-written summary · about
