monarchwadia.comConvention as Code: Enforcing Architecture with Scripts, CI, and AI AgentsConventions Drift Vibe coding gets it 80% right, but the remaining 20% needs enforcement via some mechanical method. Every codebase has unwritten rules. "Schemas go in their own files." "Always be explicit about strictness." They live in someone's he...Feb 14·6 min read
monarchwadia.comHow To: Vector embeddings and semantic similarity WITHOUT OpenAIWhy avoid OpenAI OpenAI is great, but costs money. Learning to do things with open source models is a valuable skill. Open source models are the future, Google recently said "We Have No Moat, And Neither Does OpenAI" SentenceTransformerService I'...Oct 9, 2023·2 min read
monarchwadia.comI'm using Python notebooks to prototype my LLM prompts before implementing them in code.When a traditional developer thinks about prototyping a code-only component, a few different approaches come to mind. Write a simple script to execute the new component in isolation, then print the results and inspect them manually. Improving on #1...Sep 6, 2023·3 min read
monarchwadia.comTRPC + Zod: How to automatically connect your forms to backend field-level validations.Why do I need this? Hooking up form-level and field-level errors to Zod validations in TRPC is very powerful because it saves you a lot of effort. You never have to do frontend validations again. You can generically hook up forms with TRPC actions....Jul 30, 2023·3 min read