КОМЕНТАРІ •

  • @0xtz_
    @0xtz_ Рік тому +86

    Me just start using zod 😂😂😂

    • @AmodeusR
      @AmodeusR Рік тому +7

      It's not a reason not to learn Zod though, it will still be used, likely will be update in the future to be even lighter, and considering Valibot is modular, you need to know what you're going to use, hence becoming quite a bit of a headache to use it, because you're likely not to remember everything you need to import, needing to go back and fourth importing things. With Zod you don't have such problem.

    • @0xtz_
      @0xtz_ Рік тому +2

      @@AmodeusR 💪 ofc man I'm always learning and ofc zod is the most popular one

    • @mzerone-g6m
      @mzerone-g6m Рік тому +1

      Continue use it becuase the library around it

    • @imkir4n
      @imkir4n Рік тому +4

      That's how web development works these days. 😭

    • @RaefetOuafiqo
      @RaefetOuafiqo Рік тому

      @@0xtz_ same i just used it in a project xd

  • @FabianHiller
    @FabianHiller Рік тому +17

    Hey Dave, thank you for featuring Valibot on your channel! 🤖

  • @multibinary
    @multibinary Рік тому +4

    Dave Gray on May 26: "You need ZOD"
    Dave Two months Later: "Good bye ZOD"
    😂😂... A tiny "meme-shove" from your very much loving follower of your channel, an admirer of ur comprehensive content and professional delivery. you are a true teacher and deserve a billion followers.
    If only people stopped watching "learning 'x' in 'y' minutes" videos and started learning from you... Thanks for all the content your creating Buddy.

  • @Salah-YT
    @Salah-YT Рік тому +3

    Your video was truly engaging, even though it's about new technology I'm not familiar with yet. I found it surprisingly amusing and watched it till the end. I must admit, I'm not sure how ZOD works, let alone Valibot, but your content keeps me coming back for more. I look forward to understanding it all one day. Thank you for creating such entertaining and informative videos. Keep up the fantastic work! 🙂

  • @mikevaleriano9557
    @mikevaleriano9557 Рік тому +2

    for frontend, sure! but build sizes mean next to nothing in the backend, plus fastify has integrations with zod for schemas that work perfectly.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode Рік тому

      Yeah this is brand new so it does not have any of the adoption yet. Give it a little time and we will see.

  • @dopetag
    @dopetag Рік тому

    Thank you, Dave! I should give it a try!

  • @codernerd7076
    @codernerd7076 Рік тому +16

    It's that time of the week again! Stop using X for Y because [insert speed/size] when X works great for years and most people are on high-speed internet 😅

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode Рік тому +7

      I agree - we see this take a lot here on YT. Not usually from me though. I really like Zod, but Valibot is impressive.

    • @AmodeusR
      @AmodeusR Рік тому +2

      Most people? Are you sure? Most of the world is poor and hence, have poor internet connection. Not only that, most part of the traffic is mobile, which connections tend to be even slower.

    • @codernerd7076
      @codernerd7076 Рік тому

      @AmodeusR poor or not even mobile internet is much faster, most got access to high speed at low prices. Looking at the world Latin America got 73% coverage of at least 1 mb/s at the lowest prices. And that data was from 2 years ago. And we talking about extra bytes here doubt it makes much of a difference

    • @ArcticPrimal
      @ArcticPrimal Рік тому +1

      @@AmodeusR yea exactly... even most people in the US dont have high-speed internet let alone the world. Fibre or even 5G is still have a long way to be implemented almost everywhere.

    • @codernerd7076
      @codernerd7076 Рік тому

      @AmodeusR Also during the covid times many countries and companies spend tons of money on their internet infrastructure speed and availability 🚀 in the last 2 years

  • @EliBates95
    @EliBates95 Рік тому

    Saw this on twitter a while back, definitely a nice improvement. Would love to convert some projects, but needing a resolver for react hook form. Hoping to see it soon! 🎉

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode Рік тому

      Agreed - very early stages now, but I think we will see that in the future.

  • @Alex-bc3xe
    @Alex-bc3xe 4 місяці тому

    The creator is a German Web Developer which has a lot of great projects and very optimized

  • @snivels
    @snivels Рік тому +4

    It does make me wonder why Zod isn't modular

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode Рік тому +1

      Not sure either but this seems like an improvement

    • @snivels
      @snivels Рік тому

      ​@@DaveGrayTeachesCodeabsolutely, thanks for bringing it to our attention

  • @CanRau
    @CanRau 11 місяців тому

    Also started switching first schemas over to valibot especially cause I use most of them on the client as well where bundle Size makes a big difference 🎉 also like the ergonomics

  • @MichaelCampbell01
    @MichaelCampbell01 6 місяців тому

    Nice overview; I would note though that "1x smaller" is zero, so 10x smaller? (Yes, yes, I know what you mean.)

  • @techs7296
    @techs7296 Рік тому +2

    Dont care about bundle size of just 20kb extra

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode Рік тому

      Fair enough but he did a great job. I'm looking forward to the support for this library continuing to grow.

  • @imam_robani
    @imam_robani Рік тому

    would you be willing to make a recoil video for state management?

  • @eleah2665
    @eleah2665 Рік тому

    Interesting. Thanks.

  • @fscubetech7219
    @fscubetech7219 Рік тому +1

    And you great content.

  • @jhaeberli
    @jhaeberli 5 місяців тому

    I embrace the evolution, but the downsize is in the real world now you need to know at least three different tools only for schema validation: yup, zod, valibot. Luckily they don't ask this types of questions in interviews, yet.

  • @BinaryReader
    @BinaryReader Рік тому

    Totally, I wish TypeScript would let me to configure 'string', 'number' and 'boolean' native types before use like valibot lets me import specific runtime types. I don't need all the TS type system, c'mon just numbers and strings!!!
    Seriously tho, we need better tree shaking. It's entirely possible to tree shake classes and modules with a capible compiler....just right click a class function and select "Find all References", if none are returned, cull it. I don't understand why one would resort to piece meal imports when a capable tool could just tree shake. Surely barrel importing Valibot would be the typical usage, in which case.....whats been achieved over Zod?

  • @giannifed
    @giannifed Рік тому

    Is it works with react-hook-form? Thank you.

  • @optimbro
    @optimbro Рік тому +2

    me who was about to learn zod 😂😂

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode Рік тому

      Zod is still good and worth learning - but it is good to know about new alternatives, too! Valibot is a great choice!

    • @optimbro
      @optimbro Рік тому

      modularization looks good, and I think only people that have used Zod can only experience the real benefits of Valibot over it. @@DaveGrayTeachesCode

  • @CTILET
    @CTILET Рік тому

    Should i first repeat javascript to learn Typescript?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode Рік тому

      I don't know about "repeating" but you should _know_ JavaScript to learn TypeScript.

  • @ThanHtutZaw3
    @ThanHtutZaw3 7 місяців тому

    Hi How can I use zod in frontend and backend MEVN . I deployed both separately in vercel So I can't access zod schema in production . Can I use mono repo for that problem ?

  • @picatchumm64
    @picatchumm64 Рік тому +1

    Hi, Yup is a good library too ?

  • @darwinmanalo5436
    @darwinmanalo5436 Рік тому

    I don't even know what Zod is. Is it similar to joi?

  • @AmodeusR
    @AmodeusR Рік тому +1

    Considering Valibot is modular, you need to know what you're going to use, becoming quite a bit of a headache to use it, because you're likely not to remember everything you need to import, hence needing to go back and fourth... I don't really like that. A good workaround should happen in the build time removing unnecessary code/functions.

    • @cryptoboy1461
      @cryptoboy1461 Рік тому

      A very good point.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode Рік тому +1

      That is another possibility. Valibot seems to mirror TS as closely as possible which removes much of the guessing concerning imports.. at least for me.

    • @FabianHiller
      @FabianHiller Рік тому +2

      That's right. However, it only works in practice if you, as the developer, provide additional information that the bundler can use to remove the code. However, as far as I know, no current JavaScript bundler supports this yet. A compromise is to use Valibot with a wildcard import.
      It is also important to note that suggesting object properties is not a JavaScript feature, but tooling in your editor. Means that we can get almost the same development experience in the future with e.g. an extension for VS code.
      I will write more about this in my bachelor thesis, which I will publish in a month or so.

  • @mrbilchalan
    @mrbilchalan Рік тому

    For server side data validation I prefer class-validator. Its much cleaner and very much powerful what i think. I never heard about class-validator from you. Can you please make a tut about node, express, mongodb and typescript rest api. Thank you, Dave.

    • @micalevisk
      @micalevisk 11 місяців тому +1

      class-validator was not develop to be faster nor small. And the project is not being well maintained anymore.

  • @ArcticPrimal
    @ArcticPrimal Рік тому

    Dave, how does it fair with react hook form?

    • @cryptoboy1461
      @cryptoboy1461 Рік тому +1

      Does not work with react hook form yet.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode Рік тому +2

      This was just released so I don't think it has a resolver for that yet. Looks like the author is adding more support daily.

    • @ArcticPrimal
      @ArcticPrimal Рік тому

      @@cryptoboy1461 Thanks

    • @ArcticPrimal
      @ArcticPrimal Рік тому

      @@DaveGrayTeachesCode Thanks

  • @waqaskhandev
    @waqaskhandev Рік тому

    superman for general zod.

  • @ulrich-tonmoy
    @ulrich-tonmoy Рік тому

    So General Zod its time for your retirement

  • @saurabh75prakash
    @saurabh75prakash Рік тому

    I just started using zod😂

  • @anandoganiya9070
    @anandoganiya9070 Рік тому

    Me just stated refactoring project with zod 😂

  • @eder3232
    @eder3232 Рік тому

    buen video

  • @supernova82
    @supernova82 6 місяців тому

    So your video title says Stop Using Zod and then later you mention in your video that you haven't even used the library yet in any of your projects. The clickbait title can get some views but reduces the presenter's credibility.

  • @mrfabulous3303
    @mrfabulous3303 Рік тому

    Please make a tutorial on Svelte 😊 ,...... 🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍🤍

    • @cryptoboy1461
      @cryptoboy1461 Рік тому +1

      Why do you need a tutorial? They have an excellent tutorial on their website, plus the docs are very helpful.