It's not that all good developers code as a hobby. A lot of them do, but most importantly almost no terrible developers code as a hobby.
Recruiting developers isn't about finding ninjas so much as it is about avoiding the terrible developers. A nice github stat doesn't guarantee you are a good developer but it (almost) guarantees you don't suck.
I completely understand asking potential hires for something they did out of pure curiosity. For me personally I'd likely have to point at something I made long ago before the kids ate my spare time but I can talk passionately about a hobby project, and I use that as an indicator when recruiting.
This does not match my experience. I've interview many candidates with github profiles that looked active who couldn't code their way out of a wet paper bag.
What's worse is by reading their code on github, I will already form an opinion (sometimes very negative) before I even meet the person!
I've especially noticed that these developer bootcamps that are rising in popularity produce a lot of github cruft.
You mean they have a "fake" history of github activity? Or just a lot of "activity" but nothing really substantial?
Just having an "active" profile can be achieved by cloning a few repos and writing a few feature requests.
You'd have to read the contents of their history of course, code and communication.
Seeing how they reason about code in issue discussions or pull requests is valuable, even more so than reading the actual code.
You make a good point about negative preconceptions from seeing someone's code. I suppose it's better (or at least no worse) than the negative opinion we may form from seeing someone's grades or previous employer.
Recruiting developers isn't about finding ninjas so much as it is about avoiding the terrible developers. A nice github stat doesn't guarantee you are a good developer but it (almost) guarantees you don't suck.
I completely understand asking potential hires for something they did out of pure curiosity. For me personally I'd likely have to point at something I made long ago before the kids ate my spare time but I can talk passionately about a hobby project, and I use that as an indicator when recruiting.