Finding issues by accident

With Hacktoberfest almost over, it's time to submit the last pull request to qualify for the prize. Thats easier said than done because as the final submission day gets closer, the harder it is to make a meaningful pull request with such short time constraints. After searching for about 3 hours trying to find an open issue that i could handle within the given time, i realized that i might have been better off just choosing one of the simpler ones and actually finishing it. 

In search for the "perfect" issue, i had cloned multiple repos in hopes that i could get one of them working so i could start trying to replicate the issue and fixing it. One of the repos that i cloned was for an iPhones application, for the popular card game, "Cards Against Humanity". As i was fiddling around with the app, i noticed that some of the text would not show up on my phone but worked fine when the app was running on a simulator on my computer. As much as i hate to admit this, i spent way too long trying to figure out what was happening. Then it finally hit me, on my phone i had turned on dark mode permanently, which is a new feature of iOS 13 that came out not too long ago. Because dark more is a relatively new feature, the developers hadn't updated the app to take advantage of this feature. By default black text turns white when dark mode is enabled, and so the text would just blend in with the background and look like no text was displayed.

This was a relatively easy fix, just one line of code to set the text color. I was a bit disappointed to find out that it was such an easy fix and i had spent hours on it, but i think this is one of the most important parts of being a developer and contributing to the open source community. You have to put in the time and effort, try the application in multiple different ways and environments. If i never installed the app on my phone and just used the simulator on my computer, i would have never found this bug. Some times its the very simple things that can slip peoples mind, and no one would notice it for years, in my case it was just a matter of the application no being updated but it could still happen to anyone. The point i'm trying to make is, bugs aren't always something very noticeable or huge, it could be something very small that everyone else overlooked, and all it takes is for one person to try something new or different and find the problem. But i found my bug by complete accident, so theres always that too.

Comments

Popular posts from this blog

Hacktoberfest is just around the corner

One last pull request

Filing issues and pull requests using git hub