by burtonator · 8y ago · 0 comments
I've been using Typescript in an Electron project I've been working on (https://getpolarized.io/) which is a doc manager for PDF and web content.
Typescript is awesome. It's basically Java 8/9 in terms of language design. Supports interfaces, generics, etc.
If you add VS code and their github acquisition they're going to be in front of a lot of developers in the next 2-5 years.
Microsoft can no longer rely on Windows alone to pull developers and products to Windows so instead they're trying to attract developers to build for any & every platform on Microsoft's stack and support Windows as a by product and maybe choose Azure as well.
So in a sense they've switched to a carrot model rather than a stick model.
- "This thing was null but you didn't account for this case" - "You should have a number here but something returned a string" - "You have made an invisible typo in a property name" - "You have not handled all possible values in this function" - "You accessed some data internal to a class that wasn't meant to be changed"
Basically my experience is that is substantially cuts down on the number of stupid bugs that end up in my code. The code completion is also fantastic!
https://github.com/Dean177/jest-to-match-shape-of
I had the same issue, types don't mean anything if they don't align with the data that your app is consuming. My solution was that matcher combined with some integration tests.
Lot of Javascript developers I think. There was a time when every Java application was supposed to be written in NodeJS. Thankfully, better sense prevailed.
Which lib is used for pdf processing ?
Is epub support in the roadmap ?