<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/isocpp/best-of/2024" -->

---
title: Best C++ posts of 2024 | daily.dev
description: The most upvoted C++ posts of 2024, curated by the daily.dev community.
canonical: https://daily.dev/sources/isocpp/best-of/2024
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/isocpp/best-of/2024
og:type: website
og:site_name: daily.dev
og:title: Best C++ posts of 2024 | daily.dev
og:description: The most upvoted C++ posts of 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of C++ — 2024

1. 1  
[](/posts/using-std-cpp-2024-v6whudarn "using std::cpp 2024")  
[![isocpp's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c96d1356acb34a8d982064453dcfeb20)](/sources/[source]/best-of/[year])  
7m read time • Jul 08, 2024  
### using std::cpp 2024  
The using std::cpp 2024 conference, held from April 24-26 at Universidad Carlos III de Madrid, attracted over 170 attendees, primarily from the industry. The event featured keynote speakers, various talks, and workshops, focusing on modern C++ trends and practices. The registration fees contributed to a fund supporting students with economic needs. Attendees reported a shift towards newer C++ versions and common use of tools like CMake and version control. The best talk award went to Juan Alday for discussing IT pitfalls in rapid growth.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/dd043334257870a9db4873f25f037d36?_a=AQAEuiZ)  
54  
2
2. 2  
[](/posts/c-programmer-s-guide-to-undefined-behavior-part-1-of-11-aspcjvy9k "C++ programmer's guide to undefined behavior: part 1 of 11")  
[![Andrey Karpov's profile](https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=7129013590455607&height=50&width=50&ext=1690564626&hash=AeTFX3zY55N8-I2Dy10)](https://daily.dev/andreykarpov)  
[![isocpp's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c96d1356acb34a8d982064453dcfeb20)](/sources/[source]/best-of/[year])  
15m read time • Jun 07, 2024  
### C++ programmer's guide to undefined behavior: part 1 of 11  
This post is the first part of an e-book on undefined behavior in C++. It provides an introduction to the topic and discusses the reasons behind undefined behavior in the language. It also mentions the different ways to detect and prevent undefined behavior in code.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/22d224d224ad4f022e0a9785b4b9835e?_a=AQAEuiZ)  
21
3. 3  
[](/posts/cppcon-2024-data-structures-that-make-video-games-go--l7vnwb75p "CppCon 2024: Data Structures That Make Video Games Go...")  
[![isocpp's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c96d1356acb34a8d982064453dcfeb20)](/sources/[source]/best-of/[year])  
1m read time • Sep 09, 2024  
### CppCon 2024: Data Structures That Make Video Games Go...  
Al-Afiq Yeong, a Senior Systems Programmer at Criterion Games, works on optimizing performance, managing memory efficiently, and developing technologies for future games using Frostbite.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/8cd1a61d892fef3979d45dbd2ea626b1?_a=AQAEuiZ)  
13
4. 4  
[](/posts/c-programmer-s-guide-to-undefined-behavior-part-6-of-11-2nielrwdf "C++ programmer's guide to undefined behavior: part 6 of 11")  
[![Unicorn Developer's profile](https://media.daily.dev/image/upload/f_auto/v1657806182/avatars/6yNiw7BaeGjkXDepK1xxb)](https://daily.dev/pvs%5Fstudio)  
[![isocpp's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c96d1356acb34a8d982064453dcfeb20)](/sources/[source]/best-of/[year])  
26m read time • Sep 25, 2024  
### C++ programmer's guide to undefined behavior: part 6 of 11  
This guide delves into the nuances and pitfalls of undefined behavior in C++, focusing on variadic functions, the subscript operator in associative containers, and intricacies with iostreams. It highlights potential errors and undefined behavior scenarios that can occur with these features, providing practical examples and solutions. The chapter also touches on issues related to zero-sized types in structures and optimizing the size of data structures in C++.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/1d291da5e09ca6c0687c827bb570fe87?_a=AQAEuiZ)  
12
5. 5  
[](/posts/opaque-pointer-pattern-in-c--2fnyij1ee "Opaque Pointer Pattern in C++")  
[![isocpp's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c96d1356acb34a8d982064453dcfeb20)](/sources/[source]/best-of/[year])  
7m read time • Sep 05, 2024  
### Opaque Pointer Pattern in C++  
The opaque pointer pattern, also known as the pointer-to-implementation idiom or compiler firewall, helps hide implementation details in C++ class designs to maintain stable interfaces during refactoring. This improves information hiding and reduces compilation dependencies. The post explains implementing this pattern with \`std::unique\_ptr\` for automatic memory management and discusses potential advantages and drawbacks.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/c3ce97fbcf6f719cda6c9e1f5255ecb7?_a=AQAEuiZ)  
12  
1
6. 6  
[](/posts/c-programmer-s-guide-to-undefined-behavior-part-4-of-11-weiuxc4wd "C++ programmer's guide to undefined behavior: part 4 of 11")  
[![Unicorn Developer's profile](https://media.daily.dev/image/upload/f_auto/v1657806182/avatars/6yNiw7BaeGjkXDepK1xxb)](https://daily.dev/pvs%5Fstudio)  
[![isocpp's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c96d1356acb34a8d982064453dcfeb20)](/sources/[source]/best-of/[year])  
29m read time • Aug 23, 2024  
### C++ programmer's guide to undefined behavior: part 4 of 11  
The post delves into intricate aspects of undefined behavior in C++ programming, focusing on issues with lambda function capture lists, std::tuple class template, object lifetime errors, unexpected mutability, proxy objects, and move semantics. It provides examples of how these features can lead to bugs, unexpected crashes, and undefined behavior, and discusses possible ways to avoid these pitfalls through careful coding practices. It also highlights the challenges in static code analysis for detecting such issues.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/9ab0591249095abac6c7c9c696b3574c?_a=AQAEuiZ)  
11
7. 7  
[](/posts/c-programmer-s-guide-to-undefined-behavior-part-3-of-11-gpvl0ilpq "C++ programmer's guide to undefined behavior: part 3 of 11")  
[![Andrey Karpov's profile](https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=7129013590455607&height=50&width=50&ext=1690564626&hash=AeTFX3zY55N8-I2Dy10)](https://daily.dev/andreykarpov)  
[![isocpp's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c96d1356acb34a8d982064453dcfeb20)](/sources/[source]/best-of/[year])  
24m read time • Aug 05, 2024  
### C++ programmer's guide to undefined behavior: part 3 of 11  
Undefined behavior in C++ occurs frequently due to issues with object lifetimes, such as dangling references and use-after-free errors. Often, these errors are hidden within layers of abstraction in code. The article explores various examples and solutions to prevent such errors, including best practices for using references, smart pointers, and value semantics. Tools like static analyzers, sanitizers, and proper coding patterns are recommended to mitigate these issues.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/38c81e09553474b0079c0f79f9fda64a?_a=AQAEuiZ)  
11
8. 8  
[](/posts/linkers-loaders-and-shared-libraries-in-windows-linux-and-c---ofek-shilon---cppcon-2023-dmk4qario "Linkers, Loaders and Shared Libraries in Windows, Linux, and C++ - Ofek Shilon - CppCon 2023")  
Video  
[![isocpp's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c96d1356acb34a8d982064453dcfeb20)](/sources/[source]/best-of/[year])  
59m watch time • Jun 28, 2024  
### Linkers, Loaders and Shared Libraries in Windows, Linux, and C++ - Ofek Shilon - CppCon 2023  
The talk covers the concepts of linkers, loaders, and shared libraries in the context of Windows, Linux, and C++. It explains the differences in how linkers and loaders function across these platforms, focusing on the terms like shared objects, DLLs, symbols, and position-independent code. Additionally, it discusses practical considerations and recommendations for developers, such as building libraries with specific flags to optimize load times and improve security. The differences in symbol visibility, lazy binding, and interposition between Linux and Windows are highlighted, with suggestions for best practices in library development.

+4  
![Post Cover image](https://i.ytimg.com/vi/_enXuIxuNV4/sddefault.jpg)  
11

[See all C++ archives](/sources/isocpp/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/isocpp/best-of/2024#page","url":"https://daily.dev/sources/isocpp/best-of/2024","name":"Best C++ Posts of 2024","description":"The most upvoted C++ posts of 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/isocpp/best-of/2024#items","numberOfItems":8,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/using-std-cpp-2024-v6whudarn","name":"using std::cpp 2024"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/c-programmer-s-guide-to-undefined-behavior-part-1-of-11-aspcjvy9k","name":"C++ programmer's guide to undefined behavior: part 1 of 11"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/cppcon-2024-data-structures-that-make-video-games-go--l7vnwb75p","name":"CppCon 2024: Data Structures That Make Video Games Go..."},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/c-programmer-s-guide-to-undefined-behavior-part-6-of-11-2nielrwdf","name":"C++ programmer's guide to undefined behavior: part 6 of 11"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/opaque-pointer-pattern-in-c--2fnyij1ee","name":"Opaque Pointer Pattern in C++"},{"@type":"ListItem","position":6,"url":"https://daily.dev/posts/c-programmer-s-guide-to-undefined-behavior-part-4-of-11-weiuxc4wd","name":"C++ programmer's guide to undefined behavior: part 4 of 11"},{"@type":"ListItem","position":7,"url":"https://daily.dev/posts/c-programmer-s-guide-to-undefined-behavior-part-3-of-11-gpvl0ilpq","name":"C++ programmer's guide to undefined behavior: part 3 of 11"},{"@type":"ListItem","position":8,"url":"https://daily.dev/posts/linkers-loaders-and-shared-libraries-in-windows-linux-and-c---ofek-shilon---cppcon-2023-dmk4qario","name":"Linkers, Loaders and Shared Libraries in Windows, Linux, and C++ - Ofek Shilon - CppCon 2023"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"C++","item":"https://daily.dev/sources/isocpp"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/isocpp/best-of"},{"@type":"ListItem","position":5,"name":"2024"}]}]}
```

