Blog

Page 277 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How do I check OS with a preprocessor directive?
c#operating-system

How do I check OS with a preprocessor directive?

Published on September 2, 2023

## How to Check OS with a Preprocessor Directive šŸ–„ļø Are you tired of writing separate code for different operating systems? Do you want your code to adapt based on the environment it runs on? If you answered yes, then you're in the right place! In this g

Cover Image for What are the pros and cons in use of global variables?
c#global-variables

What are the pros and cons in use of global variables?

Published on September 2, 2023

# The Pros and Cons of Using Global Variables in C/C++: Unmasking the Mystery šŸ˜ŽšŸ”šŸ” Welcome, fellow coders! Today, we delve into the fascinating world of global variables in C/C++. There has been a long-standing debate about whether these little beasts a

Cover Image for Best Tips for documenting code using doxygen?
c#

Best Tips for documenting code using doxygen?

Published on September 2, 2023

# Best Tips for Documenting Code Using Doxygen šŸ“ššŸ’» Are you starting to document your code using Doxygen? šŸ“ It's great that you're paying attention to your public API headers, but we know there can be a lot of flexibility and different special commands i

Cover Image for .c vs .cc vs. .cpp vs .hpp vs .h vs .cxx
c#filenames

.c vs .cc vs. .cpp vs .hpp vs .h vs .cxx

Published on September 2, 2023

šŸ“ Hey there tech enthusiasts! šŸ‘‹ Today, we're diving deep into the world of file extensions: .c vs .cc vs .cpp vs .hpp vs .h vs .cxx. šŸ¤” I know it can be confusing, but fear not! I've got your back. Let's break it down together. šŸ’Ŗ Let's start with the b

Cover Image for Significance of ios_base::sync_with_stdio(false); cin.tie(NULL);
c#

Significance of ios_base::sync_with_stdio(false); cin.tie(NULL);

Published on September 2, 2023

# The Significance of ios_base::sync_with_stdio(false); cin.tie(NULL); Have you ever come across the lines of code `ios_base::sync_with_stdio(false); cin.tie(NULL);` in C++ programs and wondered what they actually do? šŸ¤” In this blog post, we will explain

Cover Image for How to disable GCC warnings for a few lines of code
c#gcc

How to disable GCC warnings for a few lines of code

Published on September 2, 2023

# How to Disable GCC Warnings for a Few Lines of Code šŸš«āš ļø Have you ever encountered annoying warning messages when compiling your code with GCC? šŸ¤” These warnings can clutter your build output and make it difficult to spot legitimate errors. Fortunately,

Cover Image for How does C compute sin() and other math functions?
c#math

How does C compute sin() and other math functions?

Published on September 2, 2023

šŸ“ **How Does C Compute sin() and Other Math Functions?** Are you also puzzled by the mysterious implementation of `sin()` and other math functions in C? šŸ¤” Well, you're not alone! Many developers have wondered where these functions are hiding and how the

Cover Image for What does the constant 0.0039215689 represent?
c#floating-point

What does the constant 0.0039215689 represent?

Published on September 2, 2023

šŸ“ **Blog Post: Understanding the Meaning of the Constant 0.0039215689 in Graphics Header Files** Are you a developer who has come across the constant value 0.0039215689 in graphics header files and wondered what it represents? You're not alone! Many peop

Cover Image for How do malloc() and free() work?
c#memory-management

How do malloc() and free() work?

Published on September 2, 2023

šŸ“ **Tech Blog:** How do malloc() and free() work? šŸ”Ž šŸ‘‹ Hey there, tech enthusiasts! Have you ever wondered about the inner workings of the magic duo 'malloc' and 'free'? šŸ’« In this blog post, we'll dive deep into the memory-level details of these functi

Blog | Matheus Mello