|
|
|
|
|
by frenchy
1927 days ago
|
|
> The other thing I don't like is when you are experimenting and fleshing out an idea you want to take a try it and see approach but with Typescript you have to really commit even though you just want to experiment. When you want to change something there is so much more code that you have to change. I've seen this opinion before, and I don't understand it in the slightest. Let's say you're modeling a "user". You might initially think that users should have a first & last name, so you write it this way. Then later on you realize that there's no point in this distinction, and some of your users from Indonesia don't even have separate first & last names, so you want to switch to a single name. * With weak/no typing, you have search around for anything that matches the field names, and hope to God you didn't miss anything. * With stronger typing you just change it let the compiler tell you all the places you need to fix up. |
|