logoalt Hacker News

teaearlgraycoldyesterday at 5:51 PM2 repliesview on HN

Don’t use a library unless you really need it. Someone recently recommended I add Zod to a project where I am only validating two different JSON objects in the entire project. I like Zod, but I already wrote the functions to progressively prove out the type in vanilla JS.

Less is more, including other people’s libraries.


Replies

swidtoday at 4:34 PM

Go Proverb:

A little copying is better than a big dependency.

show 1 reply
jesse__yesterday at 6:10 PM

Agreed.