Is Learning TypeScript A Waste Of Time?

  Рет қаралды 96,966

Web Dev Simplified

Web Dev Simplified

Күн бұрын

TypeScript is quickly taking over JavaScript with more and more projects being built with TS each day. This may seem scary if you only know JavaScript, but you can actually start using TypeScript right now even if you have no experience with it. In this video I will talk about why you don’t need to learn TypeScript and how you can write TypeScript code in less than a day of studying.
🌎 Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
00:29 - You get some TypeScript features even in JavaScript
02:16 - Basic TS Project
04:40 - React TS Project
06:21 - Large TS Project
#WebDevelopment #WDS #TypeScript

Пікірлер: 259
@andy-ally
@andy-ally Жыл бұрын
For React projects with multiple components that should have strict property types to ensure nothing will break TS is essential and time saving..
@troy5370
@troy5370 Жыл бұрын
You putting a fake type on a javascript variable doesn't ensure it won't break omg you people are brainwashed. At runtime it indeed can break and the type can be still changed. Typescript doesn't make Javascript magically unable to change type at will.....
@utkarshsinghalus3085
@utkarshsinghalus3085 Жыл бұрын
andy please tell me some good project only in frontend so I can improve my resume
@abdiastar6451
@abdiastar6451 Жыл бұрын
Make a crud app, with react, typescript, integrate it with fire base and go a step further and use redux to persist user login info in local storage. This will look good on your resume and 100% make you stand out from other candidates
@troy5370
@troy5370 Жыл бұрын
@@abdiastar6451 If you do the above it shows your way behind the technology curve and learning obsolete patterns. Redux lol...Persisting that info in local storage is the most unsafe place to do this kind of work and would show the employer you know nothing about security and would compromise a project.This is comical
@iganic7574
@iganic7574 4 ай бұрын
​@@utkarshsinghalus3085n
@developer_george
@developer_george Жыл бұрын
I love using typescript! TypeScript integrates well with React, with the type definitions and other tools which makes it a very good choice for building scalable React applications!
@pan-galactic-gargleblaster
@pan-galactic-gargleblaster Жыл бұрын
I'm able to shift a lot of data out of the Context API now because prop drilling isn't as insanity inducing with PropTypes
@developer_george
@developer_george Жыл бұрын
@@pan-galactic-gargleblaster Absolutely! :D
@troy5370
@troy5370 Жыл бұрын
Do you even know what a scalable React application is? If you did you would realize Typescript doesn't make it scale rofl
@AnuMessi10
@AnuMessi10 Жыл бұрын
@@troy5370 The delusion is insane
@syedalimehdi-english
@syedalimehdi-english Жыл бұрын
@@troy5370 exactly lol
@sidkapoor9085
@sidkapoor9085 Жыл бұрын
Great video. I was "forced" to learn ts as the project I was contributing to was written in it. I was kinda taken aback to see prop types are like 99% of the use case.
@bugsnrosess
@bugsnrosess Жыл бұрын
Every time i re watch one of your video, i learn a new thing, Thank you for the amazing work
@timlinator
@timlinator Жыл бұрын
Having a strong 20 years+ experience in both Java & JavaScript I would say TypeScript makes JavaScript more Java like.
@sergey53689
@sergey53689 Жыл бұрын
And it adds a additional code and kills all advantages of JavaScript
@singmantkpss
@singmantkpss Жыл бұрын
Very good topic! actually deciding on whether to learn ts
@zillboy
@zillboy Жыл бұрын
Thank you Kyle, I was kind of scared with TS. But yeah the best way to build projects and eventually you'll get better at typescript. Thanks again :)
@bobdinitto
@bobdinitto Жыл бұрын
I'm a strong believer in type safety having programmed in C++ for over 20 years, which is a strongly typed language. It was quite unnerving to learn JavaScript, where variables can flip their type seemingly at will whenever it happens to be convenient. It seemed at first that I was programming in a fun house of mirrors. But I've resisted TypeScript not because it's scary but because my brain is a FIFO of limited size, and cramming too much into it at once will only cause other stuff to fall out the other end. Front end development for me is way too complicated and if it wasn't for Kyle and Kevin I'd still be in the weeds. But they've safely guided me through my first web application which is nearing completion. So I'm finally comfortable enough with JavaScript, HTML, and CSS that, although still not expert, I'm ready for new challenges and TypeScript will definitely be part of that.
@zzpumpking8371
@zzpumpking8371 Жыл бұрын
The learning curve for web development and C++ is just so different. I feel like C++ is more complicated, but less to learn than web development where you have dozens of languages, frameworks and other tools to learn. This can be overwhelming.
@BRP-Moto-Tips
@BRP-Moto-Tips 11 ай бұрын
have u tried TS already? sounds like you have a solid foundation of knowledge, you should really try it, at first you I'll feel like you're going a bit slower, after that you'll never look back lol
@Zlorak
@Zlorak 11 ай бұрын
Interesting how a C++ with 20+ years of experience can find learning front-end unnerving. I always thought C languages (with the exception of C#) were incredibly difficult to learn. On the other hand, I used to love JS for everything as its freedom was unmatched... until I had to work on a medium project of my own with new frameworks I just started to learn, then I understood the "JS is the language that lets you shoot yourself in both feet before telling you that something might be wrong". Pretty sure you'll pick this in no time!
@devkasunlakshitha
@devkasunlakshitha Жыл бұрын
Damn, I never used TS on my projects. Now I have the confidence to use TS. Thanks, Kyle!
@crimsonx_
@crimsonx_ Жыл бұрын
I'm java dev. recently I'm trying to do front end staff as well. As my programing background is on strict typed language, ts is relieving language for me
@manrikevillalobos6270
@manrikevillalobos6270 Жыл бұрын
Great video!!! Thank you so much! I really love Typescript, and specially I love the initial philosophy which it born, helping a lot in development adding type safety... but I believe that Typescript miss the direction in some point! Crazy coded complex types like those that you indicate in the Firebase library is the part that adds unnecessary complexity and, for me, simply adds no value... only more cognitive load in large projects. When I see a type coded like that, having a hard time TRYING to understand what it does (specially when must be fixed because a bug introduced by another developer), is when I love the JS simplicity and readability, and return to code in JS, but using JSDoc (as other user posted) to enforce types. Once again, thank you so much for this video!!
@henriquezolini
@henriquezolini Жыл бұрын
I don't use typescript on the front-end, only on the back-end. The question I ask is, if you use the typescript just to type the components, why should you use the typescript that brings another compilation process, if there is the PropTypes of Javascript?
@gabrielcarloto3300
@gabrielcarloto3300 Жыл бұрын
typescript makes it easier to refactor and you can't use prop types to type an api request afaik
@algerianfromsahara2899
@algerianfromsahara2899 Жыл бұрын
Kyle: Last week end of React -Now end of Typescript One year later Kyle : End of developer 😅
@Fc_highlights_tv
@Fc_highlights_tv 3 ай бұрын
here after devin , how accurate prediction
@gyros9162
@gyros9162 Жыл бұрын
I am in love with tutorials on JS when you need to use the tool on TS. I love it
@Stoney_Eagle
@Stoney_Eagle Жыл бұрын
querySelector is a generic function in react, you can cast it as a div like querySelector('selector'); Does the same but looks a bit cleaner 😉
@samislam2746
@samislam2746 Жыл бұрын
new to me
@dontwanttousemyrealnametol6765
@dontwanttousemyrealnametol6765 Жыл бұрын
Could you please make a video to show how to make a webextension in typescript? I had problems with types for working with a mutation observer in a content script to change the appearance of a video player to make it more accessible.
@shawnweddle3002
@shawnweddle3002 Жыл бұрын
I’m a big fan of typescript. I use the T3 stack and having types for everything makes things easier in a full-stack app imo. I can’t imagine going back.
@aaronkagandev
@aaronkagandev Жыл бұрын
Thank you very much. Just to clarify please what are the 3 things?
@TariqSajid
@TariqSajid Жыл бұрын
how to implement typescript on existing react project component by component , instead of all at once ?
@DarkStoorM_
@DarkStoorM_ Жыл бұрын
It took just one small project to convince me to never go back to JavaScript. TS drastically cuts the debugging time (depending on the project, of course). But, I think it's understandable, since I do some C# stuff, so maybe I'm just used to static typing. I like when IDE is yelling at me :)
@YuriG03042
@YuriG03042 Жыл бұрын
your final phrase is a whole kink
@HarshSingh1
@HarshSingh1 Жыл бұрын
do you publish your firebase types anywhere?
@xtremehackerzpro9511
@xtremehackerzpro9511 Жыл бұрын
What are your thoughts about the difference between type and interface? Is there any situation when is better to use interface rather than type, thanks!
@hydrogen6110
@hydrogen6110 Жыл бұрын
- interfaces can only define objects - With JavaScript, in OOP, when you want to do inheritance it is not possible to extend more than one class. But with the reserved keyword "implements" in Typescript, we can add several interfaces to a class - Unlike `types` interfaces can be redefined, properties are thus merged This is what comes to me. Sorry if it's not clear, but English is not my native language
@soniablanche5672
@soniablanche5672 Жыл бұрын
99% of typescript is javascript, the other 1% is learning how to create super convoluted types to get the best autocomplete
@chrisdaman4179
@chrisdaman4179 Жыл бұрын
We use it to help cast our responses from a rust backend. Serde sends a specific object, and me have matching types to help determine the response without validation
@juleswinnfield9931
@juleswinnfield9931 9 ай бұрын
4:02 what is the point of the # in front of the variables?
@novanoskillz4151
@novanoskillz4151 Жыл бұрын
typescript is sooooooo useful, at work, we switched over to using typescript for all of our projects. and we have definitely lessened our debugging time. BUT; can you do a crash course on how to use usecontext with typescript.... its complicated.
@KlethonioFerreira
@KlethonioFerreira Күн бұрын
Imagine redux, I'm having a hard time with it.
@annguyenhoang3589
@annguyenhoang3589 Жыл бұрын
Love your content
@luciusartoriusdante
@luciusartoriusdante Жыл бұрын
really encouraging!
@yokowasis
@yokowasis Жыл бұрын
My main problem with typescript is, once you go typescript, you can't use normal non typed javascript library out of the box. You have to do some shenanigan to make it works.
@walidaguib3944
@walidaguib3944 Жыл бұрын
Hi kyle can i ask you a question ? after learning js should i learn Vue or React ?
@piffe
@piffe Жыл бұрын
Personal choice. More job opportunities in react, but you might find a shop that uses Vue takes developer wants into account more than one that sticks to the status quo.
@walidaguib3944
@walidaguib3944 Жыл бұрын
@@piffeSo i'm gonna choose react Thank you so much
@lardosian
@lardosian Жыл бұрын
I would choose React for the reasons already mentioned plus the React community.
@y200sub
@y200sub Жыл бұрын
Svelte is better than both, more jobs in react
@jamesselene
@jamesselene Жыл бұрын
I've kept trying but giving up on typescript because of problems like your firebase issue. Always one or two things that require extremely complex custom type definitions. If one thing doesn't work, you can't complete the project. Would love a tutorial showing how you would approach something like your firebase problem.
@yamogebrewold8620
@yamogebrewold8620 Жыл бұрын
There is always a solution without having to abandon TypeScript completely. In the beginning it is extremely annoying to work with TS, but once you get used to the common TS compile errors that you get, you quickly learn how to fix them.
@yamogebrewold8620
@yamogebrewold8620 Жыл бұрын
The code may be more verbose, but the main benefit is that you catch errors in compile time rather than runtime. The goal is to make things fail early.
@vyrillis9165
@vyrillis9165 Жыл бұрын
These issues can happen. Check the errors you are getting, and then debug any code related to those issues, if you can’t figure it out, a simple google search would never hurt, if that doesn’t work, then you may be able to ignore types for some lines of code. I wouldn’t recommend this unless there was no other choice, and the code with type issues you have a full understanding of how it works and it has already been tested thoroughly.
@troy5370
@troy5370 Жыл бұрын
Yeah while these guys are trying to figure out the TS syntax and the new FOTM TS changes I would have already shipped and made $$$$. Go tell your boss it takes you longer than most developers because your writing in two languages that helps no one but makes you feel good inside
@yamogebrewold8620
@yamogebrewold8620 Жыл бұрын
@@troy5370 I work in an organization which understands the complexity of software engineering which isn't just about shipping fast. Secondly, skilled engineers are not slowed down by TS as you are assuming. Rather, TS helps them.
@gosnooky
@gosnooky 11 ай бұрын
People new to TS like to complain about the extra steps with setup, having to add type annotations to function parameters, but it saves time in the long run. An insane amount of time. TS actually saves tons of time.
@abishekbaiju1705
@abishekbaiju1705 Ай бұрын
Thanks for giving me the confidence to learn typescript and convert my projects to typescript
@Luxcium
@Luxcium Жыл бұрын
I have a Love/Love relationship with TypeScript and I have have been pleased with the Love/Love relationship I have with NodeJS and VsCode I am probably just a rare example of people who is completely in love relationship every one else seems to have been forced into an arranged marriage like an unwanted wedding 💍 I feel lucky to have this passion when I read the comment and read all the horror stories of people who have no choice but to learn TypeScript never stating learning something was so easy… it is obviously 🙄 just because it doesn’t get complicated until you get hooked it is just a terribly complicated language sometimes but it is just so easy to get the basics of it…
@MrRe-sj2iv
@MrRe-sj2iv Жыл бұрын
I love TypeScript, I'm teaching my student TypeScript now. For web development, I prefer TypeScript + SvelteKit instead of React (even I have more than 5 years exp in React).
@DevMeloy
@DevMeloy Жыл бұрын
I have a love/hate relationship with TS, strong typed code makes life easier for large applications but some of JS's power is lost in translation and TS could have a better implementation.
@ramcu8543
@ramcu8543 Жыл бұрын
Hey Kyle, in your opinion is it better to use a type or an interface?
@colinb8332
@colinb8332 Жыл бұрын
Typescript says to use interfaces over types except for a few cases
@goonswarm007
@goonswarm007 Жыл бұрын
I was also wondering why he use no interfaces.. just types.
@andy-ally
@andy-ally Жыл бұрын
@@goonswarm007, what's the advantage of using interface over types?
@antonionotbanderas9775
@antonionotbanderas9775 Ай бұрын
I'm trying to require an npm module I use, but require has to be installed? After this, the node_module doesn't even work, so what's going on? Does typescript have their own module store? Too complicated for me to learn, when I can try jsdoc comments.
@ahndeux
@ahndeux Жыл бұрын
This almost seems like writing VBA code with "Option Explicit" turned on. Without it turned on, it could be a nightmare to troubleshoot if there are bugs.
@amerrashed6287
@amerrashed6287 24 күн бұрын
Simply TS is just JS +: - Types, declared for data type safety. - Generics : for modification of data inside Types.
@xidnebwoz
@xidnebwoz Жыл бұрын
The time you spend learning typescript will be returned to you in times in the process of coding later.
@bernhardsmuts2265
@bernhardsmuts2265 Жыл бұрын
My one question: All javascript libraries are obviously javascript friendly, but not all are Typescript friendly... So won't building my project using Typescript sometimes limit which libraries I can use? I know there are often type definitions for the libraries, but it just adds one more possible point of resistance, and I don't want to have to write type definition files for a library I could have just pulled in a used in normal javascript?
@rohith9875
@rohith9875 Жыл бұрын
You can just include a declaration file (.d.ts) in your project and put `declare module 'module-name'` in it. That will let you use it without types. Everything will just be 'any'.
@DaviAreias
@DaviAreias Жыл бұрын
What library worth using doesn’t have type checking?
@gabrielcarloto3300
@gabrielcarloto3300 Жыл бұрын
sometimes yeah you will add a library that doesn't have type definitions but at least for me it is very rare to do so and not worth to replace type safety just because of that one library. there are cases and cases, but 99% of the time i'll use typescript
@bernhardsmuts2265
@bernhardsmuts2265 Жыл бұрын
Thanks for the replies guys. Makes a lit of sense then...
@joostschuur
@joostschuur Жыл бұрын
If a library doesn't come with type definitions, often times the community will have provided them separately and you can just 'npm install -D @types/librarywithouttypes'. The @types scope has types for hundreds of libraries.
@yamogebrewold8620
@yamogebrewold8620 Жыл бұрын
I can't imagine working on a serious project without type safety. Be it TypeScript or something else.
@jongeduard
@jongeduard Жыл бұрын
4:20 Does not look like a function that RETURNS a function to me! But it looks like a function that ACCEPTS a function as a parameter. Easier to understand when you read the code below it, and you understand this is also conform how the Promise works. The resolve function is a callback, called by the Promise after finishing an asynchronous operation.
@thimerlanmatyakubov8940
@thimerlanmatyakubov8940 Жыл бұрын
LOVE BRO )) THANKS
@shupesmerga4694
@shupesmerga4694 Жыл бұрын
This is indeed true. You don't need to know typescript to be able to use typescript. I just changed all my file extension from .js to .ts. Now I'm using typescript... Now I just need to make my app work again.
@aj35lightning
@aj35lightning Жыл бұрын
Thanks for keeping it real
@threeone6012
@threeone6012 Жыл бұрын
How long until TypeScript is integrated into Vanilla JS?
@zb2747
@zb2747 Жыл бұрын
Ngl typescript makes working on projects enjoyable, especially on the FR when frameworks, build tools, ect are constantly changing. Aside, it’s worth it. Imo you won’t see the value of TS until you work with a large codebase on a team, build a real app into production and/or library. It’ll provide you discipline and the compiler will help you catch errors in DEV vs pulling your hair tryna find the simplest error which you noticed at runtime. But first learn JS before learning typescript. It’s now labeled as language but technically it’s just JS with static type checking (a superset of JS), so if you know JS TS won’t be anything crazy. Peace and much love yal. And always keep learning and keep MOVING FORWARD.
@ShaikMoAbdullah
@ShaikMoAbdullah Жыл бұрын
Yes. Just get started.
@Njb-yp4td
@Njb-yp4td 11 ай бұрын
I think it's actually cleaner to use generics with document.querySelector instead of casting it as a type. document.querySelector('.whitespace') as HTMLDivElement;
@arunchapagain7268
@arunchapagain7268 Жыл бұрын
Hey Kyle, huge fan of you..Please create a video on Apollo client refresh token flow using asynchronous function to fetch access_token
@__jacky.bones__
@__jacky.bones__ Жыл бұрын
Love all of your videos, but is that a white Jackson Dinky behind you? You must like heavy metal 🤘
@duongtran642
@duongtran642 11 ай бұрын
Finally decided to learn TS, it slowed me down a bit at first but man, it was totally worth it.
@thecoolnewsguy
@thecoolnewsguy 8 ай бұрын
​@@bismuth00ado you even know what you're saying?
@dimitarbelchev3062
@dimitarbelchev3062 Жыл бұрын
Can you please do a crash course to explain what react developers need to know about TS? You are the best!
@adrianturowski2583
@adrianturowski2583 Жыл бұрын
kzfaq.info/get/bejne/is-DetibspiWf30.html
@carafachera4781
@carafachera4781 Жыл бұрын
YES PLEASE
@leventemathe2610
@leventemathe2610 Жыл бұрын
If you want to do react with typescript, you simply have to know typescript, as you just write javascript in react. A better video request would be like what EXTRA stuff a react developer has to know about typescript, beyond "vanilla typescript".
@matija-ziberna
@matija-ziberna Жыл бұрын
He just told you lol
@dimitarbelchev3062
@dimitarbelchev3062 Жыл бұрын
@@matija-ziberna I want this guy to explain TS because he has is good at it
@BB_Harunya
@BB_Harunya Жыл бұрын
I know it says it's simplified, but I feel like it might be worth it to explain that complex ts file you just glossed over at the end Thanks!
@jose6183
@jose6183 Жыл бұрын
It's bad engineering. Don't even worry.
@4115steve
@4115steve Жыл бұрын
can I learn type script and skip java script. I'm worried I will need to know javascript for JSnode
@sabuein
@sabuein Жыл бұрын
Thank you, Kyle.
@misdar3917
@misdar3917 Жыл бұрын
well, fun fact i used smartphone to code and manage to create some simple useful website, and a few bots for telegram. i dont use typescript because there is no vs code on smarthpone yet :(
@thepetesmith
@thepetesmith Жыл бұрын
If you are coming from non typed languages like php or plain js, you first have to understand the difference between “hey it works” and “hey it will work long term”.
@varangianventure
@varangianventure Жыл бұрын
I just started my web development journey less than 3 years ago. I'm sticking to vanilla Javascript + React for the coming years. (With a hint of NextJS, hehe)
@abdulramonlasisi3385
@abdulramonlasisi3385 Жыл бұрын
@@biggestthreattoyourexistence 😂😂
@arakwar
@arakwar Жыл бұрын
Don't. Switching to Typescript is a lot easier than trying to figure out React in plain JS, and it saves you a lot of time writing code. Benefits happens in less than a day.
@varangianventure
@varangianventure Жыл бұрын
@@biggestthreattoyourexistence It most definately is.
@realbigsquid
@realbigsquid Жыл бұрын
I agree to an extent, but when you're using a library that doesn't have types, it is really really really really annoying. And until you end up having that problem, you really don't have anything to worry about. But I think that you may be underestimating how annoying that is for the beginners. I'm not sure how common it is for others, this happened to me on my first big project, So then I had to learn more typescript all at once.
@tasin5541
@tasin5541 Жыл бұрын
Any decent enough library should have type definitions. If it doesn't, you might wanna switch to others.
@realbigsquid
@realbigsquid Жыл бұрын
@@tasin5541 Some choices aren't up to me lol
@ayandhara
@ayandhara Жыл бұрын
How to make catchy titles le WDS:
@jerryf196
@jerryf196 Жыл бұрын
I learned typescript because of angular. Forces you to use. Good and bad and comes down to preference. Does not make you a better developer
@y200sub
@y200sub Жыл бұрын
Better developer, no. It makes your code less messier and more readable though, so that automatically tranapiles to a better development experience
@pablozuta2402
@pablozuta2402 Жыл бұрын
Man , that white Jackson in the back is dope 💛
@daniamsalem
@daniamsalem 3 ай бұрын
3 features of TypeScript to know so you can get 95% of the benefits when using it: 1. How to create types 2. How to assign those types to variables or arguments in a function 3. How to create and use generics
@brijenmakwana2040
@brijenmakwana2040 Жыл бұрын
I also personally don't like typescript, but it's very easy to learn. If you're already familiar with a strictly typed language, you can learn Typescript in a day. So, we should learn it so that it might be helpful in interviews or in companies where they use it 👍
@andTutin
@andTutin Жыл бұрын
if you think its easy you dont know ts good enough
@YuriG03042
@YuriG03042 Жыл бұрын
@@andTutin you are assuming they only have prior experience with javascript and ignoring they could have already been using a statically typed language for years. don't be that person
@mahmoudzakria6946
@mahmoudzakria6946 2 ай бұрын
This is not about what I wanted to hear about TS and haloloyaa, no, this is always what I felt about Typescript and I was feeling a little odd from people that without any thinking just evaluate your ability to code in the FE based on ur knowledge of TS, I remember once I got rejected because one of my side-projects I was showing case its codebase in the interview was written in Vanilla JS. 🤧
@RyszardRudy
@RyszardRudy Жыл бұрын
Totally not a waste of time, but a must. Modern hire companies hite web develop preferring better knowledge of TS over years you've spent developing in plain JS.
@WebBlows
@WebBlows Жыл бұрын
thx
@codedjango
@codedjango Жыл бұрын
Yes! I strongly feel so....i like pure js.
@MerrickKing
@MerrickKing Жыл бұрын
Too many people get turned off from TypeScript because they get into overly complicated things, or try to make weird types like using utility types like Pick. Just basic types and string unions is enough. The most complex thing you'd need to know is discriminated unions.
@Pareshbpatel
@Pareshbpatel Жыл бұрын
This tutorial has spurred me on to re-start my abandoned efforts to learn TypeScript. Thanks, Kyle {2023-02-11}
@guilhermemm-dev
@guilhermemm-dev Жыл бұрын
why you just use types and not interfaces too?
@2tired4
@2tired4 Жыл бұрын
Typescript is a must have
@djbone94
@djbone94 Жыл бұрын
Learning typescript for javascript coders is juste 1 or 2 days... why dont just learn it...
@NQuang17
@NQuang17 Жыл бұрын
One of the thing that typescript scare me is that its ridiculously hard to understand syntax. I had familiar working with strongly typed languages before like Java or C# or Go but I had never seen like such below ---- interface UseFetchOptions extends AsyncDataOptions, ComputedFetchOptions ---- ☝this is from a fetch library within Nuxt 3 that I have been using recently. By the time I was debugging and try to understand it, I immediately refuse to continue digging after seeing that.
@-wx-78-
@-wx-78- Жыл бұрын
Isn't it sad? We'd gone through entire circle from type-strict (Algol/C/whatever) to type-lazy (AWK/Tcl/whatever) to typeless, then type-specified again. I need some Ada code to relax. 😉
@albirtarsha5370
@albirtarsha5370 Жыл бұрын
Having coded a lot in Pascal, C is only moderately typed to me, but I started with BASIC. So..., that was some crap... Anyway, yeah my journey was cyclic as you say. So when it came time to learn JS, having VS Code was all I needed to not make type errors. Now I am learning typescript so I can read other people's code. Lol.
@-wx-78-
@-wx-78- Жыл бұрын
@@albirtarsha5370 Do what you've said (in definitions) and do what you mean (in code). That's exact definition of assembly language. 😉
@davidmarquez2821
@davidmarquez2821 Жыл бұрын
It's not a waste of time. It's super beneficial, and starting is easy. Everyone should be using it.
@AnuMessi10
@AnuMessi10 Жыл бұрын
Ikr, my entire debugging process is 95% resolved because of TS
@billybob7970
@billybob7970 Жыл бұрын
Not a fan of passing props to a react component and having to use Typescripts verbose syntax, when you're still deciding on exactly what you want/need to pass
@CistiC0987
@CistiC0987 Жыл бұрын
I have never considered something time I spent learning as a waste of time. If the alternative is some mindless activity such as doom scrolling or binge watching of some daft tv show, how could learning be wasteful? Always be learning, because, why not? It is not going to make you a worse person, I suppose
@CottidaeSEA
@CottidaeSEA Жыл бұрын
You get pretty much the same help from just using JSDoc. You won't get any assistance in terms of checking if the input types are actually correct, but in most cases it is entirely sufficient as your IDE will scream at you if you try to input something that isn't the desired value. So in order for JSDoc to fail you basically have to intentionally screw over yourself.
@thecoolnewsguy
@thecoolnewsguy 8 ай бұрын
Or add // @ts-check at the top of the file
@CottidaeSEA
@CottidaeSEA 8 ай бұрын
@@thecoolnewsguy That still requires documentation and you also need a tool to validate with to get maximum effectiveness.
@Luxcium
@Luxcium Жыл бұрын
Should I unsubscribe because I don’t like the click bait bashing on the Language I love the most… or should I keep watching because at least Kyle’s smiles is worth the time 🎭 I don’t know 🤷🏻‍♂️ so I guess I will have the answer if I watch…
@shadyheadstash
@shadyheadstash Жыл бұрын
These comments are actually hilarious. I'm sorry guys, but if you're not using TypeScript, you're doing anything important with JavaScript.
@kaas99
@kaas99 Жыл бұрын
Ppl who find TS difficult, learn some basics & just jump right in and start a new project. Don't try to learn everything under the sun before starting a TS proj. You will be overwhelmed & It's really unproductive imo.
@AndrewTSq
@AndrewTSq Жыл бұрын
I dont find it difficult, just a waste of time, and another project that Microsoft is trying to ruin.
@epotnwarlock
@epotnwarlock Жыл бұрын
Add typescript to your existing vue project and tell me how "awesome" typescript is
@JokeryEU
@JokeryEU Жыл бұрын
you dont have to specificy what you return if you dont have a return in the first place, ts already knows its void
@pfcokelly
@pfcokelly Жыл бұрын
Sometimes it feels like you made these videos for me personally. Are you watching me Kyle?
@mikevaleriano9557
@mikevaleriano9557 Жыл бұрын
short answer: NO long answer: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
@alerya100
@alerya100 Жыл бұрын
Typescript is the same as Javascript but making use type more :)
@HassanAllaham
@HassanAllaham 9 ай бұрын
Typescript might be great (ONLY) for development of libraries that have public API's, even that there are many ways to do what ts do in that case without using ts. (libraries that have public API's was present far away before the invention of ts) Other than this, typescript is, (in my opinion), a time and resource wasting . JsDoc is fantastic....The code is shorter, more clean and very clear to every one.. No need to learn new modified js syntax.. You just define what you do think it needs to be defined When using JsDoc... even the the beginners can understand the code .. and you will not find the beginners-non-sense code resulted after transpiling typescript to js... You might face the case mentioned here in where your project uses a library that does not support typescript.. then you find your self in a situation where you need to rewrite those types in order to be able to use this library in your project other wise the compiler will start complain instead of compiling .. This is a complete time wasting Also after transpiling ts code to js code .. all that ts disappears .. ts might help coders in some cases but not the final code users Thats why recent shift in the development landscape has seen some developers and teams moving away from TypeScript and towards JavaScript with JSDoc. This shift has been notably championed by the Svelte team, who have decided to migrate from TypeScript to JavaScript in the Svelte 4 codebase. Thats why Learning TypeScript is in fact A Waste Of Time And Thats why JsDoc is fantastic
@jscioo
@jscioo 9 ай бұрын
I like when things yells at me what's wrong.
@Cowkill
@Cowkill Жыл бұрын
No, it will never be a waste of time. A few years back TS was an asset in your basket when you were looking for a job. Now it's a prerequisite.
@arakwar
@arakwar Жыл бұрын
TD;DR; : No, it's not a waste. Any decent codebase that try to follows SOLID principles and have some test automation are easy to migrate. Obviously, if your codebase is filled with "hacks" and is a complete mess, then TS is going to point this out and you're not going to like it.
@Iandavidandrino
@Iandavidandrino Жыл бұрын
willl never go back :P
@regilearn2138
@regilearn2138 Жыл бұрын
WE need advanced MERN/PERN TYPESCRIPT FULLSTACK app please
@cocoscacao6102
@cocoscacao6102 Жыл бұрын
The fact that this is still a point of debate, says a lot about frontend devs...
@YouTubePL666
@YouTubePL666 Жыл бұрын
Yes mostly says that some people mistake how bad they are at coding with language features or lack of them
@Shinika01
@Shinika01 Жыл бұрын
is TypeScript the Python of JS ?
@fintechtelugu6980
@fintechtelugu6980 Жыл бұрын
The Java of JS
@iamcasted
@iamcasted Жыл бұрын
No, it's not. If you know JS don't wait and learn TS. It's actually really simple once you understand the basics.
@herrbasan
@herrbasan Жыл бұрын
There isn't even much to learn, it's still javascript... with types :)
@fintechtelugu6980
@fintechtelugu6980 Жыл бұрын
If Typescript Grows React and it's entire cousins Next Js , Vue , Solidjs becomes useless Angular , Typescript ,Nestjs ,Mongodb makes a perfect Typescript Mean Stack
@LokeshWritesCode
@LokeshWritesCode Жыл бұрын
Typescript can be annoying at times but it will save you a lot of time later
TypeScript Makes You A Faster Developer
9:14
Web Dev Simplified
Рет қаралды 70 М.
TypeScript Generics are EASY once you know this
22:21
ByteGrad
Рет қаралды 125 М.
Каха ограбил банк
01:00
К-Media
Рет қаралды 9 МЛН
🍕Пиццерия FNAF в реальной жизни #shorts
00:41
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 50 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 4,8 МЛН
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 456 М.
Typescript for Javascript Developers in 15min
15:06
CoderOne
Рет қаралды 39 М.
Learn TypeScript Generics In 13 Minutes
12:52
Web Dev Simplified
Рет қаралды 226 М.
Reviewing your React Code: Episode #3
14:27
Youssef Benlemlih
Рет қаралды 4,3 М.
Learn Typescript with React | Quick Crash Course
16:59
developedbyed
Рет қаралды 89 М.
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 165 М.
Auth Does NOT Have To Be Hard
17:13
Web Dev Simplified
Рет қаралды 95 М.
Speed Up Your React Apps With Code Splitting
16:50
Web Dev Simplified
Рет қаралды 369 М.
This is why learning typescript generics is important
13:19
Web Dev Cody
Рет қаралды 24 М.
I Cannot Believe TypeScript Recommends You Do This!
7:45
Web Dev Simplified
Рет қаралды 161 М.
Каха ограбил банк
01:00
К-Media
Рет қаралды 9 МЛН