News for hackers. Stuff that matters.
Re:Python Is Eating the World by squaresmile on Monday August 12, 2019 @07:44AM (#20674480)
I think it's pretty disappointing that most of the top comments don't talk about the interview with Guido himself over the history of Python. Tangentially related discussion is one of the appeals of HN but I think it's a bit out of control here.
Re:Python Is Eating the World by tus88 on Monday August 12, 2019 @08:07AM (#20674620)
Well in just glad this is the top comment, as Python really is taking over the world for a reason.

And of all the bugs I have written in recent memory, not one came down to a lack of static typing. They were due simply to logic errors, flawed assumptions, misunderstood requirements, and good old race conditions. The static typing zealots like to think if it compiles is must be perfect, however this is a mirage. Unit tests in Python can compensate quite well for lack of static typing.

Re:Python Is Eating the World by icxa on Monday August 12, 2019 @09:28AM (#20675196)
Have you ever worked in a large engineering organization full of engineers with varying degrees of experience all trying to accomplish the same goal?

I can't imagine anyone has ever tried to do engineering at scale (people wise) and did not find the value in static typing.

It's why startups eventually moved off RoR once they started scaling. It's why there is such a large push to type JavaScript (have you seen the rollbar article about the top 10 errors in JavaScript? All but one have to do with types: https://rollbar.com/blog/top-10-javascript-errors/), it's why Facebook created Hack, and outside of parentheses repulsion, it's probably why so few large projects have been written in a LISP or LISP descendant.

Python is great for small: small teams, small organizations, small projects with a few dedicated tasks, small scripting tasks. Most people aren't trying to take anything away from python here in the comments save a few irrational responses.

*again want to stress in my comment when I speak of scale I mean scaling people wise: more organizational structures in your company, more engineers, more collaboration between teams.

Re:Python Is Eating the World by flavio81 on Monday August 12, 2019 @05:40PM (#20680323)
>I can't imagine anyone has ever tried to do engineering at scale (people wise) and did not find the value in static typing.

>why so few large projects have been written in a LISP or LISP descendant

The major dialect of Lisp, Common Lisp, is strongly typed, and many large projects have been written in it, for CAD/CAM, controlling a NASA spaceship, complete operating systems (Open Genera), the Mirai 3D graphics suite used for creating Gollum in "the lord of the rings", etc.

Re:Python Is Eating the World by tus88 on Monday August 12, 2019 @03:39PM (#20679119)
From the link:

> 1. Uncaught TypeError: Cannot read property If you’re a JavaScript developer, you’ve probably seen this error more than you care to admit. This one occurs in Chrome when you read a property or call a method on an undefined object.

Does typing stop null object errors in JS, Java or C for that matter? No. You need to continually check for null objects in all langs I use including Python. It seems most of the bugs on that page are of a similar vein.

Re:Python Is Eating the World by joelfolksy on Tuesday August 13, 2019 @04:43PM (#20690030)
Null reference errors in Java and C are due to The Billion Dollar Mistake, which is a specific deliberate weakening of a static type system. Statically-typed languages that do not commit The Billion Dollar Mistake do not have null reference errors.
Re:Python Is Eating the World by jnwatson on Monday August 12, 2019 @12:14PM (#20676798)
And in the same way that folks are adding typing to JavaScript, it has been added to Python.

Python typing is quite similar to Flow, a JavaScript type checker.

Re:Python Is Eating the World by triceratops on Monday August 12, 2019 @03:17PM (#20678868)
> It's why startups eventually moved off RoR once they started scaling.

I thought it was because of Ruby's poor performance characteristics.

Re:Python Is Eating the World by tus88 on Monday August 12, 2019 @03:32PM (#20679043)
I assume we are all taking about Twitter and that's what I thought too.
Re:Python Is Eating the World by icxa on Monday August 12, 2019 @09:54PM (#20682103)
The counter-example to this is github, and obviously basecamp, however.
Re:Python Is Eating the World by yummypaint on Monday August 12, 2019 @11:45AM (#20676474)
Just wanted to mention that you can selectively statically type variables with the cython library. Of course using cython also changes other things and requires compilation, but i have found that it generally just works.
Re:Python Is Eating the World by C1sc0cat on Monday August 12, 2019 @09:14AM (#20675076)
Possibly as the first few paras of the story are just so weird