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

Programming

17528 readers
247 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
 

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
[–] iarigby@lemmy.world 3 points 7 months ago (2 children)

the can’t add proper typing without adding a compiler. Whatever they add will be closer to puthon’s type hints. I’ve had to write primary in python lately and type hints help very very slightly, and tools like pyright catch so many false errors due to lack of hints in libraries that we’re forced to add ignore statements on too many lines. I genuinely don’t understand how there can be so many languages and all of them be painful to use

[–] testAccount@programming.dev 3 points 7 months ago (1 children)

I genuinely don’t understand how there can be so many languages and all of them be painful to use

What about kotlin?

[–] iarigby@lemmy.world 3 points 7 months ago (1 children)

yes I heard it’s great. Scala was one language where I didn’t constantly feel like getting hit in the head with a hammer and I’ve heard Kotlin has a similar experience. I’m not interested in Android development so I haven’t tried it

[–] BatmanAoD@programming.dev 3 points 7 months ago (1 children)

Kotlin isn't just for Android; IMO unless you're trying to do purely functional programming, it's preferable to Scala for JVM work.

[–] testAccount@programming.dev 1 points 7 months ago* (last edited 7 months ago)

Yeah anywhere were you would use Java. Scala has a too high adoption cost. Kotlin is better suited for enterprise, has a stronger ecosystem and better interop with Java. I did enjoy scala though when experimented with it. The only thing I missed was the lack of control flow, no labels, continue, break

[–] aidan@lemmy.world 2 points 7 months ago (1 children)

I have very minimal pain in Go

[–] iarigby@lemmy.world 2 points 7 months ago (1 children)

I’ve heard good things about it, looking forward to learning it (hopefully soon)

[–] aidan@lemmy.world 3 points 7 months ago

I was able to pick it up extremely quickly. Just basically looking at existing projects. Tbh, I don't even know how I learned it.