Hope you keep teaching us ninjas forever. I always tell my friends the best frontend tutorials can be found at Net Ninja's. The amount of work you put in to every series in unbelievable. Keep being the top ninja.
That was a great tutorial, thank youu very much! Also thanks for providing a code for every lesson. You start from the easiest to the most difficult. Very useful.
To get this array: let arr = ['ryu', 25, true]; We can change this : let tup: [string, number, boolean] = ['ryu', 25, true]; to this: let tup: [any, any, any] = ['ryu', 25, true]; 😀
What happens if you try to add an additional item to a tuple that you didn't specify? Will it let you? Or can you only add as many items as the tuple you specified had?
The course is ok but typescript is a complete nonsense language. It adds totally unnecessary things that javascript is not meant to take into consideration. After all, during compile phase javascript abandons all code that we have written in typescript while the resulting code remains twice bigger than it would be written in pure javascript. Rather useless waste of programmer time and effort.
I've recently picked up TS as I'm in a new role at a company that has adopted at, and the main advantages of using the language are to improve code quality before it compiles. This helps massively when working on large scale software projects with a dedicated testing team, as a lot of the errors that we may overlook from time to time are picked up as we write, forcing us to write code that will validate first time on a PR.
2:32 "...then it throws a wobbler..." - that cheered me up
I literally came here to say this!
Hope you keep teaching us ninjas forever. I always tell my friends the best frontend tutorials can be found at Net Ninja's. The amount of work you put in to every series in unbelievable. Keep being the top ninja.
Hey, thanks so much Surya :)
"It throws a wobbler" - thats a new t-shirt right there! Cheers and thank you so much for this series, Shaun!
Thanks so much shaun. Good work! You are my first point of reference for learning.
Thanks, a great tutorial. Cleared my concepts
Great to hear!
Thank you very much. I once had this problem when trying to destructure an array.
That was a great tutorial, thank youu very much! Also thanks for providing a code for every lesson. You start from the easiest to the most difficult. Very useful.
Thanks, Shaun for this great tutorial. First time I learnt TypeScript and you made it a breeze
you can also cast it to const by "as const"
const values = [tofrom.value, details.value, amout.valueAsNumber] as const;
Thank you Net Ninja from Phils. Enjoyed Typescript, gatsby, laravel and vue series
"throws a wobbler" might be the greatest slang for an error that i've ever heard.
super informative videos Shaun! thanks a lot!
Glad you liked it! :) thanks for watching Kubat
Tuples is beautifully explained
A topnotch tutorial series on TypeScript from a topnotch teacher.
You're awesome Shaun.💖
Whenever my code editor highlights an error, i'm calling it a 'wobbler' from now on lol
you've helped my studying
One slightly annoying gotcha with tuples is you can use methods such as .push() on the array and you won't be shown an error.
Thanks ninja very useful content
To get this array: let arr = ['ryu', 25, true];
We can change this : let tup: [string, number, boolean] = ['ryu', 25, true];
to this: let tup: [any, any, any] = ['ryu', 25, true];
😀
...It becomes a wobbler :D very nice :)
Ahh I see you're a FG fan. A man of culture
What happens if you try to add an additional item to a tuple that you didn't specify? Will it let you? Or can you only add as many items as the tuple you specified had?
Thank u shaun
thanks
Awesome
🔥🔥🔥
Not really seeing an advantage/ difference between defining an object instead of the tuple?
ty.
You can't spread within the class constructor args/props.
great
So cool
Before I watching this video, I thought Tuples in Typescript and Tuples in Python are same.
😂😂😂
Use it when you can't come up with names for objects 😂😅
The course is ok but typescript is a complete nonsense language. It adds totally unnecessary things that javascript is not meant to take into consideration. After all, during compile phase javascript abandons all code that we have written in typescript while the resulting code remains twice bigger than it would be written in pure javascript. Rather useless waste of programmer time and effort.
I agree
I've recently picked up TS as I'm in a new role at a company that has adopted at, and the main advantages of using the language are to improve code quality before it compiles. This helps massively when working on large scale software projects with a dedicated testing team, as a lot of the errors that we may overlook from time to time are picked up as we write, forcing us to write code that will validate first time on a PR.
Second
First ❤