The TypeScript DRAMA EXPLAINED 👩‍💻 #technology #programmer #softwareengineer #coder #typescript

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

"What's your type?"
"data: any"

cr_spirit
Автор

Handling types isn't as time consuming as debugging your code for type-related issues.

the_foxware
Автор

I'm always amazed by how many languages were invented just to fix javascript. Failure has never been so inspiring!

RainingArtillery
Автор

I refuse to believe that anyone who isn’t either extremely high level or has never even written an even mid sized application actually thinks that dynamic typing is better. It’s a nightmare and my literal least favorite thing in language design

unhhgcrxexhjvuvujchcrzwzwz
Автор

That's why I'm hoping that JS eventually integrates native types. Pretty sure there's a proposal for it already

lorenzi
Автор

Big advantage of TypeScript is when you're starting to work with a new codebase, it's super easy to follow the chain of types back to the exact definition, and see what arguments are being passed to a function and how to access a parameter you need. And you're less likely to break unfamiliar code because it'll become very obvious if you don't know what you're doing.

jjpaq
Автор

I came from C and Kotlin when I started with JS... at this moment I understood how valuable static typing is.

oliveryt
Автор

having static typing also makes code much more legible. Yeah, there's more boilerplate and it's more verbose, but that's not always a bad thing

LaughingMan
Автор

Data: any hides in my closet at night and haunts me while I sleep.

WellDressedMuffin
Автор

Types or no types - I'm going with Rust.

ggorg
Автор

In most cases, the time spent getting your code to pass typing constraints pre-compilation is way less than the time spent debugging code that wouldn’t have had a bug if it had been strongly typed. The problem with TypeScript to me is that you can’t do what you need to do sometimes because of silly constraints that don’t help. It’s weird sometimes. I’m truly hoping that one day I can write everything in Go and compile to WASM

wilkesreid
Автор

I feel that writing the types also helps us to understand what we are doing

_Akhilleus_
Автор

🎶I ain't got no type...

...bad code is the only thing that I write!🎶

DxBlack
Автор

Compile C# to JS and everything will be fine ;)

epicboi
Автор

type system is really crucial for mid - big size project

tonhom
Автор

It all actually started when Richard Harris dropped TS from Svelte

nowayicommented
Автор

I'm going with Hindley-Milner type inference (HMTI). You can just declare some with types and the rest are automatically inferred for you.

stevefan
Автор

once you start typescript, there is no going back. It is a must for large projects.

incredible
Автор

the whole point of stuff like that is to let people write a hello world program with copious amount of text so they get a feeling of affirmation. Big projects buckle unless a simple approach is used.

barfbaby
Автор

i use js for like 2 years until i knew about ts, and i absolutely loved it.

i felt intimidated at first but its really nice. especially to be able to define the object returned from a function and get the autocompletion from that object felt really really good.

mangadi