Dependency Injection in C++ - A Practical Guide - Peter Muldoon - C++ on Sea 2024

  Рет қаралды 4,658

cpponsea

cpponsea

Күн бұрын

cpponsea.uk​
---
Dependency Injection in C++ - A Practical Guide - Peter Muldoon - C++ on Sea 2024
---
A key principle for testing code is the concept of dependency injection aka the ability to swap out functionality of key components. This feature allows not only for easier code testability but also promotes well structured code that is more extensible and flexible beyond its original use cases.
In this talk we will explore the basic building blocks that can be used for Dependency injection like link-time substitution, dummies, Interfaces via Inheritance, templates, smart-pointers and polymorphic function wrappers. what are their strengths and weaknesses and the problem space they best serve. But what exactly is good dependency injection and what are good/bad strategies for employing these building blocks ?
How do you inject multiple dependencies into classes/functions without going down the road to singletons and global state ? We will also show how to introduce dependency injection into older codebases that were never designed for the concept. Doing this without having to make major changes throughout a legacy codebase ?
After exploring this and other use cases, we suggest better ways to handle these specific situations. Finally a coherent strategy for adding DI to your applications should emerge and be added to your developer toolbox.
---
Slides: github.com/phi...
Sponsored by Bloomberg: www.bloomberg....
Sponsored By think-cell: www.think-cell...
---
Peter Muldoon
Pete Muldoon has been using C++ since 1991. Pete has worked in Ireland, England and the USA and is currently employed by Bloomberg. A consultant for over 20 years prior to joining Bloomberg, Peter has worked on a broad range of projects and code bases in a large number of companies both tech and finance. Such broad exposure has, over time, shown what works and what doesn't for large scale engineering projects. He's a proponent of applied engineering principles, elegant solutions and expressive code.
---
C++ on Sea is the international C++ conference taking place by the sea, in the UK. Our venue is in Folkestone, Kent, near the entrance to the channel tunnel with stunning views across the English Channel.
Annual C++ On Sea Conference - www.cpponsea.uk
/ cpponsea
x.com/cpponsea
www.facebook.c...
/ cpponsea
vmst.io/@cpponsea
---
KZbin Videos Filmed, Edited & Optimised by Digital Medium: events.digital...
---
#cpp #cplusplus #dependencyinjection #cppprogramming #cpponsea

Пікірлер: 1
@ldlework
@ldlework 23 күн бұрын
This talk is the real deal.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Dependency Injection | Prime Reacts
28:34
ThePrimeTime
Рет қаралды 365 М.
How language model post-training is done today
53:51
Interconnects AI
Рет қаралды 3,4 М.
Антон Полухин - Грязные C++ трюки из userver и Boost
1:00:00
C++ Russia — Конференция по разработке на Cpp
Рет қаралды 7 М.
Catching up with async Rust
17:55
fasterthanlime
Рет қаралды 28 М.
Comprehending Proc Macros
47:41
Logan Smith
Рет қаралды 24 М.
Software Engineering Completeness - Peter Muldoon - Meeting C++ 2024
1:00:46
Intro to Embassy : embedded development with async Rust
18:47
The Rusty Bits
Рет қаралды 13 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19