Live data from Hacker News

90% of Python in 90 Minutes (2013)

slideshare.net

31–40 of 61 posts

Re: 90% of Python in 90 Minutes (2013)

#32
post #26

Earlier quoted context omitted.

Yes, in fact that's the point I'm trying to focus on but never made explicit. Thanks.

Integer division rounding toward negative infinity makes it so that for integers a, b, with b > 0, then if a%b is defined as a - b * (a/b), you will always have 0 Integer division rounding toward zero makes that not so. a%b for negative a, positive b, will be On the other hand, rounding toward negative infinity means that (-a)/b != -(a/b), when b does not divide a. Rounding toward zero makes (-a)/b = -(a/b). I think…

Eric Lippert, a former C# compiler developer, has a good blog post [1] discussing the reasoning and the difference between modulus and remainder.

[1] https://blogs.msdn.microsoft.com/ericlippert/2011/12/05/what...

Re: 90% of Python in 90 Minutes (2013)

#33
This seems like a less-polished version of 'Learn X in Y Minutes'.

Dropping phrases like "REPL" and "PEP" and only defining what they stand for doesn't really explain what they are. And the explanation of dunder methods at first seemed to suggest there are only 2.

And calling this 90% of Python is really misleading. It's not even 90% of the syntax, let alone the whole language.

Re: 90% of Python in 90 Minutes (2013)

#34

I guess if learning 90% of something takes 90 minutes, the remaining 10% will take 10 years.

> I guess if learning 90% of something takes 90 minutes, the remaining 10% will take 10 years. Wow !!! so funny , but TRUE

(off topic but I felt a word of advice might prove useful).

If you find yourself downvoted and wonder why - please consider two things that don't go down well on Hacker News:

1. Arbitrary capitalization for emphasis and multiple exclamation marks makes you sound a little breathless and over-excited.

2. Your post was pretty much content-free.

Re: 90% of Python in 90 Minutes (2013)

#35
That's nowhere near 90% of Python. It's strange because everyone thinks Python is an easy language to learn, but that's not True at all. It's easy to pick up and be productive with it in a very short time, yes, but the interpreter has so much going on you can't learn everything in years. If you happen to learn everything about protocols, the interpreter gotchas, there is the standard library which is also huge, and if you got everything in it, there is the ecosystem, which is so large nobody can know about every package. And I did not talked about the whole new world of Python3, asyncio and the whole old world of Twisted.

Re: 90% of Python in 90 Minutes (2013)

#38
This is a nice little presentation! Although I wish there was a "context switching" guide that highlights the main differences between all of the languages. After working in Julia or Python for 8 hours, I switch to JavaScript and suddenly forget how strings work. I wish there was a giant table with all of the main differences between the major languages listed so I can glance at it quickly and be on my way.

Re: 90% of Python in 90 Minutes (2013)

#39

This is a nice little presentation! Although I wish there was a "context switching" guide that highlights the main differences between all of the languages. After working in Julia or Python for 8 hours, I switch to JavaScript and suddenly forget how strings work. I wish there was a giant table with all of the main differences between the major languages listed so I can glance at it quickly and be on my way.

That's my main reason for thinking really long and hard about what eco-systems to invest in. I've settled on Python and Erlang for now and I really hope that that bet will pay off. Everything else except for Java seems transient to me.

Re: 90% of Python in 90 Minutes (2013)

#40
post #35

That's nowhere near 90% of Python. It's strange because everyone thinks Python is an easy language to learn, but that's not True at all. It's easy to pick up and be productive with it in a very short time, yes, but the interpreter has so much going on you can't learn everything in years. If you happen to learn everything about protocols, the interpreter gotchas, there is the standard library which is also huge, and i…

> If you happen to learn everything about protocols, the interpreter gotchas, there is the standard library which is also huge, and if you got everything in it, there is the ecosystem, which is so large nobody can know about every package.

I don't think the library and packages are part of the language though. Just like there is a 'C' without a standard library there is Python 'the language'.

As for the 90%, 90% of the code you write is boring and simple. The one thing I really missed in the slides was list comprehensions, presumably they are in the '10%', but I use them all the time.

Post reply on HN