Tag: STL

Back to Basics: Object-Oriented Programming in C++ – Amir Kirsh – CppCon 2022

https://cppcon.org/
---

Back to Basics - Object-Oriented Programming in Cpp - Amir Kirsh - CppCon 2022
https://github.com/CppCon/CppCon2022

C++ is not just an Object-Oriented Programming Language, it supports many paradigms. But in this session we would focus on the object oriented aspects of C++, from encapsulation to inheritance and polymorphism.

The session aims to cover the basic syntax together with best practices, tips, pitfalls to avoid and more. We would discuss design considerations, the advantages and disadvantages of different approaches and other alternatives that the language provides. Some relevant design patterns may also pop-by.

This session is part of the Back to Basics track and is aimed for novice and intermediate C++ developers (up to about 2-3 years of C++ coding experience). More experienced developers are of course welcomed to join and enrich the discussion with their knowledge and experience.
---

Amir Kirsh

C++ lecturer at the Academic College of Tel-Aviv-Yaffo and Dev Advocate at Incredibuild. Previously the Chief Programmer at Comverse. Co-organizer of Core C++ conference and a member of the Israeli ISO C++ NB. Currently a visiting researcher at Stony Brook University, New-York.
---

Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
YouTube Channel Managed by Digital Medium Ltd https://events.digital-medium.co.uk

#cppcon #programming #cppprogramming

Filed under: UncategorizedTagged with: , , , ,

Back to Basics: Standard Library Containers in Cpp – Rainer Grimm – CppCon 2022

https://cppcon.org/
---

Back to Basics: Standard Library Containers in C++ - Rainer Grimm - CppCon 2022
https://github.com/CppCon/CppCon2022

From a bird’s-eye view, the Standard Template Library (STL) consists of three components. Those are containers, algorithms that run on the containers, and iterators that connect both of them. The STL has five sequential and eight associative containers. I hear your question:

* When should I use a sequence container or an associative one?

* When I decided for a sequence container or an associative one, which one should I use?

The answers to these questions depends mainly on two facts: use case and performance.

You may not know it but std::array and std::vector are your best friends for sequence containers, and you are most of the time fine with std::unordered_map when you need an associative container.
---

Rainer Grimm

Rainer has worked as a software architect, team lead, and instructor since 1999. In 2002, Rainer created a company-intern meeting for further education and had given training courses since 2002. Rainer's first tutorials were about proprietary management software, but he began teaching Python and C++ soon after. In his spare time, he likes to write articles about C++, Python, and Haskell and speak at conferences. Rainer publishes weekly on his English blog Modernes C++. Since 2016, Rainer has been an independent instructor, giving seminars about modern C++ and Python. Due to his profession, he constantly searches for the best way to teach modern C++. He published several books in various languages about modern C++ in the last ten years, including the last one "C++ Core Guidelines Explained: Best Practices for Modern C++".
---

Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
YouTube Channel Managed by Digital Medium Ltd https://events.digital-medium.co.uk

#cppcon #programming #stl

Filed under: UncategorizedTagged with: , , , ,

The Dark Corner of STL in Cpp: MinMax Algorithms – Simon Toth – CppCon 2022

https://cppcon.org/
---

The Dark Corner of STL in Cpp : MinMax Algorithms - Šimon Tóth - CppCon 2022
https://github.com/CppCon/CppCon2022

How many problems could one possibly run into when calling a simple algorithm such as std::min?

In this talk, we will take a deep dive into the ergonomics of min-max algorithms and explore several language features in the process:
• reference semantics and lifetime issues
• const correctness and use of const_cast
• costs of using the std::initializer_list

We will finish by exploring the options for addressing these issues when implementing functions with similar semantics.
---

Šimon Tóth

Currently on a mission to share my 20 years' worth of Software Engineering experience with the world.
__

Videos Streamed & Edited by Digital Medium: http://online.digital-medium.co.uk

#cppcon #programming #stl

Filed under: UncategorizedTagged with: , , , , , , ,

Back to Basics: RAII in C++ – Andre Kostur – CppCon 2022

https://cppcon.org/
---

Back to Basics: RAII in C++ - Andre Kostur - CppCon 2022
https://github.com/CppCon/CppCon2022

The RAII (Resource Acquisition is Initialization) idiom is a powerful tool used to guard against resource mishandling in C++. Learn about the idiom, examples provided in the Standard Library, and some design considerations for writing your own RAII classes.
---

Andre Kostur

He has been a professional C++ developer for nearly 30 years, and was responsible for introducing and championing the use of C++ in his previous company. He is responsible for forming and leading a C++ Users Group as his current company, routinely presenting on all topics regarding C++ ranging from the basics to the latest developments in C++20 and beyond.
__

Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
YouTube Channel Managed by Digital Medium Ltd https://events.digital-medium.co.uk

#cppcon #programming #raii

Filed under: UncategorizedTagged with: , , , , , ,

Undefined Behavior in the STL – by Sandor Dargo – CppCon 2022

https://cppcon.org/
---

Undefined Behaviour in the STL - Sandor Dargo - CppCon 2022
https://github.com/CppCon/CppCon2022

In this talk, I will briefly remind you what undefined behavior is and what dangers it can bring to our software - to our products. Then I'll demonstrate that the undefined behaviour is there even in the standard library, in containers, in algorithms. Moreover, I will explain that such behavior was introduced with care and purpose. We will go through some more interesting cases and we will also see how we can protect ourselves.
---

Sandor Dargo

Sandor is a passionate software craftsman focusing on reducing the maintenance costs by developing, applying and enforcing clean code standards. His other core activity is knowledge sharing both oral and written, within and outside of his employer. When not reading or writing, he spends most of his free time with his two children and his wife baking at home or travelling to new places.
__

Videos Streamed & Edited by Digital Medium: http://online.digital-medium.co.uk

#cppcon #programming #stl

Filed under: UncategorizedTagged with: , , ,