Live data from Hacker News

Ask HN: What is your best way to learn Python programming language?

news.ycombinator.com

11–15 of 15 posts

Re: Ask HN: What is your best way to learn Python programming language?

#11
post #10
post #9

Earlier quoted context omitted.

What static language would you recommend? I figure the choices are basically Java or C#. Of the two, I'd likely suggest that Java will be easier only because I think beginners might find .Net a little large to dive into. But I wouldn't call Java a particular compact language that would be good for teaching someone to think like a programmer. What do you think?

The worst language to teach someone as a first language has to be Java. It also might be the worst language to teach someone as a second language.

Java gives me a rash, so writing that last comment took every last bit of restraint I had.

But, I still can't come up with a static language that I'd want to teach someone as a first language. C# would be a good choice, but I don't know how much success a beginner would have with .Net. Typescript is hard to debug unless you know Javascript. I wouldn't wish C++ as a first languge upon anyone. Haskell seems like it would be very frustrating for a beginner. Swift might be okay if they really badly wanted to go mobile, but that's not the case here. Rust is the best I can come up with, though it seems like a tough first language.

Do you have any ideas? I see the value of learning static first, but can't come up with a good language!

Re: Ask HN: What is your best way to learn Python programming language?

#12
post #4

I'm surprised nobody's pointed you to the official tutorial[1] yet. It is decent. [1]: https://docs.python.org/3/tutorial/

+1 to the official tutorial

I'd also recommend LPTHW [1] as complementary.

[1]: https://learnpythonthehardway.org

Re: Ask HN: What is your best way to learn Python programming language?

#13
post #5
post #2

Why Python? I'm not arguing with you because it's a good first language, but what do you want to accomplish? What do you want to do with Python??

I want to build web apps, do data analysis and publish on Internet, and most importantly it is most recommended language for beginners with lots of resources available online. Do you recommend any other language to start with? I am just curious to know how you learn the language, what you use books, videos, project, or blog post? How you take notes (my hand starts paining after sometime)? What is your framework of le…

Python is a great first language for the use cases you mentioned! We have great popular frameworks for web apps such as Django and Flask; and data analysis tools and frameworks like Pandas, NumPy, and Airflow, amongst many others.

Re: Ask HN: What is your best way to learn Python programming language?

#14
post #11
post #10

Earlier quoted context omitted.

The worst language to teach someone as a first language has to be Java. It also might be the worst language to teach someone as a second language.

Java gives me a rash, so writing that last comment took every last bit of restraint I had. But, I still can't come up with a static language that I'd want to teach someone as a first language. C# would be a good choice, but I don't know how much success a beginner would have with .Net. Typescript is hard to debug unless you know Javascript. I wouldn't wish C++ as a first languge upon anyone. Haskell seems like it wou…

Well, I guess if your goal was to learn a statically typed programming language Java or C# would be fine. So I don't disagree with you.

Personally, I have been in the role of teaching people programming, and I have seen what Java does to them. And I remember what it was like when I first encountered it.

So, I don't have a better suggestion if that is the goal. But if the goal is to learn programming, I have plenty to say on that. I worked as a TA for 3 years and from my rather biased experience, I would highly recommend HtDP and Racket.

Re: Ask HN: What is your best way to learn Python programming language?

#15
post #4

I'm surprised nobody's pointed you to the official tutorial[1] yet. It is decent. [1]: https://docs.python.org/3/tutorial/

+1 to the official tutorial I'd also recommend LPTHW [1] as complementary. [1]: https://learnpythonthehardway.org

Not free anymore, unfortunately.

I'm surprised they finally caved in and moved to python3. They were really adamant against it.

Post reply on HN