Introduction
You know when you take a small bite of a burger. That’s called a nibble. Just a wee little bite. That is the theme of this series. Bite-sized C++ knowledge. Enjoy!
The series is currently on Nibble #124.
This is the culmination of my entire C++ knowledge. It’s something I would’ve liked younger me to have.
Each Nibble will be:
- Less than 4 minutes reading time
- Concise (That’s the entire point of a “nibble”).
- Contain an actionable takeaway
-
#100 – Why you should avoid using out parameters
-
#101 – How type deduction behaves with pointers and references
-
#102 – Two simple, practical uses for enums in C++
-
#103 – Printing and parsing enums with << and >>
-
#104 – The elegant way to initialize structs
-
#105 – How to elegantly return multiple values in C++
-
#106 – How padding secretly increases the size of your structs
-
#107 – Introduction to class templates
-
#108 – Crash course on std::pair
-
#109 – When template types get too long, use an alias template
-
#110 – The nuances behind how const behaves with structs
-
#111 – C++ private access is class-level, not object-level
-
#112 – Enforcing encapsulation in C++
-
#113 – Member initialization list order matters
-
#114 – Default, parameterized, overloaded, and delegating constructors
-
#115 – Temporary class objects: construct, use, discard
-
#116 – Crash course on the copy constructor
-
#117 – How copy elision prevents unnecessary object creation
-
#118 – Converting constructors and the case for the explicit keyword
-
#119 – The hidden this pointer
-
#120 – The third type of class member
-
#121 – Classes inside classes: Nested classes is a thing
-
#122 – Static member variables
-
#123 – Static methods: functions that belong to the class
-
#124 – Friend classes – Hooray for friendship