<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anu Oguntoye on Medium]]></title>
        <description><![CDATA[Stories by Anu Oguntoye on Medium]]></description>
        <link>https://medium.com/@anucodex?source=rss-88c095bb2c20------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1Sa0gDIDgwj-OU0S5MzEXw.jpeg</url>
            <title>Stories by Anu Oguntoye on Medium</title>
            <link>https://medium.com/@anucodex?source=rss-88c095bb2c20------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:33:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anucodex/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Breaking Up with ORMs in Node.js: A Hilarious Journey to SQL Freedom in 2024]]></title>
            <link>https://medium.com/@anucodex/breaking-up-with-orms-in-node-js-a-hilarious-journey-to-sql-freedom-in-2024-27bdc82c98c1?source=rss-88c095bb2c20------2</link>
            <guid isPermaLink="false">https://medium.com/p/27bdc82c98c1</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[orm]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Anu Oguntoye]]></dc:creator>
            <pubDate>Sat, 06 Jan 2024 10:22:16 GMT</pubDate>
            <atom:updated>2024-01-06T10:22:16.024Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84siDb4HFcBzSB14Vqx8Nw.jpeg" /></figure><p>Hello fellow code wranglers! Today, I’m here to share my daring escape from the clutches of ORMs (Object Relational Mischief-makers) in Node.js.</p><p>If you’ve ever dabbled in the art of backend JS, you know the struggle is real when it comes to choosing between ORMs and ODMs. But fear not, for this tale is all about ORMs, those cheeky beasts that promise simplicity but often deliver a rollercoaster of surprises.</p><p>So, what’s an ORM? Well, it stands for Object Relational Mapping — a fancy term for a matchmaker between your object-oriented dreams and the harsh reality of relational databases. Think of it as a mediator, sparing you from the headache of SQL syntax (the secret language of databases).</p><p>Now, don’t get me wrong; ORMs are like magic wands, waving away SQL sorcery. But, like any magic, they come with their bag of tricks, and sometimes those tricks bite back. Let’s dive into the comedic chaos that ensues:</p><p><strong>1. Performance Pandemonium: </strong>Suddenly, a query that used to be a speed demon becomes a turtle on a caffeine detox. ORM-induced slowdowns, anyone?</p><p><strong>2. Learning Limbo: </strong>Ever felt like you’re in a maze of ORM-specific knowledge? Welcome to the club. Each ORM has its own secret handshake, and sometimes deciphering it feels like learning a new dance in the dark.</p><p><strong>3. Raw SQL Riddles:</strong> Picture this: you’re happily coding along when suddenly, the ORM refuses to cooperate. What’s the solution? Writing raw SQL — the very thing you were trying to avoid. Irony at its finest.</p><p><strong>4. Bugs and the Code Blob:</strong> The joy of discovering unexpected bugs and watching your codebase bloat like it’s been on a junk food binge. ORM-induced surprises, served daily.</p><p><strong>5. Theatrical Production:</strong> Shipping code to production starts feeling like preparing for a Broadway show — extravagant, time-consuming, and prone to unforeseen hiccups.</p><p>But wait, are ORMs really villains in this story? Well, that’s a gray area. It depends on your program, your needs, and your tolerance for surprises.</p><p>Now, let’s talk about the star-studded lineup of JS ORMs in 2024:</p><p><strong>1. Sequelize:</strong> Great community, snazzy methods, but a bit of a letdown in the TypeScript department. Sorry Sequelize, not everyone can be a TypeScript heartthrob.</p><p><strong>2. Prisma:</strong> TypeScript’s best friend, but it operates in a realm far, far away from your database. Think of it like sending a carrier pigeon instead of using WhatsApp — effective, but not quite the same.</p><p><strong>3. TypeORM:</strong> A drama queen with maintenance uncertainties and unexpected twists. Approach with caution — you might get more than you bargained for.</p><p>So, after this rollercoaster, I’ve decided to part ways with ORMs and embrace tools that let me speak the true language of databases — SQL.</p><p>Here are my newfound companions for Node.js:</p><p><strong>1. Kysley:</strong> A type-safe SQL query builder for TypeScript — because who needs drama when you can have clarity?</p><p><strong>2. Prisma &amp; Prisma-Kysley:</strong> Dev dependencies only. No sneaking into production! Prisma, you’re still cool for your migration magic.</p><p><strong>3. Custom Migration Scripts In Production:</strong> Because sometimes, you just need a personal touch.</p><p>This setup works like a charm for me, and I’m so excited about it that I might even make a YouTube video to show you how it’s done. Stay tuned for that!</p><p>Thanks for joining me on this wild ride. Love y’all and happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27bdc82c98c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>