3 ms·
I've read the redis source code as an example of excellent C programming. Very impressive work sir, hats off to you. I think your advice applies especially to
by chatmasta 12y ago
I've read the redis source code as an example of excellent C programming. Very impressive work sir, hats off to you.
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.