6 ms·
Ask HN: Learning Test Based Programming
What resources do you recommend for me to learn Test Based Programming? I have a little exposure to the concept, but I generally do not think of programming in that way. While I have added some tests to some of my programs, I have met people who start with testing, and I'd like help developing that mindset.
- cratermoon 4y agoTest-Driven Development By Example by Kent Beck
- typhonic 4y agoThanks. I have it on order.
- tedyoung 4y agoBest way to learn (as with most things) is by doing. As mentioned, TDD by Example (Kent Beck) is a good start. Pairing or coding in a group ("mob programming" or "ensembling" as it's called) is even better than doing it on your own. You can also watch me build a complete small game from scratch using TDD here: https://www.youtube.com/watch?v=LjYKzodYuoE&list=PLBHctPrH7Z28J2MJvUTRHN2K6RbSiY-Pm https://www.youtube.com/watch?v=LjYKzodYuoE&list=PLBHctPrH7Z...
- deleted 4y ago[deleted]
- jdlshore 4y agoI have a free video series here: https://www.jamesshore.com/v2/projects/lunch-and-learn https://www.jamesshore.com/v2/projects/lunch-and-learn In contrast to a lot of material out there, this spends comparatively little time on questions like "how do I test a function" and more time on real-world questions like "how do I test a network call." PS: The correct term is "Test-Driven Development," unless I've misunderstood you, and if you search for that term you'll find countless articles and resources. But I still like mine. ;-)
- typhonic 4y agoThanks. I realized I had the term wrong when the answers came in. Probably one reason I was having trouble finding information.
- sn9 4y agoIf you have an interest or experience in web development, there's a book on TDD for web development with Python you can read for free online: https://www.obeythetestinggoat.com/pages/book.html https://www.obeythetestinggoat.com/pages/book.html