Skip to main content

What a college parking app taught me before I touched React

My first real project was an Android app for booking parking slots. Most of what I got wrong in it still shows up in my work today.

Vishwajit BhosleSoftware developer, Pune 4 min read
On this page

Before React, before any of the web stuff I get paid for now, I built a parking app. Android, Java, a SQL database, and a problem I'd actually been annoyed by: driving around a crowded area looking for somewhere to leave a bike or a car, burning petrol, getting more irritated by the minute.

The idea was simple enough. You open the app, see which slots are free near you, book one, and extend the booking if you're running late. Billing happens automatically when you leave, so nobody has to find change. There was also a part where users could report what they saw on the ground, like "this lot is full" or "this one's empty", because the data we had was never going to be perfectly live.

It was a college project, and it shows in places. But I still think about it more than I expected.

The part I was proudest of was the least important

I spent a long time on the booking screen. Animations, a nice map pin, the whole thing. The thing that decided whether the app was any good was something much duller: whether the availability number was true.

If the app says a slot is free and you drive ten minutes to find it taken, you don't care how nice the pin looks. You uninstall. I learned that trust in an app is mostly about one boring number being right, and I've seen it again in every project since. Ticket counts, stock levels, order status. Make that one thing honest before you make anything pretty.

That's also why I liked the crowdsourced reports, even though they were messy. When the system doesn't know, it's better to say "last reported 12 minutes ago" than to show a confident number that's out of date. I didn't have the words for it then. Now I'd call it showing your uncertainty, and I try to do it in every dashboard I build.

Billing is where you meet edge cases

Automated billing sounds like a feature you tick off. Then someone books for an hour, extends twice, leaves early, and you have to decide what exactly they owe. Does an extension restart the clock? What if they leave in the middle of the extra time? What happens if the phone loses signal at the exit?

I wrote a lot of if-statements that semester. I also wrote some tests, though honestly fewer than I should have, and the bugs I found later were all in this area. If I did it again I'd write the billing rules down in plain sentences first, get someone to read them and say "wait, what about this case", and only then code them. It's much cheaper to find the awkward case in a sentence than in a user's receipt.

GPS lies

I used the phone's location to show nearby lots, and it worked beautifully in testing, standing outside, with a clear sky. Inside a covered parking structure it was off by enough to put you on the wrong street.

So I added a way to correct it manually and stopped trusting the dot on the map more than the user's own judgement. This is a small thing, but it taught me a rule I still follow: sensors and networks fail in the places where your users actually are, not where you tested.

What I'd do differently

Mostly less. I'd cut half the screens, keep the booking flow, billing and the availability number, and spend the saved time on testing the ugly cases. I'd also talk to the people who run the lots, which I never did. I assumed I knew what they needed. I didn't.

That last one is probably the real lesson. Years later, working on tools for event teams and fleet managers, the work goes better when I've sat with the people who'll use it for even an hour. The parking app taught me to code. It took me a while longer to learn that part.

Enjoyed this? Pass it on

Written by Vishwajit Bhosle

I build and lead web and mobile products from Pune, and write about what I run into along the way. If something here helped, or you have a project in mind, say hello.

Follow along

New posts show up in any feed reader the moment they are published: no account, no email, no tracking.

Open in Feedly

Comments

Anyone can comment, no sign-up. Upvote what helped, reply to anyone. I read all of them and reply where I can.

Loading comments…