A conference talk by an experienced C++ engineer covering lessons learned from building safety-critical real-time applications in avionics, automotive, and medical imaging. Topics include algorithm complexity, memory and resource management (RAII, smart pointers, avoiding shared_ptr in hard real-time contexts), pitfalls with globals and static initialization order, and practical design patterns including Visitor (with std::variant), Strategy, Command, Adapter, Observer, and Bridge. The talk also covers class design guidelines such as the Non-Virtual Interface idiom, the Pimple idiom, const correctness, constexpr, avoiding exceptions in safety-critical systems, and preferring non-member functions for better encapsulation. Examples are drawn from real avionics, medical imaging, and network security projects.

1h 16m watch time
3 Impressions