Code ‘samples’ will misrepresent you
medium.com
medium.com
Great if you work mostly on open source projects. My clients would not be happy with me publishing their code on GitHub or sending it out in its entirety. I can usually get permission to show snippets or maybe one source file, but most companies view their source code as valuable intellectual property. That's why they ask you to sign an NDA to see it.
To expand on the journalist angle, eliminating candidates who don't have a "well populated GitHub profile" is like eliminating writers who don't have a body of work published in The New Yorker.