Uploaded August 2024 | Updated December 2026, 3 hours ago
cppnow.org
---
Developing Better C++ Code by Isolating Decisions - Michael Okyen - C++Now 2024
---
Among the hallmarks of quality software are readability, extensibility, maintainability, and testability. Some of the most widely known guidelines for achieving these are the SOLID principles, but applying the Single Responsibility Principle and Open-Closed Principle can often be challenging in practice. In this presentation, I will share a technique my team is trialing, which attempts to simplify the process: Decision-Making Isolation (DMI).
The basis of DMI is employing a set of simple heuristics to separate the core logic of the software into small, decoupled C++ entities (classes/structs/functions). The remaining code is "wiring," which is typically easy to read and exempt from unit testing. The application of DMI leads to code that facilitates fewer unit tests with more value and avoids some of the common pitfalls of unit testing--coupling, brittleness, and high reliance on test doubles. After presenting the concepts of DMI, we will go through some examples of applying them and discuss the resulting code and unit tests.
---
Slides: github.com/boostcon/cppnow_presentations_2024/blob/main/Presentations/Developing_Better_Code_by_Isolating_Decisions.pdf
---
Michael Okyen
Michael is a Staff Software Engineer at Plexus in Raleigh, NC, where he primarily focuses on developing embedded software for medical devices. Over a decade of experience at contract engineering companies has given him opportunities to work on a variety of projects ranging from green-field design to final verification testing. Michael is passionate about software design, architecture, and unit testing, and he is always looking for opportunities to learn.
---
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 #cplusplus #cppprogramming #softwaredevelopment
cppnow.org
---
Developing Better C++ Code by Isolating Decisions - Michael Okyen - C++Now 2024
---
Among the hallmarks of quality software are readability, extensibility, maintainability, and testability. Some of the most widely known guidelines for achieving these are the SOLID principles, but applying the Single Responsibility Principle and Open-Closed Principle can often be challenging in practice. In this presentation, I will share a technique my team is trialing, which attempts to simplify the process: Decision-Making Isolation (DMI).
The basis of DMI is employing a set of simple heuristics to separate the core logic of the software into small, decoupled C++ entities (classes/structs/functions). The remaining code is "wiring," which is typically easy to read and exempt from unit testing. The application of DMI leads to code that facilitates fewer unit tests with more value and avoids some of the common pitfalls of unit testing--coupling, brittleness, and high reliance on test doubles. After presenting the concepts of DMI, we will go through some examples of applying them and discuss the resulting code and unit tests.
---
Slides: github.com/boostcon/cppnow_presentations_2024/blob/main/Presentations/Developing_Better_Code_by_Isolating_Decisions.pdf
---
Michael Okyen
Michael is a Staff Software Engineer at Plexus in Raleigh, NC, where he primarily focuses on developing embedded software for medical devices. Over a decade of experience at contract engineering companies has given him opportunities to work on a variety of projects ranging from green-field design to final verification testing. Michael is passionate about software design, architecture, and unit testing, and he is always looking for opportunities to learn.
---
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 #cplusplus #cppprogramming #softwaredevelopment










