Hacker News new | ask | show | jobs
by Revell 3947 days ago
Why not use a real-world example of something you would write a class for? The best tutorials are the ones that teach you things you can actually use. I've never used an Animal or Vehicle class myself. A better example might be to write something like an Article class, and then build out to a very simple and minimal blog?
1 comments

That's a good point. As a second suggestion, I think I liked Dive Into Python's example of a mp3-file metadata parser, from way back when I learned python

http://www.diveintopython.net/object_oriented_framework/inde...