// hell at first, solid now

C

7 min read

This is not a tutorial, and it’s not a changelog entry pretending to be a retrospective. It’s a page I intend to come back to every few months and edit — sometimes just a paragraph, sometimes the whole verdict — as my relationship with C changes. Think of it as a living opinion rather than a finished one. Right now, in late 2025, here’s where things stand.

Where I stand with it

C was the first language that made me feel stupid in a useful way. I came into my external-degree coursework having already poked at HTML, a bit of PHP, and the usual beginner scripting detours, and none of that prepared me for a winter semester where “why does this segfault” became a daily personal question rather than a theoretical one. I don’t say that as a complaint. It’s the reason C occupies a different mental shelf than every language I’ve touched since.

My skill level here is best described as “dangerous in a lab, cautious in anything that matters.” I can write a linked list, a hash table, a small arena allocator, and I understand malloc/free well enough to know exactly why I should be scared of them. I’ve debugged double-frees with valgrind until the output started making emotional sense instead of just technical sense. I don’t reach for C by default for anything — I reach for it when I want to understand what my other languages are doing underneath, or when a homelab project genuinely needs to live close to the metal (a tiny health-check daemon, a packet-sniffing toy, that sort of thing).

What I don’t have is production experience. Everything I’ve written in C has been coursework, labs, or deliberate self-inflicted exercises — never something with real users or real consequences if it leaks memory for six months. That distinction matters, and I want to be honest about it here instead of overselling a semester of undergrad pain as “systems programming experience.” It isn’t, yet.

What I think of it

C is the language I respect the most and enjoy the least, and I think that’s by design rather than a flaw. It gives you almost nothing — no bounds checking, no generics, no real module system, a standard library that feels like it was finalized in 1989 because it mostly was — and in exchange it gives you an honest, unfiltered view of what your code is actually asking the machine to do. Every other language I’ve used since has felt, in some small way, like it was apologizing for C’s rough edges while quietly depending on exactly the model C exposes: a flat address space, explicit lifetimes, pointers that are just numbers if you squint.

The thing I didn’t expect is how much C clarified languages I already “knew.” Once you’ve manually walked a struct’s memory layout, padding and alignment stop being trivia and start being intuition. Once you’ve caused and fixed your own use-after-free, Python’s garbage collector stops being invisible magic and starts looking like a very specific trade-off someone made on your behalf. C didn’t make me want to write everything in C. It made me understand what every other language is protecting me from, which is arguably more valuable.

That said, I don’t romanticize it the way some systems programmers do. The error handling story (return codes, errno, remembering which functions set it and which don’t) is genuinely bad by modern standards. The lack of a real package manager or build system convention means every C project reinvents some fragile Makefile ritual. Undefined behavior as a concept is simultaneously the thing that makes C fast and the thing that makes entire categories of security vulnerabilities possible — and having spent time on the security side of this blog, that tension is not abstract to me. I like C. I don’t trust myself with it unsupervised on anything that faces the internet, and I think that’s the correct amount of trust to have.

Where I go to learn it

My primary anchor is still “The C Programming Language” by Kernighan and Ritchie — yes, the famously terse one. I didn’t love it on first read; it assumes a kind of mathematical comfort with notation that a self-taught brain doesn’t automatically have. On a second pass, after I’d already been burned by a few pointer mistakes, it clicked in a way that felt almost unfair — like the book was waiting for me to earn it.

For the parts K&R doesn’t cover well — modern tooling, sanitizers, what “undefined behavior” actually means in compiler terms — I lean on:

  • cppreference.com’s C section — not as pretty as the C++ side, but exhaustive and precise, and I trust it over most blog posts when I need the actual standard’s wording.
  • Matt Godbolt’s Compiler Explorer — watching what -O2 does to a loop I just wrote taught me more about “what the compiler is allowed to assume” than any article did. I use it almost every time I write something performance-sensitive, just to see the assembly and confirm my mental model wasn’t lying to me.
  • “Beej’s Guide to Network Programming” — a free resource that is somehow both more approachable and more useful than most paid books on the same topic. If I ever write that homelab packet tool, this is where the socket code will come from.
  • Valgrind’s and AddressSanitizer’s documentation — less “learning resource” in the traditional sense, more “the thing that teaches you C by yelling at you.” I’ve learned more about memory safety from reading a sanitizer’s stack trace than from any chapter on the subject.
  • comp.lang.c and various long-running C mailing lists, mostly in archive form — the signal-to-noise ratio is wildly inconsistent, but the arguments people have had over decades about things like restrict, strict aliasing, and signed integer overflow are some of the most precise technical writing I’ve found anywhere, buried in forum threads from people who clearly cared too much.

I’m deliberately not reaching for “modern C” abstraction libraries or frameworks right now. Part of the value I get from this language is sitting in the discomfort of its minimalism, and I think wrapping that in convenience too early would undercut the exact reason I keep coming back to it.

One more thing worth naming honestly: a decent chunk of my respect for C comes from watching the compiler, not just the language. Switching between gcc and clang on the same file and comparing warnings (-Wall -Wextra on both, not just the default flags) taught me that “the compiler would have caught that” is a much weaker claim for C than I assumed coming in — plenty of real mistakes compile cleanly with zero warnings on both toolchains, and only a sanitizer or a crash catches them. That’s not a complaint about gcc or clang specifically; it’s a complaint about how much the language leaves to runtime by design, which loops right back to the undefined-behavior conversation above.

If I’m honest about the overall verdict, having put real distance between myself and that winter semester: C was hell to learn and it’s good and solid to know. Those aren’t in tension. The misery was mostly the misery of having nothing to hide behind — no garbage collector, no bounds checking, no helpful exception with a stack trace pointing at the problem. Once that misery produced an actual mental model of memory, the language underneath it turned out to be small, stable, and honest in a way I’ve come to genuinely respect rather than just tolerate.

Where this is headed

The next update to this page will probably come after I finish something slightly more ambitious than a lab exercise — a small networked tool I can point at my homelab and actually leave running. Until then, consider this the “respectful but cautious” phase of the relationship: I trust C to teach me things nothing else can, and I don’t yet trust myself to wield it unsupervised. Both of those can be true at the same time, and right now, they are.