Book Image

Multi-Paradigm Programming with Modern C++ [Video]

By : Georgy Pashkov
5 (1)
Book Image

Multi-Paradigm Programming with Modern C++ [Video]

5 (1)
By: Georgy Pashkov

Overview of this book

C++ is a multi-paradigm language that lets you solve a problem in different ways, and this course will teach you the best practices. Furthermore, C++ has been re-invented again. C++2a is the largest extension to the language since C++11, and it almost feels like a new language. Developers who master the new features will be able to write cleaner, faster and concurrent code. In this course, you will learn about the best practices of C++ programming, including project structure, designing interfaces and classes, C++ Core Guidelines, and the most recent language standard. The new features are numerous and cover almost every area of the language: modules let us organize our programs better; concepts help us create cleaner APIs; ranges forever change how we look at containers; concurrency features, such as coroutines, bring parallel and concurrent programming to a whole new level. You will get plenty of practical experience with short, real-world code examples. By the end of this course, you will be ready to create better software using C++. Here are the links to the GitHub repo: https://github.com/PacktPublishing/Multi-Paradigm-Programming-with-Modern-Cpp-daytime https://github.com/PacktPublishing/Multi-Paradigm-Programming-with-Modern-Cpp-Examples
Table of Contents (12 chapters)
Chapter 5
From Functions to <functional>
Content Locked
Section 1
What Makes a Good Function
A function should perform a single logical operation. Small functions are easy to maintain and promote code reuse. The most common anti-pattern is a function that does too many things.