DEV Community

Discussion on: Tell me an unpopular software opinion

Collapse
 
loucyx profile image
Lou Cyx

TypeScript is one of the best things that happened to web development in the last few years.

PS: I know this opinion is not really unpopular. But I also know that the hardcore JS devs get really tilted with this opinion 🤣

Collapse
 
diek profile image
diek

I like ts a lot, specially with a high configuration of tslint when the team are huge. It never where so easy to team code.

Collapse
 
jvarness profile image
Jake Varness

I feel so meh about TypeScript lol.

Collapse
 
ashoutinthevoid profile image
Full Name

I have no qualms with TypeScript, but I'll admit i tilted a bit when i interviewed a .net dev whose reasons for using Typescript amounted to "i dont want to learn anything beyond classical inheritance and imperative programming".

Typing options are a great addition to js, it just saddens me when they're used in place of learning the language and the paradigms it offers.

Collapse
 
loucyx profile image
Lou Cyx

Believe me, as a TS dev if another developer gave me that as a justification for using TS, I would get tilted as well. TS is a nice addition to JS, but not a replacement. In order to be a good TS developer, you need to be a good JS developer. TS is still just JS with types.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

To me, TypeScript is just like Babel JavaScript with typing. You can always cast to any, or // @ts-ignore. And, the configuration with tsconfig.json is relatively easy. Nowadays, I use ESLint as well, so it gets a little complex.

It is the best "dynamic" typing language IMO, but not strict enough to compare with static typing. Still, being partly dynamic can be massively helpful.

Collapse
 
loucyx profile image
Lou Cyx

Agree, if you want strictly typed, you can go and use other alternatives. TS is just optional typing in top of JS. What tilts me a little is when JS devs throw shade to TS because is "useless" and they use any for everything 🤣

Thread Thread
 
denisinvader profile image
Mikhail Panichev

It becomes less optional when it turns into a standard

I mean, almost every popular project (package) use it and even I really don't like it, I can't ignore ts anymore