I regularly do both when trying to use library, especially unfamiliar to me.
But even in that case, you're reading the documentation. Just through a nondeterministic, hallucinating search engine.