this post was submitted on 02 Apr 2024
143 points (98.6% liked)

Programming

17524 readers
401 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

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
[–] DannyBoy@sh.itjust.works 78 points 7 months ago (19 children)

As long as JavaScript is being used, TypeScript will be used. It makes writing JavaScript tolerable.

[–] jeremyparker@programming.dev 31 points 7 months ago (18 children)

Imo they'll add typing to vanilla js, which will kill ts.

[–] exocrinous@startrek.website 5 points 7 months ago (1 children)

That would be a great solution, because while I love Typescript, I hate compiled web code. One of the coolest things about the internet is that as it's supposed to work, you can download the source code for any website you go to. It's open source by design. I hate closed source websites and I hate compiled website code that helps close the source it's quite a contradiction because typescript is awesome and I recognise that compilation is the only way to get it to run on our web infrastructure. So it would be great if we could just type JavaScript and solve the contradiction that way.

[–] Lojcs@lemm.ee 5 points 7 months ago* (last edited 7 months ago) (2 children)

Doesn't typescript compile to js anyways? Is it obfuscated?

[–] Daxtron2@startrek.website 3 points 7 months ago

It transpiles to js and there is some level of stripping for optimization yes.

[–] lolcatnip@reddthat.com 3 points 7 months ago

It's not intentionally obfuscated or minified. Generally it just strips out types and comments, but depending on how it's configured, it will rewrite certain things to work in ES5. At my work our build process uses a separate minification and bundling step, which also serves to a obfuscate our proprietary code.

load more comments (16 replies)
load more comments (16 replies)