News for hackers. Stuff that matters.
Re:Beej's Guide to C Programming by version_five on Sunday February 26, 2023 @12:12PM (#34947178)
I was actually just looking for a C book. I already "know" (I use the term loosely) C but have little insight into how to write real code, and any best practices.

Will check this out.

Re:Beej's Guide to C Programming by bigdict on Sunday February 26, 2023 @01:15PM (#34947789)
> how to write real code

There are many ways, a codebase would be a better resource than a book.

Re:Beej's Guide to C Programming by beej71 on Sunday February 26, 2023 @01:53PM (#34948206)
I agree. The Guide doesn't give many real-world examples (there are zillions of those already out in the real world). It's about how to swing a hammer and turn a screwdriver, not how to build a house.

That said, I try to make K&R-idiomatic examples when I can. They're just small-scale.

Re:Beej's Guide to C Programming by CamperBob2 on Sunday February 26, 2023 @02:51PM (#34948719)
That's tricky, though. It would be a bad idea to learn C++ from my code, even though it works well enough.

And until you're well along the path to guruhood yourself, you won't know if you're reading good code or bad code.

Re:Beej's Guide to C Programming by c-c-c-c-c on Sunday February 26, 2023 @02:07PM (#34948336)
Get a VM running NetBSD or OpenBSD and check out the source code and play with it!