Skip to content
0:00 / 0:00

#c#generationalindexes#arenas

Tips for C Programming

Nic Barker

66K subscribers • 5 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

472K views1 year ago3 recommendations

Programming languagesTools and practiceCDebuggingMemory management

Nic Barker shares practical tips for C programming, covering topics like generational indexes, handles, custom allocators, and unity builds.

A quick run through of some tips for programming in C that have helped with my productivity and enjoyment of the language. Referenced in this video: Anthony Calandra, Summary of features introduced in each C version github.com/AnthonyCalandra/modern-c-features Tim Cain, Why I Left Fallout 2: youtube.com/watch?v=UGfaCXEu0tE Lucas Sardois, Generational Indexes: lucassardois.medium.com/generational-indices-guide-8e3c5f7fd… Andre Weissflog, "Handles Are The Better Pointers" floooh.github.io/2018/06/17/handles-vs-pointers.html Function to force the debugger to break: stackoverflow.com/questions/173618/is-there-a-portable-equiv… My videos about Allocators and Arenas: youtu.be/GZ6PuLikw84 youtu.be/hI9aN8ZG4vg If you're interested, I also produce a paid programming fundamentals course at thesimplejoyofprogramming.com - Introduction - C Standards & Versions - Compiler Flags - Unity Build - Debugger - ASAN - Arrays & Strings - Pointers - Arenas

Why it's here

3 people recommend this

What people say. Highly recommended by C programmers as an excellent resource for intermediate tips, particularly regarding memory management and build systems.

Moments people linked to

u/N-R-Kin r/C_Programming • Recommends

Tips for C Programming

u/30DVolin r/C_Programming • Recommends

Very helpful youtube channel for C I have found a very interesting channel from a guy called Nic Barker and thought it would be a good idea to post about it. I have no affiliation. Tips for C Programming He has many very interesting videos but the above is very helpful for beginners.

u/Specific-Housing905in r/C_Programming • Recommends

Tips for C Programming Tips for intermediate level programmers. [video

u/Infinite-Usual-9339in r/C_Programming • Mentions

Build system for first project So I am building my first major project in C and I can't have all of it in a single file anymore. I am using nob.h to build by project which I found the simplest and I was watching this video and the person recommended a unity build system. I am having a hard time with figuring out what to include where. Can someone explain what unity build is, because it sounds simpler but I am confused and have some basic questions like if you still have header files in that system and how do you use the same function in 2 files etc.
6View on Reddit

u/Axman6in r/C_Programming • Mentions

On “Recommend youtube channels about C”

Nick Barker’s tips for C programming video is good, link to this video Also his video about his C based UI library Clay was also excellent link to this video

u/aghast_njin r/C_Programming • Mentions

On “When to use header files?”

…e features still unwritten, bugs not yet fixed, etc.). Basically, you want to take the stuff you ARE NOT working on, and move it out of your way. I suggest you forego header files unless you really, *really* need them. Try using a Unity Build instead, and just include the other source files directly. Here's a video from Nic Barker that explains: link to this video The idea would be to grab your functions, extract them, and replace them with `#include "newfile.c"`. Ideally, these functions should all be close together in your original source file, because your various Standards encouraged you to keep related functions together. (Because all related functions start with the same prefix, like `str...`…
1View on Reddit