Why Typescript is getting cancelled?

  Рет қаралды 509

Anti Nerd

Anti Nerd

Ай бұрын

Typescript is getting cancelled! Learn why big projects are shifting to JavaScript, and why you should too. This video is a detailed breakdown of how Typescript does more harm than good, and what alternative can you use instead.
Timestamps
0:00 - Intro
0:54 - Rise of Typescript
2:00 - Advantages of Typescript
2:54 - Downsides of using Typescript
6:03 - What to use instead?
Socials:
Twitter - / rituraj_io
Subscribe here - www.youtube.com/@TheAntiNerd?...
#javascript #typescript #jsdoc #coding #webdevelopment

Пікірлер: 9
@exe2543
@exe2543 Ай бұрын
I mean the editing of the video is good, but I don't really think the downsides listed are that significant. I think the benefits still far outweigh them.
@TheAntiNerd
@TheAntiNerd Ай бұрын
Unless you have a huge project, you can just get away with most of the downsides. Once things start to scale, it crosses a point where TS becomes a problem. Thankfully one can just switch to JS Doc like us and enjoy the benefits of both the worlds.
@redcodemohammed
@redcodemohammed Ай бұрын
Spent a month migrating because the build time was an entire minute wow, you made me remember a meme that says (spend hours to automate a 5-minute task). And yeah I don't know why you mentioned logical errors? what does TypeScript do with them anyway? Nobody said you can't get away with not testing your code. And by the way, 5:58 made me sure you don't know how to use TypeScript.
@TheAntiNerd
@TheAntiNerd Ай бұрын
The problems we faced are well defined in the video, and a few things are not. Either way, we are aware of the advantages and our users are reaping the benefits of this change. Can't say I mastered Typescript, but I like to think you need to know at least something about what you are doing to build a 7+ figure business.
@josersleal
@josersleal Ай бұрын
question #1 is why do you even use js??? is this 1990? #2 why did you not simply trasnpile (neither js nor ts compile to anything) and instead rewrote the code? Or paste it into some gpt crap? You biggest problem is th ecompile time of the entire thingy? why do you care? youre supposed to only compile everythign if deploying and to isolate when coding. youre doing it wrong imo.
@TheAntiNerd
@TheAntiNerd Ай бұрын
#1 JS is light weight. Runs out of the box. I see no problem there. #2 The code base is quite huge to use ChatGPT, and we cannot risk the AI hallucinating on us. Also just using the compiled version of TS wasn't the way to go since it has no type definitions that would be allowed by JSDoc and we also had to make a bunch of other changes, so figured that writing it from scratch would be the way to go forward. Moreover, it was not only that compile time is an issue (which it is) but on a big project like this, it ends up consuming a lot of resources. Upwards of 4GB of RAM is a must and 6GB - 8GB recommended. Which is hilarious since the actual JS code needs < 1GB of RAM to run. The decision was hence influenced by not just "tech" and "code" (for the sake of building tech alone, as I mentioned in the video), but was made keeping in mind other aspects of the business like money, scalability, collaboration, and so on.
@leonss2356
@leonss2356 Ай бұрын
@@TheAntiNerd ??? why would it need any more RAM than JS to run? it *_is_* JS
@TheAntiNerd
@TheAntiNerd Ай бұрын
​@@leonss2356 The stage where you run 'tsc' to convert your TS files to JS, is when most of the time and resources are consumed. Again remember, this is only noticeable and causes a problem in big projects like the one we have. We would constantly run into heap out of memory issues, and we had to not only upgrade our servers, but also run `tsc` like this. node --max-old-space-size=4096 /usr/local/bin/tsc --incremental It only ever compiled when at least 4096 MB of RAM was allowed, and even then, it would sometimes crash, and we had to restart the server.
@leonss2356
@leonss2356 Ай бұрын
@@TheAntiNerd ok, i just don't see what _JS needing less than 1GB RAM to run_ have to do with _TS transpilation taking 4GB or more_ . Transpilation is not runtime.
Every CSS Animation property
9:26
chunkydotdev
Рет қаралды 38 М.
Build ENTIRE Frontends With ONE Prompt - OpenUI Tutorial
8:59
Matthew Berman
Рет қаралды 41 М.
Mini Jelly Cake 🎂
00:50
Mr. Clabik
Рет қаралды 14 МЛН
Лизка заплакала смотря видео котиков🙀😭
00:33
ФОКУС С ЧИПСАМИ (секрет)
00:44
Masomka
Рет қаралды 4,1 МЛН
Godzilla Attacks Brawl Stars!!!
00:39
Brawl Stars
Рет қаралды 8 МЛН
Can you solve this Oxford admissions question?
8:18
MindYourDecisions
Рет қаралды 52 М.
How To Think Like A Programmer ?
6:17
The Curious Guy
Рет қаралды 133
Implementing (parts of) git from scratch in Rust
4:29:28
Jon Gjengset
Рет қаралды 69 М.
The Only .NET Scheduler You Should Be Using!
16:38
Nick Chapsas
Рет қаралды 34 М.
AI Leader Reveals The Future of AI AGENTS (LangChain CEO)
16:22
Matthew Berman
Рет қаралды 51 М.
Crust of Rust: async/await
2:34:01
Jon Gjengset
Рет қаралды 177 М.
How to Get a Developer Job - Even in This Economy [Full Course]
3:59:46
freeCodeCamp.org
Рет қаралды 1,7 МЛН
SOLID Design Principles Made Easy
4:36
Carrio Code
Рет қаралды 2,9 М.
Learn HTML5 and CSS3 For Beginners - Crash Course
3:54:03
developedbyed
Рет қаралды 2,4 МЛН
iPhone - телефон для нищебродов?!
0:53
ÉЖИ АКСЁНОВ
Рет қаралды 3,6 МЛН
УШЕЛ С iPHONE 15 PRO MAX НА PIXEL 8 PRO: ЭТО ЖЕСТЬ
32:33
Арсений Петров
Рет қаралды 24 М.
Start from 0 at any point on the T1 Digital Tape Measure
0:14
REEKON Tools
Рет қаралды 26 МЛН
Samsung mobile phone waterproof display. samsung mobile phone digital s23ultra  #shorts
0:15
All New Atlas | Boston Dynamics
0:40
Boston Dynamics
Рет қаралды 5 МЛН