TypeScript - Web Development
I decided to write this up after the recent announcement by TypeScript: A 10x faster TypeScript.
I always had a love/hate relationship with TypeScript for the most part. I hated it because you need to compile the code and do other things beside coding to make it work with Node.js etc. I loved it because it is a superior "language" when comparing with JS as it offers way more convenience and standards.
My use of TypeScript mostly was limited to TypeScript in Angular. I would use native JS for everything else.
But something changed recently. Deno has become more stable and popular as an alternative to Node.js.
Imagine writing a code in TS and it just works. There is no node_modules folder and you don't have to worry about thousands of dependencies. You can turn your code into a small executable natively with Deno. It has a built-in language service and code formatter. It is more secure as you have to give the code explicit permissions to access network, your system, or files. It is also compatible with npm packages.
I can't see how you would be a web developer and not like Deno. I love Deno and now I have been exclusively coding with TypeScript and using Deno.
The recent announcement for TypeScript is a very good news for web developers. TypeScript is coded using TypeScript (something like that). The announcement was them moving the code base to GO and making it faster by up to 10 times.
I don't think Node.js with native JS are going anywhere soon unless something changes in the V8 engine (the engine that runs the code behind the scene on Node.js, Chromium based browsers, and Deno). But I think moving towards TS is the better move for web development. The lingering backwards compatibility and maintenance of the old code will haunt us forever but I don't think we should slow down technology because of slow people. Some governments still use Windows XP. Besides that, it is extremely easy to convert the existing code over.
If you haven't already, checkout Deno and see how easy it is to work with.
Leave TypeScript - Web Development to:
Read more #dev posts
Best Posts From Mahdi Yari
We have not curated any of mahdiyari's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Mahdi Yari
- Witness update - 4/22
- Dark Souls 3
- Hive Bridge - 1.0.0-beta.1
- [v7.0.0] Hive-tx - JavaScript/TypeScript library for Hive Blockchain
- Rant 1.0
- [Proposal] Public HAF database & HafSQL maintenance
- [Update] Public HAF, HafSQL, Hivemind, and Hafbe database
- Witness update - Public nodes update
- TypeScript - Web Development
- HafSQL public node update
- [Docker compose] How to run a hived node / seed node / witness node
- HafSQL update 2.0.0-rc1 - Breaking changes
- [Update] hafsql.mahdiyari.info is back online - sort of
- [UPDATE] & [Downtime] "hafsql.mahdiyari.info" will be down for 2 days
- [Proposal] Public HAF/HafSQL database maintenance & development of HafSQL
- Witness update
- Public HafSQL database on HAF
- DHF proposals that I don't support
- HBD interest rate - Hive economics
- Running Hivemind & HAfAH on HAF + Jussi - 2023