Hi any opinions on the Zig book published on packt
My experience with anything packt is usually very bad
So i was wondering if any one on the forum knows about this book Learning Zig: A reimagined introduction to low-level programming with Zig by Alex Rios
It is difficult to say, as all of the previews give a 404.
While I am confident that there are exceptions, I personally would be apprehensive to buy books of any subject in the modern era from any shady/unknown source due to the prevalence of AI generated garbage.
The fact that Zig is rapidly evolving only exacerbates this problem: a book that was genuinely written with love and care would take considerable time, but rapidly get outdated on various topics. On the other hand an AI-generated book is just going to be plain wrong about many topics, likely using bastardized combinations of previous Zig versions.
and the content in the GitHub repository associated with the book, it seems extremely likely that the writing was at the very least edited by AI. Here’s one example of some writing that has the hallmarks of LLM output, and is generally a pretty bizarrely argued point IMO:
Automatic heap allocation: A ticking time bomb
Then, there’s automatic heap allocation. It’s all fun and games until your system runs out of memory. At that point, your program isn’t just inefficient, it’s unusable. Crashes, hangs, and the dreaded out-of-memory errors are all too common when you let the system decide how and when to allocate heap memory. It’s like handing the keys to your car to someone who doesn’t know how to drive-things might go well for a while, but sooner or later, you’re headed for a crash.
I purchased the MEAP a few days ago as well, and read the three chapters that have been released so far. Not only in-depth and quite high quality, but also just plain enjoyable to read. I can definitely recommend it so far.
Coding documentation does need to have CI and the appropriate tooling to maintain the buildability of all sample code. Even better if that includes tests. Even snippets for publication can be maintained in building/running source, with the right tooling.