Тёмный

The Story of TypeScript 

uidotdev
Подписаться 90 тыс.
Просмотров 229 тыс.
50% 1

This is the story of how TypeScript took over the world.

Опубликовано:

 

9 янв 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 557   
@bawad
@bawad 2 года назад
I love typescript
@jsjoeio
@jsjoeio 2 года назад
always bet on typescript
@wcandillon
@wcandillon 2 года назад
Maybe that April fools joke would go down better in 2022 😉
@uidotdev
@uidotdev 2 года назад
Say it slower Daddy
@rawallon
@rawallon 2 года назад
@@uidotdev slower
@sbrugby1
@sbrugby1 2 года назад
I look forward to the near future where TS is the norm. Already seeing it happening in Next.js official example repos, rewriting their basic with-tailwind in TS. React remix tutorials also just come at you with TS out of the gate.
@ELStalky
@ELStalky 2 года назад
One of the biggest advantages is change management. You adjust one function signature and the entire codebase lights up like a Christmas tree, showing all the places that need adjustments. Or just basic things like renaming a symbol across all files can be done (mostly) automatically.
@uidotdev
@uidotdev 2 года назад
Agree that's a good one.
@MilanDrazic
@MilanDrazic 2 года назад
Wow, and you just watching and waiting to TS tell you what to do Typescript does not solve JavaScript problems. OOP e..g
@blank4157
@blank4157 2 года назад
@@MilanDrazic what OOP problems does JS have tho?
@maximilianhans208
@maximilianhans208 2 года назад
I always thought TS is great for large applications, but it's actually also really helpful in prototyping. What you describe really helps in environments where things change a lot and it gives some peace of mind that stuff will probably work after adjusting
@Eichro
@Eichro 2 года назад
as opposed to vanilla javascript which is cringe management
@ozzyfromspace
@ozzyfromspace 2 года назад
I gave typescript a shot in early 2021 and never went back. MS did a great job.
@uidotdev
@uidotdev 2 года назад
Agree!
@MrC0MPUT3R
@MrC0MPUT3R 2 года назад
I've been using typescript since 2014 and I STILL do *not* understand why some people are reluctant to use it. Every project I write that requires javascript is instantly translated in my brain as "obviously this'll be typescript" I only use javascript for quick test apps and I find myself beating my head against the wall without my comforting type constraints 😭
@seanhuggins5382
@seanhuggins5382 2 года назад
Please keep making these history videos! I feel as a younger dev coming into the space, I've missed out on learning a lot of the tech that brought us to where we are today. These videos help unfurl the layers of the SWE onion.
@uidotdev
@uidotdev 2 года назад
Thank you! I've always believed understanding the historical context was underrated in education. Glad you found it useful as well.
@Miketar2424
@Miketar2424 2 года назад
If you think like that you're going to be great as a developer. If you look into assembly language, even as an academic exercise, even better.
@uidotdev
@uidotdev 2 года назад
@@victorcheeney3633 Just started working on "Why React Won" today :)
@xylvnking
@xylvnking Год назад
for real these types and fireship have helped me so much in getting 'context' for these technologies
@isan-sunshine
@isan-sunshine 2 года назад
Meanwhile ts developer: whatever i’ll just use any
@uidotdev
@uidotdev 2 года назад
😅
@aca48
@aca48 2 года назад
My company wanted to move away from Angular, because some loud colleagues found it way too strict (as it always comes with TS), and the half year release schedule made our projects after 1.5 year obsolete, because we did not keep up with the versions. As we don't write test, most of them don't use TS features (use any most of the time) the management did not see the benefits, they wanted all the new projects to be in React.js. Like plain React no TS. It took us some time with my leader, to change the management's mind about it. In short we came up with these points: Most of our colleagues write low standard code. They don't know enough JS and can't accept the helping hands from TS. Changing to an unknown lib in the company without TS will lead to even more bugs and bad code. Lowering these bare minimum standards won't help us in the long run. We should encourage TS and tests, and that will help us keep up with the versions. They understood and made me do lectures for my colleagues. I will present them this video next time!
@uidotdev
@uidotdev 2 года назад
Hopefully it'll help!
@jp46614
@jp46614 2 года назад
Typescript is quite buggy at times and prevents you doing a lot of convenient things the language was designed for. If you're not gonna use those features you might as well choose another language such as java
@vanjazed7021
@vanjazed7021 2 года назад
@@jp46614 which features? You always can opt out of type system with any/unknown if you don't want to bother defining some tricky very dynamic type or want to do it later.
@mr.rabbit5642
@mr.rabbit5642 2 года назад
Juustt remember to make a note that if you're talking about TS - JS relationship, it's actually a transpiler than a compiler. The difference seems linguistic-only, tho it's an important thing to not forget about when writing code. For start, Compiler will warn you if your code does not make much sense andc(modern one) won't compile code with unreachable code. Transpiler will mostly only tell you about type errors and things it can't transpile to target language..
@jp46614
@jp46614 2 года назад
@@mr.rabbit5642 typescript compiles to assembly...
@foreach1
@foreach1 2 года назад
Didn’t wanted to change my mind in 2 years of JS programming. But the day I tried TS, I felt like I was idiot for not trying it before. Such a good layer on top of JS. And if like me you hate Java, it’s seems the same but your experience is a lot better
@hundvd_7
@hundvd_7 2 года назад
Java feels like a prison, you're forced to adhere to a very strict set of rules, and this also means that sometimes you will do everything do avoid doing X thing because you can't do it how you like it. JavaScript feels like you're alone in the world, with nothing to control you. You can do anything. But that also means you have no idea what to do, and even if you have a goal, you have no way to learn from anyone. TypeScript is the perfect mix between the two. It lets you do whatever you want, and it provides you the necessary crutches when you're in need of help, and can provide guidance about what you should be doing in the first place
@fltfathin
@fltfathin 2 года назад
@@hundvd_7 the best thing about js and python's approach to typing is you use types by choice not by force
@natashamane6502
@natashamane6502 2 года назад
Excellent…
@meceffeukada3767
@meceffeukada3767 2 года назад
You hate Java bcuz you don't even code with Java.. otherwise it's the same thing with typescript
@hundvd_7
@hundvd_7 2 года назад
@@meceffeukada3767 Nah man, a lot of people (including me) tried Java and that's exactly why they hate it. Though I'll give 2 exceptions: - I worked with older versions (mainly 8, also 5 and 11), but that's all that's ever used. There's just no jobs with newer java projects - IntelliJ is the best piece of software ever written, and it works the best with Java. It's still the best option for every other language, but it's only like 80-90% as effective for TS or C#
@wcandillon
@wcandillon 2 года назад
I'm really enjoying these new series 🙌🏼
@uidotdev
@uidotdev 2 года назад
Thank you! We're big fans of your RN content as well.
@YourWaifu0
@YourWaifu0 2 года назад
I used to not like JavaScript but after learning TypeScript, it has becomes one of my favorite programming languages.
@cyberneticbutterfly8506
@cyberneticbutterfly8506 2 года назад
I still don't get how to think in javascript, it's like reading the first pharagraph of a book 30 times and still not remembering a word of what I read.
@YourWaifu0
@YourWaifu0 2 года назад
@@cyberneticbutterfly8506 I found using a debugger helps as you can see the data that's in the stack
@kanjakan
@kanjakan 2 года назад
@@cyberneticbutterfly8506 I had found that the answer is to just use TypeScript and forget that regular JS exists.
@jungervin8765
@jungervin8765 2 года назад
Typescript is worth even for the code completion, and structuring your project, you always know what are the types or what members an object has. If your app big than these are huge benefits, not to mention the other many benefits TS has.
@uidotdev
@uidotdev 2 года назад
Well said.
@buttofthejoke
@buttofthejoke 2 года назад
i remember the times I used to get undefined for an object property and lose my mind, trying to track where it's getting overridden. This was during jQuery times when anything can update anything on any event. after a whole day or two, I'd realise it wasn't isSpellingCorrcet but isSpellingCorrect. Thanks to typescript, now none of that BS happens. I get suggestions from intellisense and I simply press tab. ❤️
@ward7576
@ward7576 2 года назад
What my beef with Typescript is the types that some vendors create that make no sense when reading the name and no sense when you take a look at the type declaration itself. Just made me wanna go back to loosely typed JS. Feeling much better now.
@finnwestergren8670
@finnwestergren8670 2 года назад
I go back and fourth on this. I trust MY types but not really everyone else's. I kinda think that as TS becomes the standard for public packages though this will happen less and less. Or people will at least make more open source efforts to correct any discrepancies between how the api truly works on the js level and what its types represent
@aaronkoller8811
@aaronkoller8811 2 года назад
Wow. This video combined with Imperative vs declarative are simply amazing. you explain things so concisely and simultaneously digestible that my brain can totally follow. That combined with the imagery and the well-timed glint of Oprah left me in stitches. More, more, MOAR!! These videos are great!
@uidotdev
@uidotdev 2 года назад
Thank you!
@er63438
@er63438 2 года назад
Thanks for the video. Appreciate it's conciseness, and not taking 15-30 minutes as most videos do nowadays.
@uidotdev
@uidotdev 2 года назад
You're welcome. Glad you enjoyed it!
@chrcit
@chrcit 2 года назад
I love your videos and the newsletter. Keep em going!
@uidotdev
@uidotdev 2 года назад
Thank you ❤
@halfway-there
@halfway-there 2 года назад
Love it! Please keep on uploading this type of content.
@uidotdev
@uidotdev 2 года назад
Thank you Robert!
@muhammadahmedjaved7691
@muhammadahmedjaved7691 Год назад
awesome man your videos are really really high quality I love your videos these are better than many paid out there thanks
@riddixdan5572
@riddixdan5572 2 года назад
this and previous video remind me a lot of fireship. if this level of content keeps coming, I will keep on watching.
@uidotdev
@uidotdev 2 года назад
Fireship is 🐐
@jaydenmoon1165
@jaydenmoon1165 2 года назад
Wow you did an amazing job covering this topic - I would love to see more videos on the history of languages
@uidotdev
@uidotdev 2 года назад
Thank you!
@sc76399
@sc76399 2 года назад
So true, I love typescript for the extra documentation and error checking. If you define a function decloration or even parameters then decide to change them, typescript will tell you where in the code your old usage of a function doesn't match its new decloration.
@dripdrops3310
@dripdrops3310 2 года назад
May this channel blow up.
@YeOldeKamikaze
@YeOldeKamikaze 2 года назад
First time I used TS by choice was for a sw architecture assignment back in uni. We had to implement the classic GoF design patterns using any language of our choosing. I wanted to apply the patterns in web apps. The thing is, some of the patterns make the most sense when dealing with user interactions (such as memento), so they had to be run in the browser, not server-side. I was still a newbie so it took me quite a while to realize that JS (including ES6) is not really an O.O. language, so it lacks many of the required constructs such as interfaces and abstract classes. Our professor was a pain in the ass to deal with. If your code didn't explicitly use O.O. constructs he would give you a bad grade for "not complying with requirements". I thought my project would be a lost cause, but then I read about TS and all the O.O. syntactic sugar. Once I got up to speed and figured out how to add typings to pre-existing JS libs (great code auto-completion in VSCode, btw), I could implement my project in about three days. I've been a TS fanboy ever since haha. So yeah, TS is not just "JS with types", it's so much more.
@thepetesmith
@thepetesmith Год назад
Dojo was awesome. Learned everything from it
@satindersingh9671
@satindersingh9671 2 года назад
Always count on “empathetic friend” over any linter
@anuraghazra4772
@anuraghazra4772 2 года назад
Nicely summed up! Great video.
@uidotdev
@uidotdev 2 года назад
Thanks Anurag!
@amphibia95
@amphibia95 2 года назад
Really enjoyed that! Awesome content! :)
@uidotdev
@uidotdev 2 года назад
Thank you Adam!
@hassaniyouness8024
@hassaniyouness8024 2 года назад
Loved this video hope to see more videos like this
@uidotdev
@uidotdev 2 года назад
Lots more to come!
@josemiguelochoa5372
@josemiguelochoa5372 2 года назад
man first time on your channel. Really good content. Keep it up!
@uidotdev
@uidotdev 2 года назад
Thank you so much! ❤️
@MrBowmanXD
@MrBowmanXD 2 года назад
Pretty good video. Might be working with typescript in a future job so it's good to know some history
@uidotdev
@uidotdev 2 года назад
Glad you enjoyed it!
@imhassane
@imhassane 2 года назад
I remember when typescript just came out, crazy how time flies
@serhiicho
@serhiicho Год назад
Thanks for the video, I love it. Side note: 00:05:23 TypeScript is not a compiler, it's a transpiler, since it doesn't compile code to machine code, it compiles it to JavaScript
@uidotdev
@uidotdev Год назад
I've found that that distinction usually just confuses more people than it helps, though you're technically correct. Thanks for watching!
@AndrewBabin
@AndrewBabin 2 года назад
Angular 2, man... Deciding to learn it was one of the best choices I've ever made. I had just learned v1 when v2 came out, completely different, rebuilt in Typescript. Totally wasted my time learning v1, but I never would've been such an early adopter of TS otherwise. Thank goodness. Funnily enough, Google wouldn't have adopted it if they hadn't thrown in decorator support. It's stuck in "experimental" purgatory to this day because the ES decorator proposals have been taking FOREVER and are still only stage 2.
@uidotdev
@uidotdev 2 года назад
A fun experiment to think where TS would be without Angular. Definitely not where it is today.
@TeluguFactsTV
@TeluguFactsTV Год назад
I loved this series 🤩
@uidotdev
@uidotdev Год назад
Thank you!
@lukehatcher98
@lukehatcher98 2 года назад
Great video. Glad this was recommend to me. Subscribed!
@uidotdev
@uidotdev 2 года назад
Thanks so much. Welcome!
@SylvainPOLLETVILLARD
@SylvainPOLLETVILLARD 2 года назад
Will TypeScript age well though ? As you explained, JS already catched up with modules and classes, but in the future, JS new features may conflict with what TS proposes, like the private class fields proposal (stage 4) vs the private modifier in TS. The promise of TS being just a layer over JS may be more and more challenging to keep with time. The two outcomes I see are either, breaking changes and deprecations on TS new versions, or a split from JS evolution trajectory at one point.
@meanmole3212
@meanmole3212 2 года назад
I suppose the compilation process from TS to JS can be adjusted to do anything in theory. There's already some inconsistencies with things like the readonly modifier which does not enforce prototype fields to be immutable on the compiled JS code despite being "readonly" on the TS side.
@azmo_
@azmo_ Год назад
Valid point, hoped me experts would comment on this (I'm a newbie)
@KyleHarrisonRedacted
@KyleHarrisonRedacted 2 года назад
Excellent video, thank you for this
@uidotdev
@uidotdev 2 года назад
You're very welcome. Glad you enjoyed it!
@ze_chooch
@ze_chooch 2 года назад
I’m a developer who started learning, without a technical background, in March 2020. Because of this, I’ve missed out on the context surrounding tools that my team uses, like TypeScript, which has caused some problems for me. This video really helped me build a relationship with the “why” of TS, which is influencing my relationship with the “how” of TS. Thank you. Subbed. Edit: maybe GraphQL/ApolloGQL at some point?
@uidotdev
@uidotdev 2 года назад
I built this video for people with your background. So glad you enjoyed it. Definitely lots more to come.
@ze_chooch
@ze_chooch 2 года назад
@@uidotdev thank you!
@bakhtiyor_sulaymonov
@bakhtiyor_sulaymonov 2 года назад
Thanks 👍 for this quality content
@uidotdev
@uidotdev 2 года назад
You're welcome!
@petarkolev6928
@petarkolev6928 2 года назад
Thank you for the wonderful video 🍻
@uidotdev
@uidotdev 2 года назад
You're welcome. Glad you liked it.
@srikantam4796
@srikantam4796 2 года назад
Such a compact and informative video! You deserve more subs :)
@uidotdev
@uidotdev 2 года назад
Thank you! ❤
@lasindunuwanga5292
@lasindunuwanga5292 2 года назад
I love this video. I love TS from the beginning. I just love the way you explain the importance of type safety. Because some people are so lazy and hate to work with types. They write some code and quite. If people want to write correct piece of code, I believe that having a type in front of your variables is compulsory. Because that means, you know what you are doing...
@uidotdev
@uidotdev 2 года назад
Great points! Glad you enjoyed the video.
@sabuein
@sabuein Год назад
Thank you so much.
@WesBos
@WesBos 2 года назад
lol damn, I'm impressed you found that tweet from 2010
@uidotdev
@uidotdev 2 года назад
No idea why, but I love finding old stuff like this. For example, here's Chris Coyier from 2007 when he was in an Irish band - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9GUBQs6SgTE.html
@trafficface
@trafficface 2 года назад
Trip down memory lane 😭
@uidotdev
@uidotdev 2 года назад
Another data point that we are indeed old.
@trafficface
@trafficface 2 года назад
@@uidotdev hey it's okay, we could be older, that's what I tell myself but each year that gets increasingly more thin
@GmailNexus
@GmailNexus 2 года назад
Awesome Video. Like the style.
@uidotdev
@uidotdev 2 года назад
Glad you enjoyed it!
@josh-rb7he
@josh-rb7he 2 года назад
thanks for this video!
@uidotdev
@uidotdev 2 года назад
You're very welcome!
@peterdelf
@peterdelf 2 года назад
I started with Basic, C, and then Java at university. When I first started to use JavaScript I hated it. What I realise now is that I actually hated the LEGACY of JavaScript. Modern JavaScript is infinitely better than it's origins. Typescript is just the future of JavaScript.
@uidotdev
@uidotdev 2 года назад
Agree
@lorenzodossi
@lorenzodossi 2 года назад
Those videos are awesome
@uidotdev
@uidotdev 2 года назад
Thank you Lorenzo!
@peopleofourtime2523
@peopleofourtime2523 2 года назад
TypeScript devs really surprised by 20-year-old compiler technology
@uidotdev
@uidotdev 2 года назад
JavaScript is a compiled language, just at a different time.
@finnwestergren8670
@finnwestergren8670 2 года назад
Great video! I was kinda hoping for a historical explanation of why other frameworks like flow and react's PropTypes eventually fell out of fashion
@aloufin
@aloufin 2 года назад
yeah same here, I watched this video a few days ago then was trying to remember why TS won... i went back to the video and realised it never actually said anything about beating out its competition of Flow etc...
@HKRazieL
@HKRazieL 2 года назад
i loved the part where you said that "dynamic languages like JS break down IF YOU'RE NOT CAREFUL"... most people don't understand the fact that there is no problem with JS if you're not bad... the problem starts when you have many people, a lot of whom are bad, and you have to coordinate with them how things should be... then TS makes things easier
@igorswies5913
@igorswies5913 2 года назад
not careful != bad
@uidotdev
@uidotdev 2 года назад
Well said.
@gallergur
@gallergur 2 года назад
I disagree. A programming language (or any other system for that matter) is well designed if it makes it easy to do the right thing (and optionally hard to do the wrong thing). Just because you *can* write good code with JS, doesn't mean it is *easier* to do that, compared to other languages. In fact, your argument support that. When enforcing stricter rules, even bad programmers tend to mess up less. I argue that good programmers, too, are better off not having to do in their heads all the checks that C#'s compiler, for example, can do for them automatically. And tbh, "if you're not careful", in this case, is most of time. Your team will probably have bad programmers. Or stressed programmers. Or lazy programmers. Or tired programmers. And they *will* take the easy way. Let's, make the easy way the correct one.
@HKRazieL
@HKRazieL 2 года назад
@@gallergur then we have to delve very deep into the philosophy of what is considered "the right thing" for some people "the right thing" a dynamic language should let you do easy is "everything" and for some people being able to do everything is bad because it leads to more mistakes by people who don't know what they are doing... mostly by people who can't bother actually learning the language and how it works... having stricter rules MIGHT lead to less mistakes, i never claimed otherwise, but JS is not bad because someone who doesn't know how to used made a mistake with it...
@gallergur
@gallergur 2 года назад
@@HKRazieL So you're claiming you never make mistakes? Static typing helps you, at the very least, catch some mistakes before you even save your file (let alone deploy it to production). But it is often more than that. Type systems allow you to express designs and structure using language constructs, and that is useful for communicating the design to your colleagues, your future self, AND the type checker (that can check that *your* design is used as intended, not just the language's). "The right thing" is a very subjective phrase. However, "everything" does include a lot of things that you and I can probably agree are bad. So allowing "everything" (or to be more exact: not making it harder to do certain things) is not better. Exactly what are those things is debatable. But having the ability to express these rules as executable and verifiable code is a very useful tool.
@hobbyxplorer
@hobbyxplorer 2 года назад
i use to hate typescript but im getting the hang of it. it is relaxing to use once u know the types and the syntax. its like free code.
@alfred1243
@alfred1243 2 года назад
Sadly, people forget that tools like TS, Docker, Kubernetes created to solve large scale problems and driven by hype deploy them everywhere often adding unnecessary complexity
@rice8864
@rice8864 2 года назад
uh huh
@ajricherson1099
@ajricherson1099 2 года назад
I don't see much cost in using TS. it is more annoying to debug JS and track down type errors then just using TS
@d.sherman8563
@d.sherman8563 2 года назад
The cost of typescript is trivial compared to the benefits it brings, in anything more complex than hello world is worth it imo.
@vegiimite
@vegiimite 2 года назад
The video missed the feature of TS that adds improve your confidence in the code the most. Null / undefined checks
@busyrand
@busyrand 2 года назад
Very well done...
@RobertKing
@RobertKing Год назад
Angular were ahead of their time adopting TS and RXjs. Starting to pay major dividends. I switched back to angular from react recently and not going back to react.
@rodanus7112
@rodanus7112 2 года назад
Thanks a lot for the amazing video! I do have a suggestion tho, I find it hard (for me at least) when I'm trying to focus on what you are saying and then suddenly a tweet pops up in the middle of the screen here 4:39, my attention switches to the tweet and I immediately start reading it instead of listening to what you say.
@hanro50
@hanro50 2 года назад
The reason I like JS, and to an extension TS, is that dynamic component. Being able to define data structures on the fly in runtime. Since tbh...I want to be able to define a function as "it returns x, but with y added into it" and... trying to do that in Java broke me...
@uidotdev
@uidotdev 2 года назад
I agree it is convenient.
@herrbasan
@herrbasan 2 года назад
There must be something about JS that is just better suited for the current needs, otherwise it wouldn't be that successful. But maybe it's just the fact that it comes with this super flexible but fast rendering engine, and it has actually nothing to do with JS.
@hanro50
@hanro50 2 года назад
@@herrbasan Isn't native code...like idk...GTK, Windows forms and QT a lot faster and less resource intensive then Blink, Gecko, Trident or Webcore? Almost like the rendering engine plays a minimal part in all this considering the diversity of implementations available...even the underlying JavaScript engines have changed drastically over the last several decades with V8 only really coming into the limelight in the last decade or so.
@moczikgabor
@moczikgabor 2 года назад
@@hanro50 I think it is exactly the rendering engine what made JS popular. Currently the web frontend is one of the simplest (if not the only) way to do cross-platform app development. No installation, works on Mac, Linux, Windows, Android, iOS, almost out of the box. Quite standardized, hot, up-to-date. Since JS is the only language in browser, it's learning curve is easy in the begining it's not a surprise that is so widespread. It is similar to VBA in Office. It is used widely, not because it is that pleasant to use (neither the lang nor the IDE), but because that's the only choice.
@hanro50
@hanro50 2 года назад
@@moczikgabor Ye...but you have to remember that rendering engine is still different depending on the browser family a set browser belongs to. I can easily write code that'll look perfect in chrome, but will break in Firefox or WebKit. Yet 99% of the backend JS code will be more or less exactly the same between all three browsers. With the only breakage typically being attributed to a missing feature...
@jsonisbored
@jsonisbored 2 года назад
Enjoyed the video, I assumed it would've had way more views
@uidotdev
@uidotdev 2 года назад
We'll get there.
@user-sh5qp6uu1e
@user-sh5qp6uu1e 2 года назад
You explain things EXCELLENT! I really wait for GraphQL video as I don't really understand what it stands for
@uidotdev
@uidotdev 2 года назад
Thank you!
@pablorepetto7804
@pablorepetto7804 Год назад
What I'm hearing is that if types aren't enough by themselves to make me adopt a new tool, I can ignore TypeScript.
@n00dle_king
@n00dle_king 2 года назад
I work in a massive code base that's being slowly converted from .js to .ts, and every time I change a file over to typescript tons of latent bugs jump out at me from VS. I despise working in our .js files and can't wait for the day when they are all gone.
@uidotdev
@uidotdev 2 года назад
Right. I think most of the haters in this comments haven't had that experience.
@schoolmonkey13
@schoolmonkey13 2 года назад
TypeScript seems kind of like what's happening with Python's type hints, except in that case it's happening in the main language. Gradual addition of typing to retain the benefits of dynamic languages while getting most of the security of typed languages.
@boukhadc
@boukhadc 2 года назад
I love typescript, almost know it for about 80% now, it’s vast as fuck alone (types, guards, interfaces, bindings, conditional types, overloading, decorators, tsconfig and all its options, using get/set in objects, readonly, static, expanding, inheritance …) and even more when you add utilities libraries such as rxjs, events, etc… but next step is clearly rust for server side and maybe even browser side thanks to webassembly.
@uidotdev
@uidotdev 2 года назад
Agree
@ko-Daegu
@ko-Daegu 2 года назад
coming from Java I feel like this is just the norm thank you typescript cuz JS really sucks
@uidotdev
@uidotdev 2 года назад
@@ko-Daegu 😂
@raconvid6521
@raconvid6521 2 года назад
I didnt know that ts isnt just types. Thank you so much,
@donutcrab
@donutcrab 2 года назад
Thank you for the video. Your voice is really deep with a lot of base, so listening to it on speakers is pretty hard. If you use other audio, it is fine.
@orishem8392
@orishem8392 2 года назад
very good video. thanks
@rahularyansharma
@rahularyansharma Год назад
I like how you use left pad as example for npm package installation :)
@buttofthejoke
@buttofthejoke 2 года назад
i remember the times I used to get undefined for an object property and lose my mind, trying to track where it's getting overridden. This was during jQuery times when anything can update anything on any event. after a whole day or two, I'd realise it wasn't isSpellingCorrcet but isSpellingCorrect. Thanks to typescript, now none of that BS happens. I get suggestions from intellisense and I simply press tab.
@chrisgraham2123
@chrisgraham2123 2 года назад
Amazing video!!!
@uidotdev
@uidotdev 2 года назад
Glad you enjoyed it!
@JoonhwanLee
@JoonhwanLee 2 года назад
Stroy of {my favorite RU-vidrs}
@uidotdev
@uidotdev 2 года назад
❤️
@patcoston
@patcoston 2 года назад
JavaScript will eventually be written in JavaScript
@uidotdev
@uidotdev 2 года назад
Galaxy Brain.
@JACOBTL23
@JACOBTL23 2 года назад
Awesome video
@uidotdev
@uidotdev 2 года назад
Thank you!
@NateLevin
@NateLevin 2 года назад
Reminds me of Fireship in all the right ways. Do note that the thumbnail has the word "won" cut off due to youtube showing the time in the bottom right!
@uidotdev
@uidotdev 2 года назад
Fireship is the 🐐
@huxnwebdev
@huxnwebdev 2 года назад
From now on ill call Kent C Dodds as Developer Tool lols 🖖 BTW Really Awesome Video 💖
@uidotdev
@uidotdev 2 года назад
🐐
@MightyKingKala
@MightyKingKala Год назад
great video
@ivangrey1047
@ivangrey1047 2 года назад
Ever since I tried typescript, I never came back to writing vanilla javascript
@uidotdev
@uidotdev 2 года назад
That's fairly common I think.
@IngwiePhoenix
@IngwiePhoenix 2 года назад
"Type annotations remove the guesswork." C++ auto: *Bonjour*
@benmitchinson9831
@benmitchinson9831 2 года назад
Really great video! Will reference this for new team members. Thanks!
@uidotdev
@uidotdev 2 года назад
Thank you Ben! Glad you enjoyed it.
@taquocviet
@taquocviet 2 года назад
Let's not forget Angular for popularizing TS.
@uidotdev
@uidotdev 2 года назад
Very true!
@fatihersoy7559
@fatihersoy7559 2 года назад
you are great
@uidotdev
@uidotdev 2 года назад
Thank you!
@headwayio
@headwayio 2 года назад
Thanks for featuring Kelsey's tutorial at the 00:06 mark! 🤗
@uidotdev
@uidotdev 2 года назад
You're welcome! Kelsey is great.
@mskleftwich
@mskleftwich 2 года назад
Thanks so much, y'all! 💗
@RickyGarcia_Learning
@RickyGarcia_Learning 2 года назад
Tyler still pullin thru!
@uidotdev
@uidotdev 2 года назад
I've been out of the game for too long. Still got it though (I hope). Hope you're doing well!
@kebien6020
@kebien6020 2 года назад
I tend to leave code transformations to babel, which is better suited for that. And use typescript exclusively as a "linter". I tend to think of my code as a JS codebase that just happens to have type-checking as a static analysis step in the build process. And type annotations as being similar to JSX: non-JS extensions that get removed during the build process (with the difference that JSX is transformed into something different and type annotations are just stripped). This type of thinking translates better to other languages like python, that has optional type annotations and tools to enforce them statically. Typescript itself is also going more in this direction: they deprecated TSLint in favor of plain'ol eslint with a ts-enabled parser and some ts-scpecific rules. They are advocating for users to write a .js extension in the imports so that it produces valid JS output without transforming imports, etc.
@yousafsabir7
@yousafsabir7 2 года назад
Very well explained
@uidotdev
@uidotdev 2 года назад
Thanks so much! ❤️
@Sisufyable
@Sisufyable 2 года назад
So, this was more of a 'what is typescript', than 'the story of'. I hoped for the actual history, and how it succeeded against Facebook's Flow.
@RhysLloyd
@RhysLloyd 2 года назад
Loving these videos Tyler. A constructive criticism: your voice sounds quite soft and muddy compared to other audio clips, which can make it quite difficult to hear you. I have to increase the volume quite a bit, but when other audio clips play they're far too loud. My guess is that it's your mic? Not sure if there's a simple way to clear up your voice. But yeah, really enjoying your content, have subscribed and am looking forward to more!
@uidotdev
@uidotdev 2 года назад
Yeah we're still trying to figure that out. Thanks for the feedback!
@santprakash128
@santprakash128 2 года назад
Use audacity or any sofware like that.
@j.r.r.tolkien8724
@j.r.r.tolkien8724 2 года назад
I love this
@uidotdev
@uidotdev 2 года назад
Thank you!
@avi12
@avi12 2 года назад
6:17 Genius
@Official_R_deep
@Official_R_deep 2 года назад
Good work
@uidotdev
@uidotdev 2 года назад
Thank you!
@shikyokira3065
@shikyokira3065 2 года назад
came from a C++ background, JS is a tough language for me to use because of how hard it is to maintain and keep track of. The lack of type in a language kind of throw me off in a lot of ways even though I believe that I would have loved this flexibility if I don't have any C++ background knowledge. C# kinda bridged the gap for me with dynamic and object type, but my brain is still with a very strong typed mindset, which I think it is good in preventing me from misusing object and dynamic, especially in a multithreaded environment
@uidotdev
@uidotdev 2 года назад
I can't imagine having to go from statically typed to dynamically typed. Would feel law-less.
@kevinb1594
@kevinb1594 2 года назад
@@uidotdev Dynamic to type is also extremely hard. It's like that meme where the guy is riding a bike and throws a stick into the spokes. You know it's good for you but when you just want to do the thing but TS says NO.
@agontprevarator5214
@agontprevarator5214 2 года назад
@@kevinb1594 That's not the point/message of that meme though
@kevinb1594
@kevinb1594 2 года назад
@@agontprevarator5214 It isn't? Isn't the point of the meme to demonstrate self inflicted wounds? In this case, people (me) who gets upset with typescript slowing them down - installed typescript knowing full well it would fuck me at some point.
@agontprevarator5214
@agontprevarator5214 2 года назад
@@kevinb1594 The point of the meme is self-victimization, rather not self-damage
@andreas_tech
@andreas_tech 2 года назад
yo man, do you have anything to do with slightly sociable? your expression/speed is great, and makes your vid very interesting to watch.
@uidotdev
@uidotdev 2 года назад
Haven't heard of them until now. After watching a few videos, very similar energy.
@ankk98
@ankk98 2 года назад
The videos that you referenced indicates that you are one of the enthusiasts.
@chukky4404
@chukky4404 2 года назад
Nice, was hoping for a comparison with flowtype
@Joso997
@Joso997 2 года назад
Typescript is child of Javascript and C#
@13has
@13has 2 года назад
TypeScript is my baby mama AND my wife; that's how loyal I am.
@uidotdev
@uidotdev 2 года назад
Dedication.
@shapelessed
@shapelessed 2 года назад
I migrated to TypeScript basically everywhere... It's hard not to see how many less nerves you lose when you don't have to trace one simple error for half an hour, just to realise it was a typo that could've been spoted in seconds with static typing...
@uidotdev
@uidotdev 2 года назад
Agree. Though, some people in these comments definitely don't 😂.
@davidt01
@davidt01 2 года назад
Yes, switching to Typescript was one of the best things I did.
@basarat
@basarat 2 года назад
It won because the TypeScript team listened ❤️ time and time again 🌹
@indycinema
@indycinema 2 года назад
This video is fucking awesome
@uidotdev
@uidotdev 2 года назад
🌹 Thank you!
@nixoncode
@nixoncode 8 месяцев назад
oh how the times have changed
@SelfMadeSystem
@SelfMadeSystem 2 года назад
I think TS has one of the best type systems of any language. Its "interface"s and string types (?) are actually the best.
@cyberprompt
@cyberprompt 2 года назад
hope this makes me change my mind about TS, cuz it takes long enough to create new functions quickly while debugging... and NOT BECAUSE of variable types!
Далее
The Story of Asynchronous JavaScript
10:20
Просмотров 152 тыс.
The Story of Next.js
12:13
Просмотров 529 тыс.
Реинкарнация
00:47
Просмотров 692 тыс.
Deleted skins in Standoff 2! #standoff #skins #nameless
01:00
What is TypeScript and Should You Learn it?
6:39
Просмотров 116 тыс.
The Story of Web Components
6:42
Просмотров 84 тыс.
Meet Jeff Delaney: The Mastermind Behind @Fireship
16:02
How Did I Not Know This TypeScript Trick Earlier??!
9:11
Imperative vs Declarative Programming
4:44
Просмотров 288 тыс.
The Story of React
10:05
Просмотров 243 тыс.
Svelte Broke Up With TypeScript??!
7:11
Просмотров 68 тыс.
TS vs JSDoc | Prime Reacts
22:11
Просмотров 87 тыс.
The Story of Concurrent React
11:59
Просмотров 158 тыс.