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.

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.

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

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)

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?

@skyfaller I'm not a fan, gimme some good ol' fashioned vanilla javascript any day

IMHO typescript mainly forces you to decorate javascript with a bunch of detailed metadata about the contents of variables... like, I could see enjoying that if you're used to it; but it's compiled to JS, everything gonna end up being a plain ol' javascript object anyhow.

Also, I've been plopped into the middle of a big complex existing codebase... I've also got coding conventions and "best practices" and a team to contend with here - and all the 101-level tutorials aren't helpful & don't explain what I'm seeing in the codebase.

@kirch brb making a subset of a language. it's actually the empty set. you can't do anything with it.

There's no siver bullet or universal good-for-any-sort-of-tasks language, and it doesn't make any sense to build one. We should just use a right tool for the particular task.

Sign in to participate in the conversation

masto instance for the tildeverse