Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Pricing
Podcast Image

AsyncTalk

EP29 装上 Zod 没有 Bug

08 Oct 2023

Description

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

Audio
Featured in this Episode

No persons identified in this episode.

Transcription

This episode hasn't been transcribed yet

Help us prioritize this episode for transcription by upvoting it.

0 upvotes
🗳️ Sign in to Upvote

Popular episodes get transcribed faster

Comments

There are no comments yet.

Please log in to write the first comment.