this post was submitted on 28 Jan 2026
41 points (100.0% liked)

Programming

26127 readers
827 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 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Azzu@lemmy.dbzer0.com 3 points 1 month ago* (last edited 1 month ago) (2 children)

I mean once you write your app in typescript, you can't "go back" to pure JavaScript, you'll always have to use the typescript compiler to generate JavaScript (of course you can rewrite it later again, but will take potentially lots of effort). I'm pretty sure that's what they meant with "incompatible". You are now locked into M$ ecosystem.

[–] Feyd@programming.dev 4 points 1 month ago

You're being too generous. Calling typescript a rewrite shows the author chose something as an example they clearly don't understand the first thing about.

[–] TehPers@beehaw.org 1 points 1 month ago (1 children)
tsc

And now you're back to pure JavaScript.

[–] Azzu@lemmy.dbzer0.com 1 points 1 month ago* (last edited 1 month ago) (1 children)

Sure, but with lots of generated code that's going to be hard to be human readable and changeable. It's definitely more work to add a feature to the code generated by the compiler, than to add a feature if the code was initially written in JavaScript.

[–] TehPers@beehaw.org 1 points 1 month ago

By default, doesn't tsc just output the source TS files with type info stripped? Worst case you run a formatter on that output and you're done.

There's some nonstandard TS features like the iterator shim and decorators and such, but you don't get those by default from what I remember.