• thomascountz 21 hours ago

    I just nearly finish Ziglings and it's great! Though the skipped exercises around async is confusing as a newcomer. From the Codberg issues and PRs, it seems like perhaps an update is in the works. Otherwise, I learned a lot and would recommend it!

    • dardeaup 6 hours ago

      I've been holding off on Zig because it hasn't reached 1.0 milestone, but I'm starting to think that it might be time to start digging in. Is Ziglings kept up with language changes being made in Zig? It would be very frustrating to find that Ziglings is out of sync with the newer version of Zig that you might be using at the time.

      • hiccuphippo 13 minutes ago

        It uses the development version so it keeps in sync. I don't think we'll see many changes in the language itself before 1.0, they are no longer accepting changes to it. Most changes from now on will be in the Standard Library.

      • naikrovek 19 hours ago

        async/await is confusing in every language it is implemented in. Whoever came up with this paradigm has (or at the time, had) zero idea about usability. It is the programming equivalent of the programmer user interface. Makes perfect sense to the one person because they wrote it; it’s an enormous pain for everyone else.

        Raw threads and doing everything manually makes far more sense to me.

        And of course Goroutines in Go make the most sense but they’re not as performant as something like Zig by any means.

      • sbmthakur a day ago

        Looks nice! I would love to see a resource that teaches you Zig by writing tests. Something similar for Go was posted a few years ago.

        https://quii.gitbook.io/learn-go-with-tests/

        • thomascountz 20 hours ago

          I really really enjoyed Learn Go with Tests, and I'd say Ziglings (though it uses patched compiler errors and not test failures) is functionally similar. Albeit with the former, you also learn how to write tests and end up writing a lot more code by hand.