5 ms·
I find that stuff enjoyable. I almost never use malloc, I learnt to use calloc so it's my go-to allocator. Whenever I write an allocation I try to write a free
by suprjami 2y ago
I find that stuff enjoyable. I almost never use malloc, I learnt to use calloc so it's my go-to allocator.
Whenever I write an allocation I try to write a free after it, then fill in the code in between.
Use of static analysers and sanitisers helps too.
Like some people enjoy making all their hand tools from scratch in their workshop, there's a craft and discipline to follow and a satisfaction in doing things well, I enjoy the craft of and discipline C for the same reason.