TypeScript Speedrun: Crash Course for Beginners

  Рет қаралды 38,981

Matt Pocock

Matt Pocock

Күн бұрын

The ultimate TypeScript tutorial is the TypeScript docs. In this video, I take you on a crash course of the TypeScript handbook, focusing on the beginners section.
To continue your journey, take Matt's beginner's course. It's free, interactive, and fast-paced.
www.totaltypescript.com/tutor...
Follow me on Twitter: / mattpocockuk
TypeScript Error Translator: mattpocock.com/vscode
00:00 Intro
00:37 TypeScript for JavaScript Programmers
03:16 TypeScript Handbook
03:26 Runtime errors
03:44 Error Messages
05:26 3rd-party libraries
06:08 Installing TypeScript
06:27 Running tsc
07:23 TypeScript on CI
08:11 Strictness
09:39 Should you be strict?
10:35 string, number, boolean
10:56 Arrays
11:50 Arrays vs Tuples
12:16 any
13:41 Typing variables
14:11 Typing functions
15:02 Object types
16:05 Optional object properties
16:45 Union types
18:05 Type and Interface
18:59 Type assertions
20:06 as any
20:42 Literal types
22:26 null and undefined
22:56 Outro

Пікірлер: 53
@PraiseYeezus
@PraiseYeezus Жыл бұрын
Love this. Will definitely be following this series even though I've been using Typescript for a while.
@ovuokeaghwotu2389
@ovuokeaghwotu2389 Жыл бұрын
I just want to say the thumbnail for this crash course is beautiful! I clicked it as soon as I saw it.
@DesignedByIman
@DesignedByIman Жыл бұрын
I think they’re AI generated
@mattpocockuk
@mattpocockuk Жыл бұрын
Nope! We work with a human illustrator, Michelle Holik
@leopolon
@leopolon Жыл бұрын
Can't wait for the awesome types done quick this year!
@JonBrookes
@JonBrookes Жыл бұрын
Like the missing 'notes on' or 'study guide' like you got when reading Shakespear or Chaucer but for the Typscript documentation. A much needed and trusted roadmap for going to the right notes and necessarily in the right order. Thanks for publishing this walkthrough. The timestamps are also very usefull for use as reference in future re-views of the same.
@expertdev
@expertdev Жыл бұрын
Hey Matt, you're an awesome tutor, the way you structure your videos and how you express it in magnificient manner makes you a pionner of Typescript and any other advanced topic. I really enjoy your tutorials, thanks for share your talent and knowledge with all of us. 👍
@real23lions
@real23lions Жыл бұрын
Love this. I'm new to coding and JS. I got stuck on what was a simple problem for a week because I didn't understand the error messages. Going through your videos are very helpful.
@loic.bertrand
@loic.bertrand Жыл бұрын
I already know all of this, but I'm still watching because I like the way you explain things :)
@je12emy
@je12emy Жыл бұрын
Awesome speed run, thanks!
@faizanahmed9304
@faizanahmed9304 Жыл бұрын
Thank you Matt for this speed run, yeah one video on Generics as well.
@makkapoya
@makkapoya Жыл бұрын
Thank you, Matt! Really nice lessons on TypeScript
@JosephMaramba
@JosephMaramba Жыл бұрын
Awesome content! Keep bringing it to us
@jasonstewart7983
@jasonstewart7983 Жыл бұрын
nice one, Matt. I wish I had discovered your error plugin 6 months ago! Better late I guess. I'm really glad that you're dissecting the handbook and highlighting the key takehomes. Showing "obj as undefined as Type2" is super helpful - it took me months to figure that out on my own. And warning about "any" is great.
@zombiefacesupreme
@zombiefacesupreme Жыл бұрын
I'm still annoyed that KZbin never suggested this to me! Please keep making long-form content like this!
@AbdullahTBukhari
@AbdullahTBukhari 9 ай бұрын
how very innocent of matt to say "you silly goose" haha 😊😊
@rockNbrain
@rockNbrain 10 ай бұрын
Great job Matt, tks a lot ❤
@gentlemanjack4083
@gentlemanjack4083 11 ай бұрын
Really really cool stuff !
@PROJECTJMUSIC
@PROJECTJMUSIC Жыл бұрын
Just what I needed - thanks!
@oluAbiola
@oluAbiola Жыл бұрын
Thank you Matt
@hsider
@hsider Жыл бұрын
Your TS exercices git repo is amazing, I cloned it and strarted fixing them on by one , I've learned some tricks, thank you
@erlanggadewasakti
@erlanggadewasakti Жыл бұрын
your videos and course is so awesome
@bmehder
@bmehder Жыл бұрын
More of this please. 🙂
@shafu_xyz
@shafu_xyz Жыл бұрын
Awesome loved it!
@testaenzo620
@testaenzo620 Жыл бұрын
"Of course I misspelled it, you silly goose". Made my day man again
@kasperaamodt
@kasperaamodt Жыл бұрын
Great video!
@berkaygurcan141
@berkaygurcan141 Жыл бұрын
Beginner is a nice content that is a reminder and explains its logic as a level for me . Please do part 2 :)
@ColinRichardson
@ColinRichardson Жыл бұрын
I do love a big exciting video
@maksym7279
@maksym7279 Жыл бұрын
Nice! Thanks!
@johnpeterson8493
@johnpeterson8493 Жыл бұрын
awesome thanks!
@arjunyonzan8557
@arjunyonzan8557 Жыл бұрын
Thanks. Good times.
@RobertoDuransh
@RobertoDuransh Жыл бұрын
love it thanks for this one(you won a new susriber ) waiting for the generics speedrun ;)
@lukasmolcic5143
@lukasmolcic5143 Жыл бұрын
when you mentioned that the ts errors are famous for not being super readable, the thought came to my mind, hey I bet an extension could easily fix that, paused your video went on google to search does something like that exist and landed back on another video of yours XD
@romanachis
@romanachis Жыл бұрын
Just what I wanted 😬
@toastrecon
@toastrecon Жыл бұрын
Just installed the Error Translator!
@JonBrookes
@JonBrookes Жыл бұрын
me too
@vladko9623
@vladko9623 Жыл бұрын
Thank you from Ukraine , for this speedrun. You have amazing skill to explain smth. )
@TimothyBrake
@TimothyBrake Жыл бұрын
Great summary 👍 Typescript is what JavaScript should have been years ago but somehow less intelligent people took control and a big mess was created that now more intelligent people are fixing. Union types are dirty feature though and exposes a missing Typescript features: overloading of methods.
@jeffnikelson5824
@jeffnikelson5824 Жыл бұрын
Hey Matt, think you can add the link to the other video now at 16:05
@MrNovado
@MrNovado Жыл бұрын
@Matt Pocock, forgot to add the ts-error translator into description. Otherwise, cool tutorial!
@GustavoDiaz93
@GustavoDiaz93 Жыл бұрын
Your British accent make your videos sound polite from my point of view hahaha.
@aArcziMetin2
@aArcziMetin2 Жыл бұрын
Are you planning to make some paid course in the future, I really can't find a lot of good advanced Ts topics.
@mattpocockuk
@mattpocockuk Жыл бұрын
It's here right now! totaltypescript.com
@universe_decoded797
@universe_decoded797 Жыл бұрын
@@mattpocockuk what do you use for unit testing with ts
@norude
@norude Жыл бұрын
So Typescript is basically a compiler, that compiles down to js. Why not compile down to wasm to get performance and compatibility benefits?
@mattpocockuk
@mattpocockuk Жыл бұрын
See AssemblyScript
@EricAndre615
@EricAndre615 Жыл бұрын
You mention to avoid `any`, but say there are times when you may need it ("advanced usecases"). I argue this is incorrect and `any` should never be used. Instead use the typesafe version `unknown` that does the same thing as `any`, but is typesafe and forces you to deal with it when the value typed as `unknown` is used. I'm currently working on a very large Typescript code base and I found no use case for `any` where `unknown` is not the better option.
@mattpocockuk
@mattpocockuk Жыл бұрын
There are several advanced use cases, such as improving perf in OSS libs. I've been interviewing maintainers for TT and they find 'as any' very useful.
@EricAndre615
@EricAndre615 Жыл бұрын
@@mattpocockuk Okay, and I guess at this point we would have to look at specific examples. However, I'm unsure of what you mean by "several advanced use cases, such as improving perf in OSS libs" improving the performance at build time? I don't think there's any way to improve performance of something at runtime with types. But, I could be wrong and I'm always eager to bite my tongue and learn something new.
@mattpocockuk
@mattpocockuk Жыл бұрын
@@EricAndre615 I mean improving type checking perf. any is a way to reduce the number of instantiations the type checker makes, improving the speed of TypeScript for users. This makes a big difference - it's the difference between the red lines in your IDE appearing instantly, or taking 5-10 seconds.
@ShaharHarshuv
@ShaharHarshuv Жыл бұрын
You generated the thumbnail with midjourney right? 😂
@86_magical30
@86_magical30 Жыл бұрын
At least you weren't running in this tut 😅😅😅😅
@tiagoagm
@tiagoagm Жыл бұрын
Nice video Matt.
Infer is easier than you think
13:38
Matt Pocock
Рет қаралды 85 М.
Why I'll always use Typescript over Javascript
18:17
Web Dev Cody
Рет қаралды 16 М.
La revancha 😱
00:55
Juan De Dios Pantoja 2
Рет қаралды 52 МЛН
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 27 МЛН
Они убрались очень быстро!
00:40
Аришнев
Рет қаралды 3,1 МЛН
TypeScript - The Basics
12:01
Fireship
Рет қаралды 1,5 МЛН
TypeScript Crash Course with Matt Pocock
1:03:29
Visual Studio Code
Рет қаралды 69 М.
Goodbye, useEffect - David Khourshid
29:59
BeJS
Рет қаралды 494 М.
TypeScript Generics are EASY once you know this
22:21
ByteGrad
Рет қаралды 123 М.
Every single feature of C# in 10 minutes
9:50
Train To Code
Рет қаралды 90 М.
The TSConfig Cheat Sheet
5:36
Matt Pocock
Рет қаралды 32 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
TypeScript: Should you use Types or Interfaces?
4:06
Matt Pocock
Рет қаралды 147 М.
Озвучка @patrickzeinali  Тюремная еда  Часть 2 @ChefRush
0:52
BigXep. Канал озвучки
Рет қаралды 6 МЛН
НОЧЬ на Острове кукол в Мексике | Ghostbuster
1:8:30
Дима Масленников
Рет қаралды 8 МЛН
Beatbox in the toilet!
0:18
Mihdens
Рет қаралды 13 МЛН