Hacker News new | past | comments | ask | show | jobs | submit login

Learn Go with Tests is the best programming language course I've ever gone through.

https://github.com/quii/learn-go-with-tests

That's all. Just sharing that the methodology worked so well. I felt like I could legitimately jump right into a Go developer team.




I can't upvote this enough.

I am going through this course- and it is fabulous. Covers tests, and even though the topic names might seem easy or trivial(I mean there is only so many ways you can write loops or define arrays), they include a lot of "extras" that make it fun- for example one of the topics might include details about how to write doctests and docs, another one might introduce table driven tests and provide advice on when to use them. Overall it is great.

I'd be very interested in seeing this approach applied to other language courses.


The Rust Programming Language book includes tests and how to break down code into packages and other good habits: https://doc.rust-lang.org/book/

Coming from a background in scripting languages, Rust is still a lot more difficult to learn than Go, but I found that book very helpful.


If you like TDD, checkout rustlings https://github.com/rust-lang/rustlings/. I'd recommend https://exercism.io/, but there's such a shortage of mentors for the Rust track that you can get blocked very easily waiting for feedback. One of my solutions went un-mentored for over a month - and it was only after I asked someone directly to mentor my solution that it passed. If that weren't a problem, I would highly recommend exercism.io


Unfortunately, the code examples in the Rust book still feels like toy projects / toy code.

What I like about the Go book is that it feels production-ready, even though it is simple. This is because it is following industry best practices. There's no "code in isolation", if that makes sense.


I feel like tests have always been the best way for me to understand what's actually going on in the code. Seems like a great way to learn!


learn go with tests is great. I still refer to it occasionally even though I finished it a long time ago


Is there something similar too this for Python or Django?


Probably Test-Driven Development with Python.

http://www.obeythetestinggoat.com/pages/book.html




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

Search: