Simple Dynamic Array in CVectors/Dynamic Arrays are one of the most important data structures used in almost all programs. In C there is no notion of a dynamic array so the programmer must create their own. There are many ways to do this but my favorite way is Sean Barret's ...Jan 13, 2023 · 4 min readjonahmgoldsmith.hashnode.dev
Don't Be Scared of Ternary OperatorsSometimes when looking through a C/C++ codebase you may see these weird symbols littered through code that you do not understand. For example: z = (x < y) ? 10 : 0; When I first started coding these operations scared me because I had no idea wha...Jan 12, 2023 · 2 min readjonahmgoldsmith.hashnode.dev
Temporary Allocations in C/C++Memory management is a very important part of programming in low-level languages. But you don't always need memory to last forever. Sometimes you might need memory only for a short amount of time, maybe to format a string or to load temporary data in...Jan 11, 2023 · 7 min readjonahmgoldsmith.hashnode.dev
Project Design in C/C++Design What do I mean by project design? What I mean is the rules that you follow while developing your projects. This could be syntax rules, header include rules, directory structure rules, and anything else that you want to keep consistent while de...Jan 9, 2023 · 3 min readjonahmgoldsmith.hashnode.dev
A Beginner Dive into CMakeIf you are a C/C++ developer you already know that the ecosystem has a few problems compared to higher-level languages. The biggest one is the lack of a concrete build system. Languages like Rust and Java have native build systems that take care of c...1DOct 28, 2022 · 3 min readjonahmgoldsmith.hashnode.dev