Proxy & Flyweight Patterns - No BS TS Series 2 Episode 5

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2025

ความคิดเห็น • 36

  • @avi7278
    @avi7278 3 ปีที่แล้ว +20

    I'm a 10 year developer who has just recently started working with typescript. This is by far the most structured and instructive typescript information that I've come across. Even though I'm pretty well-versed in typescript now, I'm definitely going to pick up your book, to fill in some of the typescript blanks that I've got and definitely to have a handy reference and examples of all these patterns in one place is priceless. Heck of a job, my friend!

    • @jherr
      @jherr  3 ปีที่แล้ว

      Thank you!

    • @avi7278
      @avi7278 3 ปีที่แล้ว +1

      @@jherr When it's completed, will you be selling physical versions?

    • @jherr
      @jherr  3 ปีที่แล้ว +2

      @@avi7278 Maybe. I'll have a chat with O'Reilly or Packt. It's good to know there is interest though.

    • @avi7278
      @avi7278 3 ปีที่แล้ว

      @@jherr Would be a great addition to my library, thanks for all your efforts!

    • @avi7278
      @avi7278 3 ปีที่แล้ว +1

      @@jherr Oh and Jack, one last thing. I'd love to hear your thoughts on the Zod validation library. It does run-time type checking and has an infer helper that generates typescript types from validation schemas. I've been trying to decide how heavily to use it. Seems expensive. I bet it would make a great video. Cheers!

  • @NorweskiDrwal
    @NorweskiDrwal 3 ปีที่แล้ว +4

    The book is great!
    I am 4 years into working with TS and learning how other people work with it is priceless.
    10/10 will recommend ;)

    • @jherr
      @jherr  3 ปีที่แล้ว +1

      Thank you!

    • @NorweskiDrwal
      @NorweskiDrwal 3 ปีที่แล้ว

      @@jherr no, thank you! :)

  • @matthew1106
    @matthew1106 3 ปีที่แล้ว +1

    Best most practical tutorials on JS and Typescript on TH-cam. It had to be said.

  • @tato03130
    @tato03130 3 ปีที่แล้ว +3

    No BS TS is just the best!!!

  • @MrNathanShow
    @MrNathanShow 3 ปีที่แล้ว +1

    Yep, just locked it in, got the book. Love the reference material! Thank you!

  • @Messirobben047
    @Messirobben047 3 ปีที่แล้ว +1

    Very solid content Jack. Thanks

  • @ThEldeRS
    @ThEldeRS 3 ปีที่แล้ว +1

    If I remember correctly vue uses proxies under the hood for state management, which seems pretty clear why it looks so similar to the custom hook you created!
    Enjoying this series a lot and already bought the book! 😁

  • @HeinekenLasse
    @HeinekenLasse 3 ปีที่แล้ว +1

    Fantastic content Jack! Love the series

  • @TheEfscomplex
    @TheEfscomplex 3 ปีที่แล้ว +3

    almost a mobx library in just 10 minutes!!

  • @francis_n
    @francis_n 3 ปีที่แล้ว +2

    1:10 "Rescource"? - haha just being silly, great video as usual Jack 🙂

    • @jherr
      @jherr  3 ปีที่แล้ว +1

      Agghhh... Problem is that the textarea where I type in those labels is this crazy small font... 🤣

  • @7urkoGaming
    @7urkoGaming 2 ปีที่แล้ว

    Nice explanation and so profesional.. One question, I think you miss to call proxy.subscribe(console.log)() to delete the suscribe right? Thanks.

  • @nattysweg343
    @nattysweg343 ปีที่แล้ว +1

    Awesome~

  • @mariokrstevski8836
    @mariokrstevski8836 3 ปีที่แล้ว +1

    Mind blowing 🔥

  • @mithushanjalangan5132
    @mithushanjalangan5132 3 ปีที่แล้ว

    Would you it be possible to cover the plugin architecture pattern as well ?

  • @likesandeep
    @likesandeep 3 ปีที่แล้ว +1

    Jack I am in love with your No BS TS series, I actually feel shame to watch such high quality content for free. Going to buy your book soon, is there any other ways to support you.

  • @kuhaniresti
    @kuhaniresti ปีที่แล้ว

    the problem is the get and set is does not support promises or await

  • @techdesigner
    @techdesigner 3 ปีที่แล้ว +2

    Valtio is doing pretty much the same thing.

    • @jherr
      @jherr  3 ปีที่แล้ว +2

      Exactly. This the technology at the heart of MobX and Valtio, albeit with a lot more infrastructure and fault tolerant code.

  • @RetainWarrior144
    @RetainWarrior144 3 ปีที่แล้ว

    is the book sale over?

    • @jherr
      @jherr  3 ปีที่แล้ว +2

      Nope, still on sale. :)

  • @paulharbinson1174
    @paulharbinson1174 3 ปีที่แล้ว +1

    Anyone else get the following when they run 'npx ts-node index.ts'?...
    Must use import to load ES Module: C:\flyweight
    ode_modules
    ode-fetch\src\index.js
    require() of ES modules is not supported.
    require() of C:\flyweight
    ode_modules
    ode-fetch\src\index.js from C:\Users
    0317643\Projects\Typescript\patterns\flyweight\index.ts is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.

    • @paulharbinson1174
      @paulharbinson1174 3 ปีที่แล้ว

      As a hack I have to downgrade to version 2 of node-fetch, create a tsconfig.json file and set strict to false in it.

    • @isaac.queiroz
      @isaac.queiroz 2 ปีที่แล้ว

      And don't forget to install the types for the 2.0.0 version as well: yarn add -D @types/node-fetch@^2.0.0

  • @andTutin
    @andTutin 2 ปีที่แล้ว

    is this series over? 🤔

    • @jherr
      @jherr  2 ปีที่แล้ว +4

      Hiatus for a while. Will be back at some point in some form.

    • @VirtualDarKness
      @VirtualDarKness ปีที่แล้ว

      @@jherrhi! Just bought the book, but didn't realise the series was "on hold". Great content so far and hope you'll manage to add more chapters! Thanks