> a corporate lawyer purely based on their pro-bono work?
You hire a corporate lawyer based on their public reputation. For a programmer, that's their github portfolio.
Business are in a unique position to actually judge programmers by their merit, not just hearsay or bullshit references or lies on a resume. Of course companies are going to factor that into their decision!