July 30th, 2024

Show HN: I'm writing an interactive book on Go concurrency

Anton Zhiyanov's interactive book teaches Go concurrency through 44 practical exercises, covering goroutines, channels, and synchronization. Currently in progress, it aims for completion by late 2024, with online access available.

Read original articleLink Icon
Show HN: I'm writing an interactive book on Go concurrency

Anton Zhiyanov has created an interactive book focused on teaching Go concurrency through practical exercises, aimed at programmers already familiar with the Go language. The book emphasizes understanding and applying concurrency primitives rather than just theoretical knowledge. It includes 44 interactive exercises that can be solved with minimal code and are designed to reflect real-world scenarios. The content covers essential topics such as goroutines, channels, synchronization techniques, and data races, structured into two main parts: concurrency basics and synchronization. Each exercise comes with a reference solution and explanation, facilitating a hands-on learning experience. The book is currently a work in progress, with two out of twelve chapters completed, and is expected to be fully published by the end of 2024. Readers can access the chapters online or purchase the book for full access, including a PDF version. Zhiyanov, a Go developer and SQLite enthusiast, previously launched a successful course on Go concurrency, which has received high ratings from students. The book is based on this course, aiming to provide a clear and engaging approach to concurrent programming in Go.

Link Icon 4 comments
By @Art9681 - 9 months
I am a big fan of the author's work. If you have not checked out the Codapi project I highly recommend you check it out as well:

https://codapi.org

By @tomcam - 9 months
I imagine this will be requirement, but please have a section on contexts. As near as I can tell, it is a pointer to a thread safe area for data, but I’m not certain.
By @pants2 - 9 months
I'm excited for this!