how to get better at typescript (feat. kysely)

Поделиться
HTML-код
  • Опубликовано: 9 июл 2024
  • While videos and blog posts are great, but nothing teaches me faster than trying to duplicate a cool pattern or technique. Sometimes that pattern comes from other languages, like Rust, and sometimes, it's something that TS developers who are way smarter than me have come up with.
    Code from the video: gist.github.com/andrew8088/d1...
    My Links
    shaky.sh
    shaky.sh/tools
    / andrew8088
  • НаукаНаука

Комментарии • 27

  • @igalklebanov921
    @igalklebanov921 Год назад +5

    ❤ from Kysely.

  • @florianbopp187
    @florianbopp187 Год назад +3

    Awesome video and a great way to demo actual generics outside of some of the very esoteric typescript challenges!

  • @hugodsa89
    @hugodsa89 Год назад +1

    Andrew I love your videos mate. Such a humble approach. You’d be a great tech lead / principal to work with.

  • @ltsSmitty
    @ltsSmitty Год назад +1

    one of your best, so nice to see you think.

  • @kerodfresenbetgebremedhin1881
    @kerodfresenbetgebremedhin1881 Год назад +2

    a master at work

  • @khashe
    @khashe Год назад +1

    Here I was thinking I knew Typescript... 😅
    Great video Andrew.

  • @galyedidovich
    @galyedidovich Год назад

    Awesome video! And great exercise 👨🏻‍💻

  • @Fullflexno
    @Fullflexno Год назад +1

    Thanks for this, pleas give us more advanced typescript💯

  • @TheTmLev
    @TheTmLev Год назад +11

    Definitely not the beginner way to learn TypeScript, but pretty cool nonetheless.

    • @andrew-burgess
      @andrew-burgess  Год назад +7

      For sure! But I think a lot of us know the basics, but want to keep learning past that plateau.

  • @user-yj2qb3rm2b
    @user-yj2qb3rm2b Год назад

    Yo man, this is awesome

  • @inamulhassan4384
    @inamulhassan4384 Год назад

    Great content.
    Can I have those typescript challenges links that you mentioned at the end ?

  • @dechobarca
    @dechobarca Год назад

    Hey Andrew, thanks for another great video, I have learned so much from your channel over the past 5-6 months. I just have a quick question.
    The T extends T syntax (at 06:18) always confused me a little bit. I understand what it achieves here (for example you can perform a check or a modification for each member of the union), but are there any other practical use cases where you would use T extends T (to start distribution) or is that only/mostly good when working with string literal unions (or other primitive union types).
    Basically I'm just asking if it's useful for other things.
    Cheers!

    • @andrew-burgess
      @andrew-burgess  Год назад +1

      Thanks for watching!
      It's mainly useful for distribution, but not just with primitive union types. Check out my recent video about this:
      ruclips.net/video/JyUwtRuMKUk/видео.html

    • @dechobarca
      @dechobarca Год назад

      @@andrew-burgess I've actually watched that video, but it didn't really "click" for me yet (yes I know, not the sharpest tool in the shed haha). Now that I've seen both I get a much clearer picture, thank you very much!
      One of the harder things about TypeScript at least from a personal experience is not just knowing about a certain technique but when and how to use it, and/or picking up good habits such as demonstrated in your videos. For that you need a good example and a little bit of practice.
      Cheers again!

  • @kennedydre8074
    @kennedydre8074 Год назад +2

    this is cool, i have always struggled with typescript generics and got lost as soon as you hit 4:23. Any tips?

    • @florianbopp187
      @florianbopp187 Год назад +2

      Start doing the typescript challenges! By far the best way to get your hands dirty and progress quickly!

    • @andrew-burgess
      @andrew-burgess  Год назад

      This is exactly right!

  • @user-de8ev2bn2d
    @user-de8ev2bn2d 6 месяцев назад

    太强了!

  • @micelumail5829
    @micelumail5829 Год назад +1

    me coming from searching kysely: wow 😅

  • @pss_crs
    @pss_crs Год назад +1

    the only take away from this is TS Generics are more powerful than my thought

  • @dgcp354
    @dgcp354 Год назад

    i genuinely get scared when i see this kind of ts videos

    • @andrew-burgess
      @andrew-burgess  Год назад

      Why is that?

    • @dgcp354
      @dgcp354 Год назад

      @@andrew-burgess because it makes me question whether I really even know TS or not, because after watching your videos one thing I know for sure is I only touched the tip of the iceberg. this is a good thing btw, your doing a great job

  • @kevinb1594
    @kevinb1594 Год назад +1

    10 years working with JS, I absolutely hate TS. Trying to learn it and it just feels gross. 3.5 minutes into this video and already no idea wtf is going on. Declare? keyof?

  • @djpunisha29
    @djpunisha29 Год назад

    TS is dying