3 ms·
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
by teaearlgraycold 10mo ago
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.
- jesse__ 10mo agoAgreed.
- swid 10mo agoGo Proverb: A little copying is better than a big dependency.
- teaearlgraycold 10mo ago100% agree. This actually makes AI-aided development a big improvement (as long as you’re careful). You can have an LLM write you a little function, or extract the correct one from a big library, and inline it into your module.