This. I've gotten a new appreciation for Stackoverflow in the past year or so.
Half of the drafts I write do not end up as published questions, just because the writing process itself is often helpful in figuring out what ever problem I have with my code.