2 ms·
>> but TS can still allow shitty code No programming language can stop this. Your issue is with bad devs creating bad code. >> Using the type 'any'. Using 'a
by manigandham 8y ago
>> but TS can still allow shitty code
No programming language can stop this. Your issue is with bad devs creating bad code.
>> Using the type 'any'.
Using 'any' is either for prototyping, truly dynamic data, or edge-case scenarios, but Typescript is still far better than having no types at all.
- knocte 8y ago> No programming language can stop this. Thankyou captain obvious! But if you're choosing one language over another, you know that there are languages that can prevent you to do it more than others. > but it's still far better than having no types at all. Using 'any' everywhere is like having no types at all.
- manigandham 8y agoYes, Typescript prevents you from making errors more than Javascript, that's definitely obvious. And nobody uses 'any' everywhere, that is an example of a bad dev doing bad code. It seems you're saying some people don't understand or use Typescript badly so it's somehow bad itself? Those people would make a mess in any codebase. I'm not sure you have a coherent argument here.