5 ms·
My point is that I don’t think it fixes your shitty code. Especially not if you’re not converting your entire project to typescript, and if you’re converting t
by eksemplar 8y ago
My point is that I don’t think it fixes your shitty code.
Especially not if you’re not converting your entire project to typescript, and if you’re converting the entirety of it, then why not use a better language?
I think typescript is popular because it’s very java/c# like and I think it’s dangerous because it allows you to write bits of your program with the safety it provides and other bits without it.
So you’ll have programmers thinking they are safe, when they are really not.
- smt88 8y agoTypeScript has structural (not nominal) typing, which makes it very different from Java/C# in practice. Also, it doesn't fix shitty code. It just lets the compiler warn you when you're either making a mistake or misunderstanding some other part of your code base. You should really try it before you say it doesn't help.
- mpawelski 8y ago>I think typescript is popular because it’s very java/c# like I think at beginning it was mostly used by developers familiar with Microsoft stack (.NET world mostly). But TS was not designed for C# developers, it was designed for JS ones! And I'm super happy it's becoming more and more popular in more "mainstream" frontend community. I'll just copy my old response to some very old thread that talk about why it not just "a language for C# developers": " Once sometimes asked me "Isn't Typescript a language for C# developers that don't know JavaScript" It's unfortunate that people think that TS is similar to C# just because it came from Microsoft. Flow language is like 80% similar to TS, but no one says it's similar to C#. TS is just JS + new features from future JS specification + optional type system. And optional type system is fundamentally different than the one in C#, and it was designed to fit well with JS patterns and idioms (structural vs nominal type system) If you look at TS code that looks like C#, it's because JS looks like that (classes syntax, classical inheritance, lambda syntax - it's all ES7 (or ES2016/ES2017, or whatever it's called now) "