DEV Community

Discussion on: 13 Typescript Utility: A Cheat Sheet for Developer

 
thethirdrace profile image
TheThirdRace • Edited

@dirkecker
I fully agree with the first part of your reply.

Java and C# developers tend to be especially "bad" at Javascript because they simply replicate their OOP model to a language that isn't OOP at all. This over-complicates a lot of code and bring a lot of frustrations to those that are from a Javascript background.

From your perspective, I can understand why you'd say typings are not needed.

While not very explicit, that's why I used "Correct typings" in my previous reply. A bunch of class with getter/setter is NOT what I was referring to...

The flaw in your argument is you're taking pretty much what NOT to do with typings and use it to discredit the whole idea of typings. You can use pretty much use anything the wrong way and do very bad things with them, doesn't mean these things should not be used the way they were intended...

Correct typings are like condoms. You don't absolutely NEED them, but you'd be pretty stupid not to use them... You can take all the precautions you want, but you can't control what others bring to the table 😅