The Most Important API Design Guideline - No, Its Not That One - Jody Hagins - C++Now 2024 @CppNow
The Most Important API Design Guideline - No, Its Not That One - Jody Hagins - C++Now 2024  @CppNow
Uploaded October 2024 | Updated December 2026, 3 hours ago
cppnow.org
---

The Most Important API Design Guideline - No, It's Not That One - Jody Hagins - C++Now 2024
---

Scott Meyers has famously proclaimed that the most important general design guideline is to make interfaces easy to use correctly and hard to use incorrectly. I don't dispute that claim, for the general case. However, for the specific case of an API, and in particular C++ library code, this guideline must take a back seat to something else.

So, what should that something else be? Obviously, since the above paragraph mentions C++ specifically, it must relate to performance in some way. Could it be to make interfaces as efficient as possible? If not, then what in the world could it be?

This talk will take a brief survey of general software design guidelines. Then, we will look at some specific examples. For some libraries, like the standard library, the design guidelines are well documented. For others, like many boost components, the design guidelines are part of the documentation. For others, we need to actually look at the API to see if we can determine the design guidelines that were used, if indeed, any guideline was used at all.

Finally, I will discuss what I believe to be the most important design guideline, and the implications for how we design and implement software in C++. In support of this claim, I will also present some patterns that can be used to effectively achieve this (and other) design goals.
---

Slides: github.com/boostcon/cppnow_presentations_2024/blob/main/Presentations/The_Most_Important_API_Design_Guideline.pdf


---

Jody Hagins

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.
---

C++Now 2025 - 28th April - 2nd May
C++Now is an annual onsite international C++ programming and coding conference held in Aspen, Colarado. For all C++ developers, C++ software engineers and those involved with the C++ language, CppNow provides an indepth and technical content provided by the best and brightest C++ experts of the C++ world.
Annual CppNow Conference - cppnow.org
linkedin.com/company/cppnow
twitter.com/cppnow
facebook.com/CppNow
reddit.com/r/CppNow
https://mastodon.social/@cppnow
think-cell develops one of the world’s leading PowerPoint applications, with C++ at the core of everything we build, from layout algorithms to deep integration with Microsoft Office. Interested in working on challenging C++ problems with real-world impact? Explore our open roles: think-cell.com/en/career/tech
---

Videos Filmed & Edited By Bash Films: bashfilms.com
YouTube Channel Managed & Optimized By Digital Medium Ltd: events.digital-medium.co.uk
---

#boost #cpp #api #cppprogramming #cplusplusprogramming
The Most Important API Design Guideline - No, Its Not That One - Jody Hagins - C++Now 2024Can C++ Become a Memory Safe Language? - Prabhu Missier - C++Now 2026Alex Stepanov, Generic Programming, and the C++ STL - Jon Kalb - C++Now 2025Introduction to C++ Function Template Partial Ordering - Matheus Izvekov - C++Now 2025Techniques for Declarative Programming in C++ - Richard Powell - C++Now 2025
CppNow |

The Most Important API Design Guideline - No, It's Not That One - Jody Hagins - C++Now 2024

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER