Effective TypeScript › Item 74: Know How to Reconstruct Types at Runtime
A fundamental part of TypeScript's design is that TypeScript types are erased at runtime. There's no way to access them. But inevitably, you'll want to do just that. This comes up most often when you want to validate that user input matches a TypeScript type. Faced with this problem, TypeScript developers often reach for Zod, a schema validation tool. But Zod has some downsides, and it's not the only solution to this conundrum. This sample item explores this problem and three possible solutions to it.
HTML Forms have powerful validation mechanisms, but they are heavily underused. In fact, not many people even know much about them. Is this because of some flaw in their design? Let’s explore.
romboHQ/tailwindcss-motion: tailwindcss-motion is a Tailwind CSS Plugin made at RomboHQ. It’s a simple, yet powerful, animation library with a simple syntax.
tailwindcss-motion is a Tailwind CSS Plugin made at RomboHQ. It’s a simple, yet powerful, animation library with a simple syntax. - romboHQ/tailwindcss-motion
Tailwind Sync is a tool box that bridges Figma variables and Tailwind code, streamlining the collaboration between designers and developers, from simple projects to design systems. Features Plug and play: Simply drag and drop the file into your code editor and start coding with the exact same th...
Ruby is well known as a language that is easy to use from the surface but is very deep and complex underneath. That’s what we know and love about it as a language. Its standard library has a similar design and as such it contains many hidden gems. One of the gems I’ve learned about recently is un. It’s designed to be a command line utility executed directly from ruby. This is its usage description:
Speed Up Compound Full-Text Searches in PostgreSQL by 300x - RorVsWild
Querying your database across associations can become a bottleneck in your Rails application. Julian Rubisch, our first guest author, explains why and suggests an efficient solution.
mudge/argon2id: Ruby bindings to the reference C implementation of Argon2, the password-hashing function that won the 2015 Password Hashing Competition.
Ruby bindings to the reference C implementation of Argon2, the password-hashing function that won the 2015 Password Hashing Competition. - mudge/argon2id