News for hackers. Stuff that matters.
Re:Show HN: Lona – Framework for responsive web apps in full... by IshKebab on Thursday August 12, 2021 @06:09AM (#28154327)
Even "old" statically typed languages like Java and C++ are streets better than dynamically typed languages like Python (without type hints).

I don't think people have that view because they haven't experienced modern static typing systems. I think they have that view because they aren't willing to admit that they make the kinds of mistakes that static types help with, and they aren't willing to admit that they benefit from the kinds of assistance that static types provide (autocomplete, go to definition, etc.).

It's annoying.

Re:Show HN: Lona – Framework for responsive web apps in full... by haolez on Thursday August 12, 2021 @09:25AM (#28155979)
I get autocomplete and goto definition with dynamic languages just fine. And I make mistakes that static typing could have helped, but then again they are not frequent enough to justify the bureaucracy (and they don't break production).

Of course, there is no general rule. This is true for the type of projects that I've been recently working on, which are small-scale distributed web systems.

If a new project demands a rigorous type system, I would probably go to something like PureScript[0] before going to C# clones like TypeScript. It seems that the compiler would help me a lot more in a language like that.

[0]https://www.purescript.org/

Re:Show HN: Lona – Framework for responsive web apps in full... by IshKebab on Thursday August 12, 2021 @04:51PM (#28161296)
> I get autocomplete and goto definition with dynamic languages just fine.

No you don't. See how autocomplete does with this function:

    def foo(s):
        s.
Now try it with type annotations:

    def foo(s: str):
        s.