Skip to main content

Posts

The One-Letter Rails Bug That Slipped Past Rubocop, CI, and Code Reviews

We often think production bugs happen because of big oversights or complex logic failures. But sometimes, it’s the smallest things—a single typo—that sneak past every safeguard and cause trouble in live environments. Recently, I had one such experience in a Rails project. It wasn’t a major crash, but it did break a piece of business logic under specific conditions. More importantly, it taught me valuable lessons about code reviews, rubocop, and testing discipline—lessons I’d like to share here. The Safeguards We Already Had Like most teams, we don’t push code directly to production. Instead, we follow a layered safety net: ✅ Pre-commit checks to catch obvious mistakes ✅ RSpec test cases to validate logic ✅ CI pipelines to enforce standards and run checks ✅ Code reviews to ensure human oversight ✅ QA testing before deployment You’d think with all this in place, no typo could possibly slip through. So how did it happen? Where Things Went Wrong: Rubocop and a “Helpfu...
Recent posts

Python VEnv Setup: A Rails Developer's Survival Guide 🐍

Hey everyone! Ever been in a situation where you solve a tricky technical problem, celebrate your victory, only to face the exact same problem months later with no memory of your brilliant solution? 😅 That's exactly what happened to me, and it taught me a valuable lesson about documenting those "one-off" solutions. The Genesis of a Python Problem 💡 In our project, we had a unique requirement: efficiently manage feature flags. Our solution involved moving one of our API endpoints to an AWS Lambda Function. My task? Replicate the existing API response using Python and, of course, use the same environment variables. Sounds straightforward, right? Initially, it felt like smooth sailing. I got hold of the existing Python code used for authorization, analyzed how to handle requests and responses, and started writing my own. But then came the pain point: setting up a Python virtual environment (venv). As a Rails developer, Python venvs were a foreign concept to me. I was c...

How To Set Up Google Chrome Browser Sync with your Device ?

A ccess history, passwords, etc. on all your devices Google Chrome syncing makes using the browser on multiple devices a breeze. All your information is backed up to your Google account and then used for every instance of Chrome that’s logged into the same account. If you have a new computer, syncing Chrome would be beneficial so that none of your bookmarks are misplaced during the transition. You can also set up Chrome sync between your phone and computer to access saved passwords, history, and more. Let’s look at why someone might set up Chrome sync and how easy it is to do. Why You Should Set Up a Chrome Sync If you’ve ever lost a bookmark or forgot a password you saved to Chrome years ago, you’ll want to set up Google Chrome sync. It’s the fastest, easiest, and most reliable way to keep all your Chrome information stored in your Google account, should anything happen to the local copy on your computer or phone. Of course, Chrome syncing comes in handy in other situations too, like ...

Trusted Third -Part Sites for APK ?

Great for Paid Apps or Emulators APK stands for Android Package Kit and is used for the distribution of Google Android applications. They’re saved in a . ZIP file format and are usually downloadable directly into the Android device. APKMirror APKMirror is not only a safe APK site but is also one of the most popular. This site has practically every app’s APK you’d look for and is constantly adding new releases. Every APK on the site is completely free and safe for download. The selection is rather large on APKMirror and as a consequence, the categorization is kind of a mess. We’d suggest you use the search function to find a specific app instead of sifting through the endless categories to find what you’re looking for. APK4Fun APK4Fun is just as robust and easy to use as APKMirror but happens to be much more organized. This makes it easier to find your choice of APK in a faster, hassle-free way. The categories are labeled in a simpler manner s...

How To Set Up & Use Find My Device On Android ?

You never know when you may need it                                                            A decade or so ago, losing a phone wasn’t a big deal. If you lost your phone, you lost a few files and a handful of contacts saved on it. You could then easily get this data from various other sources. However, it’s now 2019 where losing a phone has become a really big deal. Losing your phone means you lose everything. It’s simply because we rely on our phones for almost everything we do in our life. From our personal messages to our professional documents, all of the precious items in our life are stored on our phones. So we simply can’t afford to lose this smart gadget that we have been so reliant upon. Find My Device Compatible Android Devices Before you continue, it’s important that you find out if your Android device...

How To Use Drop Down List in Google Sheets ?

                                                            When creating Google Sheets that other people need to fill out, a dropdown list can simplify the data-entry process. You can pull the items for your dropdown list from another range of cells, or you can enter them directly. Learn how to do both, as well as how to modify an existing dropdown list. Create Manual Dropdown Lists in Google Sheets                                              The fastest way to create a Google Sheets dropdown list is by listing the items inside the data validation settings. To do this: 1. Select the cell where you want to create a dropdown list. Select Date from the menu, and then select Data...

Fix Not Downloading or Updating Android Play Store

                                                                      Google Play Store is the safest and fastest medium to install applications on Android devices. Every Android user knows how to use the Play Store, but not everyone knows what to do when things go sideways with the store.  I f the Play Store is not downloading or uploading apps on your device, refer to the solutions below to fix the problem. Before anything else, cancel the download(s) and try again. Closing and reopening the Play Store might also resolve the issue. 1. Check Your Internet Connection                                              You need a strong cellular data ...