I had a problem. Before I tell you about this problem, be warned — you will get emotional if you keep reading. Your heart will break for me. There will be weeping, so much weeping. You will be tempted to start a GoFundMe page to help ease my burden.
OK, here it is. Ready? Grab a tissue.
I have so many sneakers that I can’t remember all the pairs I own. Tragic, but true. The Red Cross has already declared this an international emergency.
Alright, alright — this is not a real problem. Well, maybe it’s the first-worldliest of first-world problems. Anyway, I’m not here to justify my obsession with retro sneakers (nostalgia, basketball fanatic, extra-feet syndrome). I’m here to explain why I created a web application to address this hyper-specific, undoubtedly trivial, quasi-problem-like situation that affects nobody but me.
I have one rule for every software project I start. The end result must be something I will actually use.
Like anyone else, I sometimes need motivation to keep plugging away at a task when it becomes frustrating. Why am I sitting here debugging this code, in my free time, when I could be doing something far easier, like watching TV or drooling over Air Maxes on Instagram?
Sure, I’ve been tempted to quit on a personal software project. There would be no consequences. Nobody would care. Yet I never have. I’ve finished every project I’ve started (all three!) because I know that, eventually, after much head-scratching and Googling and sotto voce cursing, each app I create will be useful — to at least one person. And that person is … Barbra Streisand. Sorry, typo. And that person is … me.
Which brings us back to shoes. Some sneaker collectors stock but don’t rock. Not me. I’m the type of sneakerhead who wears all his shoes. On occasion, though, I’ve opened a long-sitting box to find myself looking at a pair of kicks that I not only hadn’t worn but had escaped my memory altogether.
Seeing those poor sneakers just sitting there — neglected, unworn, unloved — caused me much anguish. Surely, no man has suffered such insufferable suffering.
I created a very simple web application I called Collection Tracker (click here to try a demo). It allows me to enter my sneaker collection into a database and browse a grid of images. Each morning, I open the application in Chrome (on my phone), I pick the pair I want to wear (on my feet), I press the “wear today” button (with my finger), and that day’s date is added to the database entry for those shoes (by digital magic).
The picture of that pair then drops to the last position of the last page of images. So when I open Collection Tracker, I first see pictures of the sneakers that have been sitting on my shelf the longest. No more neglected Nikes. No more abandoned ASICS. No more shunned Skechers. (Haha — Skechers. As if. Friends don’t let friends wear Skechers.)
Could I have just downloaded an existing app to my phone to organize my sneaker collection? Yes, of course. But you know what? Using this app is much more fun for me because I made it. It’s silly, but I really do look forward to pressing that “wear today” button every morning. Because I know it will call a function in my program, and that function will generate an HTTP request to Node, and Node will tell MongoDB to update my database, and that day’s date will be pushed into an array somewhere out there in the cloud.
There is something so rewarding about using the software you created from scratch. It’s not just text on GitHub. It’s not just part of a portfolio. It’s part of your life.
I also still use the first web application I made, called First and Last, which I described in a previous post for freeCodeCamp. It allows users to enter the first and last sentences of books into a database. I intended it to be a learning resource for other writers who, like me, enjoy improving their craft by studying the work of great authors. For months after I deployed it, though, I was the only person using this app, as you can see from the GIF below.
Sure, it would be great if other people were interested in my project, but, again, I was fine with being the only user. Just as I enjoy using my sneaker-tracking app, I look forward to finishing a book so I can enter its first and last sentences into my database. Then I click back to the homepage and watch the number indicating the collection size increase by one. They say you should enjoy the little things in life, and this is indeed a little, but enjoyable, thing.
Then, one day, I noticed something when I visited First and Last. Someone had entered a pair of sentences — and that someone wasn’t me! In fact, that someone was … Barbra Streisand. Again, I apologize. The Barbra Streisand key on my keyboard appears to be stuck. Let’s try that again.
In fact, that someone was … another human being (I presume). Since then, about 100 people have registered and logged into my app, and some have made contributions, which I really appreciate. Turns out that when you build something for yourself, it’s possible that other people will stumble upon it and use it as well.
One of the most fun parts of learning programming, if not the most fun part, is creating new things that actually do something. First, you had a blank screen on a text editor. Then you wrote some code. Then you had software — it may not be elegant or sophisticated or efficient, but it works. It performs the tasks you wanted it to perform. Maybe you’ll end up being the only person who ever uses that software. So what.
If it’s useful to you, it’s useful.
You may not have saved the world, or made any money, or attracted many users, but you made something from nothing. You learned a lot and created a tool that makes your life a little more convenient, or a little more fun. You added something of value to the universe — limited value, perhaps, but value nonetheless. The only code guaranteed to be useless is the code you don’t write.