4 ms·
I wish I had learned about testing earlier. The idea of testing code was never covered in any of the introductory books I read. I learned the basics of C, Fort
by japhyr 11y ago
I wish I had learned about testing earlier.
The idea of testing code was never covered in any of the introductory books I read. I learned the basics of C, Fortran, and Pascal while doing a physics undergrad in the 90's, then I learned Java and Python in the 00's on my own from books and websites. None of the introductory books I read introduced the concept of testing. It wasn't until I started reading programming blogs on a regular basis that I started writing tests for my code. Once I did, the quality of my code immediately improved and I felt much more confident in the code I wrote.
When I wrote an introductory Python text recently I included a chapter on the most basic aspects of testing. Beginners don't need to write tests for everything they write, but they should definitely be aware of the concept.
- markcmyers 11y agoI'm interested in your Python book. What is the title?
- japhyr 11y agoPython Crash Course: http://nostarchpress.com/pythoncrashcourse http://nostarchpress.com/pythoncrashcourse
- hanniabu 11y agoWow, I feel like I'm meeting a celebrity. I absolutely love your book! I'm about a third of the way through and love the flow and logical process you take when going through the lessons and what to teach in what order and you use great examples. Thank you so much for writing this Eric!
- japhyr 11y agoThanks for the kind words! I'd love to hear your feedback as you work your way through the rest of the book, so feel free to get in touch if you'd like.