|
|
|
|
|
by devbent
669 days ago
|
|
> without all the BS that comes with TypeScript, etc. JavaScript is so powerful and amazing, it’s a bummer to hamstring your app by using TypeScript and classic OO inheritance models Typescript is no more OO than JS is. Typescript is simply a way to document, and optionally compile time enforce, what fields objects have and what objects methods/functions take in and return. That is all TS does. It documents what is already there so you don't make typos on field names. Lately I'm writing a project w/o typescript and I spent an hour finding a bug the boiled down to "tilewidth" vs "tileWidth". (The code didn't explode until much later when a computed value didn't exist) That is the type of bug TS prevents from ever happening. |
|
A linter would do the same, way better and faster.