News for hackers. Stuff that matters.
Re:Untyped Python: The Python That Was by dehrmann on Saturday December 02, 2023 @03:53PM (#38501941)
> There was a stellar developer experience. Yes it did not have intellisense, but all the changes that I did appear on the web instantly.

> ...after I deployed bad code and it blew up in someone's face, I got an email that not only shows a perfectly readable stack trace, but also a line of source code for the frames.

This is an odd contradiction. On one hand, he values the fast feedback loop you get from edit-and-reload style development, but on the other, he doesn't appreciate the instant feedback from the type checker saying it's not gonna work.

Re:Untyped Python: The Python That Was by berkes on Saturday December 02, 2023 @04:25PM (#38502182)
It's a contradiction I see in this discussion quite often.

If you want "quick feedback loops", a type checker is probably one of the quickest. Almost always quicker to give feedback than tests even. And certainly quicker than ftping code to a webserver and clicking through a webapp manually.

Re:Untyped Python: The Python That Was by sramam on Saturday December 02, 2023 @04:35PM (#38502261)
Modern JS (actually TS) tooling has adopted a middle ground. There is an instant feedback - un-type-checked version that runs (typically used in dev mode) with instant-feedback/hot-reload, and a slower compile and build flow that builds for production.

I was initially not very convinced of the benefits - why have a type-checker if you won't use it in the small? But IDEs provide much of the benefit inline while writing code and this is seldom a real problem from the DX perspective.

My skepticism was unwarranted.

Re:Untyped Python: The Python That Was by XCabbage on Saturday December 02, 2023 @04:54PM (#38502433)
With Python + mypy you get this middle ground as well. No need to type-check before you run your code, if you don't want to.