I was talking to my manager the other day, discussing the languages we are using at $dayjob. He kind of offhandedly said that he thinks TypeScript is a temporary fad and soon everything will go back to using JavaScript. He doesn't like that it's made by Microsoft either.

I'm not a frontend developer so I don't really know, but my general impression is that everything is moving more and more towards TypeScript, not away from it. But maybe I'm wrong?

Does anyone who actually works with TypeScript have any impression about this?

you are viewing a single comment's thread
view the rest of the comments
[–] 11 points 2 years ago (3 children)

Dynamic typing is not a fad.

Python is older than Java, older than me. It is still going strong.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 8 points 2 years ago* (last edited 2 years ago) (1 child)

    Python also has a statically typed option these days.

    Edit: Previously said "strongly" instead of "statically"

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago (1 child)

    Which one? There is static typing with the typing module, but that's not strong.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago (1 child)

    I should have said statically typed, fixed.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago (1 child)

    Ah, gotcha, thanks! I'd have loved a strongly-typed option.

    The static typing system is slowly getting there, but many useful Python patterns can't be expressed yet. You can, for example, write a function that appends an item to a generic tuple - but you can't concatenate two tuples. I really hope they keep expanding on the system!

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago (1 child)

    Isn’t Python already strongly typed?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago (1 child)

    No:

    $ python 
    Python 3.10.13 (main, Jan 28 2024, 03:02:00) [GCC 13.2.1 20230918 (Red Hat 13.2.1-3)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> def handle_foo(value: list[int]) -> bool:
    ...     return 42
    ... 
    >>> print(handle_foo(False))
    42
    
  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago

    I haven’t used Python since around the time when type hints first became a thing so I might be completely wrong here, but isn’t this because Python just generally ignores type hints? If you ran a static type checker like mypy over this it would complain right?

    Also, if you actually did anything with the list that you couldn’t do with a bool (e.g. len(value)), it would throw an error too because Python is actually pretty strict about types, just only at runtime. That’s why it’s usually considered to be strongly typed, although people don’t seem to agree what exactly that’s supposed to mean.

  • source
  • parent
  • [+] -15 points 2 years ago (2 children)

    "Strong"... how many actual projects run on python?

    Half of the internet ( backend) runs on java, banking, your government systems, etc.

    It's not a fad, it's just unusable for anything other than research project and small time scripting, which to be fair, it's what it's designed for.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 12 points 2 years ago (1 child)

    You have no idea. Python (and Ruby) are used widely in the industry. Large parts of YouTube are written in Python, and large parts of GitHub are written in Ruby. And every major tech company is using Python in their offline data pipelines.

    I know of systems critical to the modern web that are written in Python.

  • source
  • parent
  • hideshow 2 child comments
  • [+] -17 points 2 years ago (1 child)

    With how shit youtube is I am not sure you made a great case for python mate.

    And every major tech company is using Python in their offline data pipelines

    Thats a meaningless statement, ETL tools can execute python as part of a multi step process and then yeah they use python in their data pipeline, but the ETL tool that orchestrates it is which is the actual value add software is not written in Python it's written in Java, I know this for a fact...

  • source
  • parent
  • hideshow 2 child comments
  • [–] 18 points 2 years ago* (last edited 2 years ago) (1 child)

    With how shit youtube is I am not sure you made a great case for python mate.

    I'm not good with names about logical fallacies but that sure is one. You asked for "actual projects" and YouTube is one of the biggest and most popular platforms out there. That you personally dislike it is irrelevant.

    ETL tools can execute python as part of a multi step process and then yeah they use python in their data pipeline, but the ETL tool that orchestrates it is which is the actual value add software is not written in Python it's written in Java

    So what's your point, that interpreted languages don't count because they're interpreted? Why stop there? It's the actual C compiler that was used to compile the JRE that brings the value here, so your ETL tool doesn't count.

    You're either a troll or a joke.

  • source
  • parent
  • hideshow 2 child comments
  • [+] -11 points 2 years ago (1 child)

    If you dont know the difference between software and script I am not sure I can explain it to you...

  • source
  • parent
  • hideshow 2 child comments
  • [–] 8 points 2 years ago (1 child)

    That distinction is not relevant at all in this discussion.

    But hey, I think that's one I know: should count as a strawman.

  • source
  • parent
  • hideshow 2 child comments
  • [–] -4 points 2 years ago (1 child)

    How is it not relevant? This is my comment you are replying to

    It's not a fad, it's just unusable for anything other than research project and small time scripting, which to be fair, it's what it's designed for.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 2 years ago (1 child)

    I'm sorry, apparently I missed that because of your dismissal of YouTube.

    To make up for it I have another small scripting example for you: the Instagram backend runs on Python, too.

  • source
  • parent
  • hideshow 2 child comments
  • [–] -5 points 2 years ago* (2 children)

    So, to my example of critical, important infrastructure of government and banking running on Java, your reply is, youtube and instagram.

    That's lit mate, no cap, frfr. (Sorry I am not that familiar with your gen's slang)

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 2 years ago*

    No, I'm not going to follow your logical retreat any longer. You said

    it's [Python] just unusable for anything other than research project and small time scripting

    You were presented with not small but big time scripting and two of the largest and most popular modern web platforms of the world (BTW I neither use nor like those myself but that's, as mentioned, irrelevant) and still cannot admit you're wrong, so I don't think you would even if I dug out some examples in "serious" fields (apparently building trillion dollar companies on such platforms isn't serious enough).

    Also never assume generations. According to social media demographics, odds are I'm older than you.

  • source
  • parent
  • [–] 9 points 2 years ago (1 child)

    I work in investment banking environments (calculations). Python is everywhere. Java and C++ as well.

  • source
  • parent
  • hideshow 2 child comments
  • [+] -11 points 2 years ago (1 child)

    Yeah calculations, not actual software... how is this hard to understand... you don't write long lived, stable software that multiple developers work on that needs to do real work in python

  • source
  • parent
  • hideshow 2 child comments