Blog

Page 736 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for What are POD types in C++?
types

What are POD types in C++?

Published on September 2, 2023

## 🤔 What Are POD Types in C++? If you're dabbling in the world of C++, chances are you've come across the term "POD types" and wondered, "What does it mean?" Well, fret no more, because we're here to demystify this jargon for you! 🚀 To put it simply,

Cover Image for What is the difference between "typedef" and "using" in C++11?

What is the difference between "typedef" and "using" in C++11?

Published on September 2, 2023

# What is the difference between 'typedef' and 'using' in C++11? If you are a C++ programmer, you have probably encountered the 'typedef' keyword used to create a type alias. However, with the introduction of C++11, a new keyword called 'using' emerged as

Cover Image for When should you use a class vs a struct in C++?
classoop

When should you use a class vs a struct in C++?

Published on September 2, 2023

# 🏗️ Classes vs Structs in C++: Choosing the Right Tool for the Job 💡 C++ offers a variety of tools to help developers build robust and efficient code. One of the most fundamental choices you'll encounter is whether to use a `class` or a `struct` when d

Cover Image for How to concatenate a std::string and an int
concatenationinteger

How to concatenate a std::string and an int

Published on September 2, 2023

# 📝 How to concatenate a std::string and an int ## Introduction Concatenating a `std::string` and an `int` might seem simple, but it can quickly become tricky when you encounter incompatible types or unexpected results. In this blog post, we will addres

Cover Image for Where and why do I have to put the "template" and "typename" keywords?

Where and why do I have to put the "template" and "typename" keywords?

Published on September 2, 2023

# 📝 Blog Post: Understanding the "template" and "typename" Keywords in Templates Have you ever found yourself scratching your head when encountering the keywords "template" and "typename" in C++ templates? 🤔 Don't worry, you're not alone! In this blog p

Cover Image for Cycles in family tree software
graph

Cycles in family tree software

Published on September 2, 2023

# 🌳 Solving Cycles in Family Tree Software 🌳 ## The Dilemma: Dealing with Cycles in Family Tree Software You're the developer of a family tree software, using C++ and Qt, and you've encountered a unique problem - your software is encountering errors du

Cover Image for Compiling an application for use in highly radioactive environments
c#gcc

Compiling an application for use in highly radioactive environments

Published on September 2, 2023

# Compiling for 💥highly radioactive💥 environments: Why your app crashes and how to fix it! 😱🛠️ So, you're in charge of compiling an embedded C++ application for a shielded device in a 💥highly radioactive💥 environment? That's pretty intense! 😎 But,

Cover Image for Why do we need virtual functions in C++?

Why do we need virtual functions in C++?

Published on September 2, 2023

# 🌟What Are Virtual Functions in C++ and Why Do We Need Them?🌟 If you've been diving into the world of C++, you've probably come across the concept of virtual functions. 🤔 But what exactly are they, and why are they important? 🤷‍♀️ ## 🧠 Understandin

Cover Image for Why does changing 0.1f to 0 slow down performance by 10x?
floating-pointperformance

Why does changing 0.1f to 0 slow down performance by 10x?

Published on September 2, 2023

# **Why does changing 0.1f to 0 slow down performance by 10x?** Hey there tech enthusiasts! 👋 Have you ever come across a situation where a tiny change in code causes a significant slowdown in performance? 🚀 Well, today we're going to dive into a intrig

Blog | Matheus Mello