Portfolio
HOME
ABOUT ME
JOBS
BLOGS
BTAS: Code in JavaScript, Deploy in Rust
BTAS (Behavioral Transpilation with Auto-Specification) is a methodology for migrating code between languages — or modernizing within the same one — while preserving behavior verified by automated tests
David Alfonso Pereira
17/02/2026
JavaScript and Rust: Two Directions to Optimize Your Backend
Discover how to integrate Rust and JavaScript/TypeScript in both directions: speed up Node.js with Rust, or add flexibility to Rust with JS/TS
David Alfonso Pereira
30/01/2026
Everything in AI runs on context
Discover how context is the key to getting better AI responses. Tips, tricks, and tools for properly feeding language models.
David Alfonso Pereira
29/12/2025
How I use AI to modernize legacy projects without breaking anything
A practical methodology for refactoring legacy code using AI as a copilot, without losing functionality or your sanity in the process.
David Alfonso Pereira
24/12/2025
Why I left Jest and I'm not going back
Jest was the standard for years, but Vitest is here to stay. Here's why I made the switch and why you probably should too.
David Alfonso Pereira
23/12/2025
Criteria Pattern: How I Stopped Creating findByX Methods for Every Query
In this article we explore what the Criteria pattern is and how to implement it in TypeScript to build flexible and reusable queries
David Alfonso Pereira
02/12/2025
Refresh Tokens: the missing piece in your authentication system
In this article we explore what a refresh token is, how it works, and why it is essential for maintaining secure and seamless sessions in modern applications.
David Alfonso Pereira
10/09/2025
Deploying Next.js to GitHub Pages: the guide I wish I had
In this post you will learn how to deploy a Next.js application using GitHub Actions, with all the tricks the official documentation does not tell you.
David Alfonso Pereira
07/09/2025
Why I started this blog (and what you will find here)
First blog post: what this is about, why I write it, and what you can expect to find.
David Alfonso Pereira
05/09/2025