What building four apps taught me as a software engineer
By Adarsh Raut ·

I'm Adarsh Raut, a software engineer and full stack software developer based in Pune, India. I work with React, Next.js, Node.js and TypeScript, and I build both web and mobile apps with React Native.
Since February 2024 I've worked as a full stack developer at Rangi Lalls, building production features across React, Next.js, Node.js and MongoDB. On the side I build my own projects, and four of them are live: PocketTripAI, AI Resume Analyzer, Habits Aura and Pomodash. Here are the lessons that kept coming up across all of them.
1. Derive numbers instead of storing them
In Habits Aura I used to store each habit's streak in the database. Later I deleted those columns and calculate streaks from the completion rows. Pomodash does the same with task counts, and Habits Aura can recompute a user's aura score from their completions.
A stored copy of a number can drift away from the data behind it. A number you derive can't. I keep the raw events and calculate everything else.
2. Validate at every boundary
Every place where data enters the system gets a schema. Pomodash validates each server action and API route with Zod. AI Resume Analyzer parses the model's JSON and then checks it against a schema. PocketTripAI generates its request schema and validates the response from the same Zod definition.
If the shape is wrong, the request fails loudly with an error. That's better than putting bad data on the page.
3. The browser and the model are both untrusted
The server decides what's allowed. Pomodash won't accept a completed session longer than the timer you configured, or more than 24 hours of timer in 24 hours, so its leaderboard stays hard to fake. PocketTripAI doesn't trust the model's own budget total. It checks the plan against your budget and sends it back for revision, with the exact overage, when it doesn't fit.
4. Make retries safe
Requests get repeated: a flaky connection, a beacon sent on tab close, a user clicking twice. Pomodash gives every run a clientId so the same session is saved only once. PocketTripAI guards its refund with a status check in the database, so a failed plan refunds the free slot exactly once.
5. Time zones belong to the user
Servers run in UTC, but "today" is a local idea. In Pomodash and Habits Aura, streaks, weeks and heatmaps follow the user's calendar. A session logged at 11:30 pm in Pune counts for that day.
6. Don't keep the request waiting
Generating a travel itinerary can take a while. PocketTripAI answers "queued" in about two seconds and finishes the work in the background with Next.js after(), while the client polls for progress. Users get fast feedback, and the long job has a clean failure path.

The stack I reach for
For most products I start with Next.js and TypeScript, because one language across the UI and the server keeps small teams fast. For data I pick PostgreSQL with Prisma or Drizzle, or MongoDB when the data suits documents. At work I also build REST APIs with Node.js and Express and mobile apps in React Native.
Work with me
I take on freelance projects as well as full-time work. If you need a software developer or software engineer who can take a feature from idea to production, you can find me on LinkedIn and GitHub, or look through my projects.