Live data from Hacker News

Ask HN: How did you learn python?

news.ycombinator.com

1–10 of 15 posts

Re: Ask HN: How did you learn python?

#2
I had a couple of resources I used, CodeAcademy and a basic Python course on Udemy. As far as books I used Python Crash Course and Blackhat Python. Blackhat was more learning to write my own tools for pentesting. I also looked at a lot of the tools other folks wrote on github to see how they structured things. And I asked a lot of questions. By no means try one thing when learning Python or any language for that matter. Best advise I ever got from anyone was to write code everyday.

Re: Ask HN: How did you learn python?

#3
Google's Python class is a pretty good start[0]. It's enough to get you started and moves at a nice pace! After that I'd hack on a project of my own. Even better if you have a project in mind before learning the language. This book by Jeff Knup will get you familiar with the pythonic way of doing things[1].

[0]https://developers.google.com/edu/python/ [1]https://jeffknupp.com/writing-idiomatic-python-ebook/

Re: Ask HN: How did you learn python?

#4
post #3

Google's Python class is a pretty good start[0]. It's enough to get you started and moves at a nice pace! After that I'd hack on a project of my own. Even better if you have a project in mind before learning the language. This book by Jeff Knup will get you familiar with the pythonic way of doing things[1]. [0] https://developers.google.com/edu/python/ [1] https://jeffknupp.com/writing-idiomatic-python-ebook/

I would advise against Google's python course, as it is geared toward python devs working at Google. The course teaches Python 2, and goes against widely accepted guidelines such as PEP-8. I highly recommend David Beazley's Python Cookbook (https://www.dabeaz.com/cookbook.html) for the most idiomatic and comprehensive introduction to Python.

Re: Ask HN: How did you learn python?

#5
post #4
post #3

Google's Python class is a pretty good start[0]. It's enough to get you started and moves at a nice pace! After that I'd hack on a project of my own. Even better if you have a project in mind before learning the language. This book by Jeff Knup will get you familiar with the pythonic way of doing things[1]. [0] https://developers.google.com/edu/python/ [1] https://jeffknupp.com/writing-idiomatic-python-ebook/

I would advise against Google's python course, as it is geared toward python devs working at Google. The course teaches Python 2, and goes against widely accepted guidelines such as PEP-8. I highly recommend David Beazley's Python Cookbook ( https://www.dabeaz.com/cookbook.html ) for the most idiomatic and comprehensive introduction to Python.

Hmm, I did this a while back. I realise that I should have suggested a Python 3 resource.

I wouldn't say that the course is geared towards devs at Python. From what I remember it's pure Python and there's nothing "Google" about it.

Re: Ask HN: How did you learn python?

#6
I probably depends on your experience with other languages. At the time I learned python, I had done C++ and Java in school, and PHP professionally. I went through "Learn Python the Hard Way." It was super quick. At that point, I just started slinging Python at work and getting CRs from more experienced folk.

Re: Ask HN: How did you learn python?

#7
I had prior experience with text processing and small scripting tasks with Perl, so I found it easier to learn Python

I started with Automate the boring stuff videos, it was a good refresher to programming concepts as well. I used to conduct Perl basics workshop for my juniors at college, replacing it with Python helped me a lot - both during preparing reference notes as well as while teaching

if finding an avenue to teach (colleagues, juniors etc) is not available, start doing projects - translating something you did in another language, some project you always wanted to do, etc

for beginners to programming, I would strongly suggest Think Python and Automate the boring stuff

Re: Ask HN: How did you learn python?

#9
post #7

I had prior experience with text processing and small scripting tasks with Perl, so I found it easier to learn Python I started with Automate the boring stuff videos, it was a good refresher to programming concepts as well. I used to conduct Perl basics workshop for my juniors at college, replacing it with Python helped me a lot - both during preparing reference notes as well as while teaching if finding an avenue to…

I used the Automate... book. I must say I never found a really good resource to move from that to OOP, unit testing etc. I put a lot of scraps together for that. 'Python 3 Object Oriented Programming' by Dusty Phillips was a help, but not the answer. Lot's of Googling did that.

Re: Ask HN: How did you learn python?

#10
I had prior experience with other programming / scripting languages, and picking Python up felt very natural.

I started with Mark Lutz's Learning Python (http://shop.oreilly.com/product/9780596513986.do) about 10 years ago. In the meanwhile I've been an active contributor to large Python-based open source projects, e.g., Salt (https://github.com/saltstack/salt) which not only that it helped me get feedback from people with a tremendous experience, but also reading through the code taught me good practices and many good ways to solve various problems. A few months ago I started reading Luciano Ramalho's Fluent Python (http://shop.oreilly.com/product/0636920032519.do) which is just beautifully written and with a wide variety of topics for a deeper look inside Python internals.

Post reply on HN