markdown guide
 

2 1/2 to 3 months. I started developing an Android app which used Facebook API back in December 2016 (before all that Data Leak, etc so the API was much different). As it was my first time with FB API, I started testing different endpoints to get used to the API.
One of the first things I tested was the uploading endpoint to upload a post with a photo. I tried adding an upload progress bar in the notifications and was faced with the worst bug of my life. The progress used to hang at a particular value for large files and then skip directly to 100%.
I asked for a solution on many sites including SO, but didn't find any answer.
I finished the first version of the app and released it for testing at the end of February 2017 but the bug was still there. I spent the next month fixing it and finally asking the question on Facebook Developer Support helped me.

Apparently, the official docs at that time had the code sample on sending the photo as a byte array, and the fix was to send it as a bitmap.

 

Four days, I remember it well.

I discovered a bug in Apple's Cocoa Framework where a variable height table header with its content controlled via constraints would not render correctly after the table header had been scrolled out of and then back into view.

In the beginning, I assumed it was my fault and was reading API docs and trying different techniques to try to figure out what I was doing wrong. Once I realized it was a bug in their system, I went looking for someone who had worked around the bug. Stack Overflow had a few different workarounds, but none of them worked. It ended up being an unaccepted answer on StackOverflow written by someone who didn't speak English very well that solved the problem.

 

Days. Just needed to put it away for a while to get a clear head about the goal then think about possible solutions. I found that if I tried to long to fix something I tend to focus only on one possible solution, giving myself that extra time opened my mind to other possible solutions.

 

4hours and I solved by spending half hour at toilet.

Classic DEV Post from Mar 6

7 Tips for Breaking Into DevRel

How to get into developer advocacy & relations.

Oyetoke Toby profile image
Just a software engineer trying to make ends meet. My passion for Python and JavaScript is nothing to compare.