tl;dr type out your SO question even if you wonât post it. You may notice something you had overlooked that solves your issue.
There are generally two types of questions on SO (and other Q&A sites): how to ___
and ___ is not working, help
. This article is about the latter.
You know how to do something, itâs just not working as it should. If all the StackOverflow answers arenât helping, donât hesitate to write your own question. âBut itâs already been asked!â No problem. Just start writing - chances are youâll close the tab before you post it.
I used to avoid making my own questions for a variety of reasons. I didnât want to get downvoted as a duplicate, or the process was too lengthy - copying in the relevant code, explaining everything, etc. In the end though, itâs faster than debugging and scouring the net for hours.
Asking a question or opening an issue for others to read requires you to think about and articulate what youâre trying to do, and youâll notice things you may have overlooked. Possibly the problematic part of your code is something else entirely than what you thought.
One time I thought there was a bug in SwiftUI because a state update wasnât doing anything, but after putting everything in writing, reproducible example and all, I realized I had forgotten to call a function đ¤Śâď¸
More often than not, I end up fixing the issue myself and the question never gets posted.
But what if this doesnât fix it? At least you have a ready-made question to post. Or you may have discovered a bug, so you can use what you wrote in a GitHub issue.
Iâve noticed a similar effect when proposing features on OSS projects. Sometimes I throw out my idea before it gets posted. While writing how it could be implemented or considering the side effects I notice itâs not feasible. All things you donât realize before you start typing it out!
Hope this saves someone a few hours of googling and debugging!