this is right way
Documentation is more often than not quite bad. Very abstract, hard to understand, few examples if any. Good writing is a skill.
Sometimes you need a quick/clear fix and the documentation doesn't help with that. SO, though, is.