Code with Saad

Code with Saad Software Engineer specializing in full-stack development with Next.js, Node.js, and React Native.

Experienced in building scalable apps, secure backends, and robust APIs and delivering high-quality solutions for real estate, ERP, AI, and mobile apps.

04/11/2026

A site we fixed took 8 seconds to load. Now it takes 1.8.

No rewrite. Five fixes:
1. Images to WebP + compression
2. Code splitting
3. Caching
4. A CDN
5. Faster database queries

Which one would help your site most? 👇

Full checklist: link in bio.

“Why is the dashboard so slow?” It took 8 seconds to show a list of users.The code looked clean. The database log showed...
02/11/2026

“Why is the dashboard so slow?” It took 8 seconds to show a list of users.

The code looked clean. The database log showed 501 queries for 500 users, on every page load.

That’s the N+1 problem: one query for the list, then one more for every item in it. It works fine with 10 test users and falls over with real data.

The fix was one line: include the posts in the same query. 8 seconds became 0.4.

Full breakdown for Prisma, Drizzle and GraphQL: link in bio.

28/10/2026

Built your app in a weekend with Cursor, Lovable or Bolt? Then week one happens.

Someone sees another user’s data. A payment goes through but the account never upgrades. Every fix breaks two other things.

The same 4 fixes save almost every app I’m asked to look at:
1. Get secret keys out of the browser
2. Turn on Row Level Security
3. Check permissions on the server, not the UI
4. Upgrade accounts from a verified Stripe webhook

Rescue it, don’t rewrite it. Full 1-hour launch checklist: link in bio.

“Can we train ChatGPT on our data?” is the question I get most from clients.The honest answer: you almost never need to ...
26/10/2026

“Can we train ChatGPT on our data?” is the question I get most from clients.

The honest answer: you almost never need to train anything.

Training teaches a model how to write, not what’s true. What you want is RAG: keep your documents separate, find the right passages for each question, and let the model answer only from them. Change a document and the next answer already uses the new version.

The code is the easy 20%. Permissions, keeping the index fresh and testing with real questions are the rest.

Full guide with code for every step: link in bio.

Checkout took 45 seconds. Customers were staring at a spinner.I rebuilt the order system as event-driven. It now takes u...
21/10/2026

Checkout took 45 seconds. Customers were staring at a spinner.

I rebuilt the order system as event-driven. It now takes under 2 seconds.

It also went over budget, took twice as long as planned and nearly got cancelled.

What we actually run now is a hybrid:
- payment and inventory stay as direct calls
- email, SMS, analytics and CRM become events

Building a CRUD app? Just use REST.

Full story on Medium, link in bio.

Our Redis bill went from $340 to $580/month in three months. For a SaaS app with 12,000 users.So I moved auth from sessi...
19/10/2026

Our Redis bill went from $340 to $580/month in three months. For a SaaS app with 12,000 users.

So I moved auth from sessions to JWT. It took 2 weeks, saved about $460/month and cut 120ms off average response time.

It also broke logout, made refresh tokens a project of their own, and made every request heavier.

My honest take: under 10,000 users, just use sessions.

Full write-up with all the code: link in bio.

Which one are you using right now? 👇

People, stop thinking AI can replace experienced engineers.AI is powerful — but it doesn’t think, anticipate, or take re...
04/01/2026

People, stop thinking AI can replace experienced engineers.
AI is powerful — but it doesn’t think, anticipate, or take responsibility.

Yes — AI can generate websites.
Yes — it can write code.
Yes — it can design layouts in seconds.

But here’s what no one tells you 👇
AI doesn’t think like a human.
It doesn’t foresee edge cases.
It doesn’t understand your business context.
It doesn’t predict how users will break your product.

And when something breaks?
AI doesn’t debug — you do.

Here’s the uncomfortable truth:
If you don’t understand code, architecture, and systems, AI will eventually get you stuck in a loop you don’t even know how to escape. 🔁

AI can:
✅ Generate design ideas
✅ Speed up development
✅ Automate repetitive tasks
✅ Help experienced builders move faster

But AI cannot:
❌ Make strategic tech decisions
❌ Anticipate long-term failures
❌ Design scalable architecture
❌ Own the consequences when things go wrong

That’s why the best results don’t come from AI alone —
They come from humans who know how to use AI properly.
I don’t compete with AI.

I use it as a tool — the same way a pilot uses autopilot. ✈️
Powerful? Yes.
Replace the pilot? Never.

So if you’re building a business, an app, or a website —

Don’t just “generate” it.
Build it right.

Because AI can help you move fast.
But experience is what keeps you from crashing.

saad-minhas.com

Address

2A DHA Phase 6 Lahore
Lahore
54000

Alerts

Be the first to know and let us send you an email when Code with Saad posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Code with Saad:

Shortcuts

Share

Nearby computer & electronics services