Right, but that's just a quantity thing. The quality, from my experience, is horrible. Once I know which repository I'm interested in, I have much better results cloning the code and grepping for things locally.
0 examples of excellent quality are not better than 523 examples of bad quality.
Often I don't know what particular repo I'm interested in as a model of good quality overall, I just want to see "where has anyone used function X?". If examples aren't in the library itself, then you have to look for projects that use it, github is the best player in town.
It's funny that we have different experiences - I guess I use more niche libraries than you (or am worse at understanding other people's code)? For more mainstream stuff (javascript questions) I can e.g. go straight to MDN. For questions about the Unity game engine I'll often find good examples in their documentation, but for weirdo game engines random projects on github can be a lifesaver.
It's funny that we have different experiences [...] I guess I use more niche libraries than you
I do use quite a few of these, but I tend to just read their source than to use other users as example-driven documentation. If I'm dealing with an niche library I read its source code anyway, just to gauge its quality and anticipate any future issues.
Comments
Right, but that's just a quantity thing. The quality, from my experience, is horrible. Once I know which repository I'm interested in, I have much better results cloning the code and grepping for things locally.
0 examples of excellent quality are not better than 523 examples of bad quality.
Often I don't know what particular repo I'm interested in as a model of good quality overall, I just want to see "where has anyone used function X?". If examples aren't in the library itself, then you have to look for projects that use it, github is the best player in town.
It's funny that we have different experiences - I guess I use more niche libraries than you (or am worse at understanding other people's code)? For more mainstream stuff (javascript questions) I can e.g. go straight to MDN. For questions about the Unity game engine I'll often find good examples in their documentation, but for weirdo game engines random projects on github can be a lifesaver.
I do use quite a few of these, but I tend to just read their source than to use other users as example-driven documentation. If I'm dealing with an niche library I read its source code anyway, just to gauge its quality and anticipate any future issues.