Hacker Newsnew | past | comments | ask | show | jobs | submit | smgibson's commentslogin

any tips for someone struggling with trying to learn Python? Im struggling motivation wise, dont have much direction. I hear its good to learn through a project or something you want to build, but I dont know enough about the language to really have a good idea of a project or goal I can aspire to


One of the best decisions I made (programming-wise) was to find a local Dojo. Really, just look for a Python user or interest group. You'll get lots of ideas and a motivation injection every week.

Also, you should start a project that's slightly above your current level. Anything will do, even if it's a clone of something that already exists. It doesn't matter if you're building it by googling and copy & pasting everything. At your level, what matters it to actually ship something.

Finally, read other people's code. Github is your friend; find an interesting library, go back to the very first commit and start reading the code base as it used to be. If you find a function/routine that you don't understand, just type it line-by-line in your repl (bpython or ipython in this case) and inspect the outcome of variables/function calls (use python docs/stackoverflow as reference). You don't need to read an entire library, it could be just a small piece of functionality. You'll grow by leaps and bounds just by doing this.

Good luck and if you need any help, shoot me an email, I'd be glad to help.


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

Search: