News for hackers. Stuff that matters.
Re:Ask HN: What was your biggest regret about learning progr... by japhyr on Monday March 07, 2016 @10:03AM (#11239239)
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.

Re:Ask HN: What was your biggest regret about learning progr... by markcmyers on Monday March 07, 2016 @03:26PM (#11241356)
I'm interested in your Python book. What is the title?
Re:Ask HN: What was your biggest regret about learning progr... by japhyr on Monday March 07, 2016 @04:09PM (#11241703)
Re:Ask HN: What was your biggest regret about learning progr... by hanniabu on Tuesday March 08, 2016 @10:07AM (#11245624)
Wow, 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!
Re:Ask HN: What was your biggest regret about learning progr... by japhyr on Tuesday March 08, 2016 @02:36PM (#11247866)
Thanks 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.