EDIT: cloc actually reports 196 lines of code into the file multi.c, but there are additional features including check-and-set that is ~50% of the code, so yep, pretty much 100 lines of code.
EDIT: cloc actually reports 196 lines of code into the file multi.c, but there are additional features including check-and-set that is ~50% of the code, so yep, pretty much 100 lines of code.
I think your advice applies especially to systems programming, and less so to CRUD type apps, or even any in higher level languages. On one hand, you can hardly do anything in 100 lines of C. It's "too low level." On the other hand, once a C codebase reaches critical mass with enough supporting logic and utility code, you can accomplish more in 100 lines of C than you can in any other language.
There's something deceptively powerful about programming at such a low level. The primitives you reason about are extremely simple. But when combined with the rest of the codebase, and supporting libraries in higher level languages, suddenly you can leverage the primitive logic to incomparable levels.
Redis is a great example of solid, fundamental low-level programming enabling high-level performance improvements.
not just to be able to make something work, but being able to manage the scope of the solution to keep things simple sometimes you get a better solution by doing less