EP29 装上 Zod 没有 Bug episode artwork

EPISODE · Oct 8, 2023 · 13 MIN

EP29 装上 Zod 没有 Bug

from AsyncTalk

Shownotes本期节目主要介绍了运行时的校验以及它的一个实现 —— Zod.在越来越大的项目中,运行时校验是逃不开的一个环节,可以应用在表单校验,API 返回值校验和后端的参数校验中。如果你的项目多人协作但是还没有接入类似的功能,可以考虑加一下,降低一些 bug 率如果对节目有任何意见或者建议,欢迎联系 [email protected]名词解释Runtime: 运行时,运行中的情况CI: 持续集成,简而言之,build & test 放到独立的服务器去做Lint: 代码校验,规范协作情况下代码统一主播AnnatarHe: https://annatarhe.comTimeline00:20 最近意识到 zod 蛮有趣的00:50 大型项目协作的问题02:30 Runtime 检查的必要性03:20 Zod 的优势04:30 应用场景 —— 表单校验06:10 应用场景 —— API 校验07:50 应用场景 —— 后端 HTTP 参数校验09:10 Zod 实用小技巧 —— Infer09:50 Zod 实用小技巧 —— Don't Trust, Verify11:10 Zod 的竞争者们 —— Joi, Yup12:20 总结: 用起来呀~相关链接Zod: https://zod.dev/Zodios: https://www.zodios.org/Sentry: https://sentry.io/welcome/Joi: https://github.com/hapijs/joiYup: https://github.com/jquense/yup扩展阅读2 hidden ways to get more from your Gmail address: https://gmail.googleblog.com/2008/03/2-hidden-ways-to-get-more-from-your.htmlDon't Trust, Verify: 很久之前看的文章,找不到了,请自行搜索。Zod 对比: https://zod.dev/?id=comparisonBGM by Otologic

Episode metadata supplied by the publisher feed · Published Oct 8, 2023

Embed this episode

NOW PLAYING

EP29 装上 Zod 没有 Bug

0:00 13:18

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of AsyncTalk?

This episode is 13 minutes long.

When was this AsyncTalk episode published?

This episode was published on October 8, 2023.

Can I download this AsyncTalk episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!