C++ Core Guidelines: Naming and Layout Rules

The C++ core guidelines have about twenty naming and layout rules. A few of them are obvious; a few of them may be controversial. Let's see what I mean.

Read more
Tags: Naming
Views: 37118

C++ Core Guidelines: Lifetime Safety And Checking the Rules

The lifetime safety profile in the C++ core guidelines boils down to one issue: don't dereference a possible invalid pointer. A pointer may be invalid because it is not initialized or the nullptr. A pointer may also point beyond its rage or to a deleted object.

Read more
Tags: GSL, Safety
Views: 17285

C++ Core Guidelines: Bounds Safety

Today's post concerns the second C++ Core Guidelines: Bounds Safety profile. The goal of the profile bounds safety is that you operate inside the bounds of allocated memory.

Read more
Tags: Safety
Views: 21365

C++ Core Guidelines: Type Safety by Design

What does that mean: type safety by design. Type safety by design just means that you always initialize your variables, use std::variant instead of a union, or prefer variadic templates and fold expressions to va_arg's.

Read more
Tags: Safety
Views: 19108

C++ Core Guidelines: Type Safety

The C++ core guidelines support three profiles: type safety, bounds safety, and lifetime safety. Thanks to the guideline support library (GSL), you can check your code against these profiles. Today, I start with the profile type safety.

Read more
Tags: Safety
Views: 29018

C++ Core Guidelines: Profiles

Informally, profiles are a subset of rules of the C++ core guidelines for specific concerns such as type safety, bounds safety, and lifetime safety. Thanks to the guideline support library, they can be checked

Read more
Tags: Safety, GSL
Views: 28298

More Myths of My Blog Readers

Today, I conclude my story to your myths about C++. These myths are around function parameters, the initialisation of class members, and pointer versus references.

Read more
Views: 28444

Myths of My Blog Readers

I was inquisitive about your C++ myths. In particular, my German readers were quite active. I got a few E-Mails and observed a vivid discussion on Heise Developer.

Read more
Tags: Myths
Views: 40866

C++ Core Guidelines: More Non-Rules and Myths

Demystifying non-rules and myths in C++ is a laborious but essential job. The goal is simple: use the powerful tool C++ appropriately.

Read more
Tags: Myths
Views: 19221

C++ Core Guidelines: Non-Rules and Myths

Of course, you already know many non-rules and myths about C++. Non-rules and myths which we have to argue against when we use modern C++. The supporting section of the C++ core guidelines addresses the most resistant ones but also provides alternatives.

Read more
Tags: Myths
Views: 22095

Mentoring

Stay Informed about my Mentoring

 

English Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Interactive Course: The All-in-One Guide to C++20

Subscribe to the newsletter (+ pdf bundle)

All tags

Blog archive

Source Code

Visitors

Today 844

Yesterday 5079

Week 39824

Month 5923

All 11711054

Currently are 114 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments