When somebody says they've made a new programming language that's a superset of another programming language, generally they just mean they made it harder to use.

@kirch Does this mean you have a negative opinion of Typescript?

I was surprised to find it the second most "loved" programming language in the Stack Overflow survey. That made me consider learning it.

Follow

@skyfaller
To me it's the most "hated" language. If I wanted types I would take Go, Rust or even C/C++. Typescript just brings unnecessary steps and restrictions to the pretty simple and clear pure JavaScript workflow.
@kirch

@VikingKong @skyfaller @kirch i think js devs love typescript the same way java devs love eclipse or intellkj.

@bamfic
Java devs just don't have anything else and it's almost impossible to write Java code without an IDE. Modern JavaScript is good by itself and it doesn't restrict devs in tools they choose. I, particularly use Vim with some set of plugins and it's absolutely enough for me. Why should I use Typescript? I have no idea.
@skyfaller @kirch

@VikingKong @bamfic @skyfaller

I'm a vimmer, and I've been using VSCode with vim bindings thinking the IDE would help me with all the weird new APIs here, and no, not really... I could probably go back to vim and lose nothing except some popup windows (that are either in the latest vim package, or already in neovim, I forget which)

@kirch
I tried using the same and eventually went back to Neovim. I find I loose nothing except slick modern looking interface.
@bamfic @skyfaller

@VikingKong @skyfaller

Absolutely -- I've been calling it metacoding -- because my code works - it just won't compile because of reasons... and then when it does compile, I've got bleeding-edge react to contend with... it's just getting in my way.

@VikingKong @kirch @skyfaller

I used to believe that either you Go All The Way with static typing and end up with Haskell and Idris, or you'd be better off just doing dynamic typing, but the structural typing in TypeScript is surprisingly helpful at catching assumptions and documenting interfaces.

I've come to like the type annotations in Python too, especially now with Python 3.8 we can have Protocols and TypedDict for structural typing. Is Python currently the only language that explicitly supports both nominal and structural typing?
Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.