28 comments

[ 4.7 ms ] story [ 68.6 ms ] thread
I think 'Learn <Programing language> with tests' is good way for someone programing language newer to start.
As someone who has just started learning Go I'll definitely take this on. Kudos for writing a book, definitely something to be proud of!
Thanks for the resource. I have been using Go By Example[1] to learn and your gitbook is a great complement to that.

[1] https://gobyexample.com/

The official Go tour (https://go.dev/tour/) is also a good resource IMHO, especially for people already experienced with other languages, because it points out the key differences.
Read and typed along with an early edition of this a few years back and it has continued to be one of my favorite technical tutorials of all time, far surpassing lots of other golang material that I've paid money for.
Brilliant resource. I learned a lot from real practical examples (compared to the bluebook "The Go programming language"). And I started writing tests religiously after reading it.
Thanks for the resource! I'm having a lot of fun exploring your notebook. I'm not entirely sure why I decided Go would be the net programming language I learnt, but I'm glad I did that!
This is my favorite learning resource for Golang. Thanks for writing it!
Great resource, I am working my way through it as we speak.
I am just using this in the last few days to learn go to change stack, really the best form of tutorial I ever used in my whole cs life.
This is one of the best resources for starting with Go! It’s very practical and teaches a lot of important concepts in an easy to understand way. Cannot recommend this enough! If you read the book and learned something new consider sponsoring the author as a ‘thank you’!
After doing the go tour, this was my learning resource that solidified all the concepts for me. Learning how to test and make tests easy in Go was so beneficial. Most resources only teach the language constructs with maybe a brief mention of testing package
I like a lot the mocking chapter. Very well done.
If you like this you will like the concept of learning with koans or katas. The "rustlings" intro to rust is in such format. Most use test runners but you usually edit the code not the test.

https://github.com/rust-lang/rustlings

https://github.com/gamontal/awesome-katas

https://github.com/ahmdrefat/awesome-koans/blob/master/koans...

Rustlings is a great way to get a feel for what you learn in the Rust Book.
I once found out about that technique for Scala, which actually has an operator / language construct for "fill in the blanks here"; I believe if called it just throws a NotImplementedException or something like that.
This book is hugely different from the katas or koans of the early 2000's though. It teaches you with full program structures that you would encounter in the real world. You come out of the book knowing best practices for building real applications.
This looks like a good structured way to learn Go. Is there a way to turn the lights off on these GitBooks?
Hi, author here.

The project is open-source (https://github.com/quii/learn-go-with-tests) so there's a few options available to you.

In releases, you'll find PDFs and epubs, I'm pretty sure most epub readers will let you use a dark mode. Or you can just read the markdown files on GitHub, which also supports it.

Thanks, I was looking for this but couldn't see it for some reason.
I decided to learn and use Go for my recent job hunt, and this site was just the best. I used the structure of the code in the "build an application" section in every take home coding challenge I wrote.
nice site! Kudos to the developer!
Is there something like this for C/C++?
Go is among the lowest barrier-to-entry programming languages but most entry-level tutorials don't even get into testing, So a test focused entry-level Go tutorial is indeed a fresh take and an useful one.

Congratulations to the author & contributors.