Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ziglings: Learn the Zig programming language by fixing tiny broken programs (codeberg.org/ziglings)
30 points by tosh 20 hours ago | hide | past | favorite | 4 comments




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!

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.


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/


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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: