4 ms·
The flip side of this is that as long as your code is valgrind clean, you can get very easy-to-debug code, because C is easy to reason about. While you can cert
by thenoblesunfish 4y ago
The flip side of this is that as long as your code is valgrind clean, you can get very easy-to-debug code, because C is easy to reason about. While you can certainly do better if very careful, I would prefer to work with C and valgrind than, e.g. most C++ code.
- kaba0 4y agoI don’t see how memory allocation is relevant for that. I have seen spaghetti C code (everything is a function pointer) and beautifully readable C++, and vice versa. After a point, it is just personal preference, but in my opinion good C++ code is much much better than good C code. The former actually has tools to express many things about the code.