The key difference between our professional experiences is that the legal profession is self-regulating, whereas software devs/qa/pms are totally socially atomized.
Lawyers have their own organizations, which give them some independence from their clients. Society accepts that this is desirable for the maintenance of the legal order.
Software occupations should move in this direction, for the good of practitioners (wages, working conditions, fairness in promotions and hiring) and the wider society (complement to government regulation around security, privacy, fairness in hiring and promotion).
The bar association defines the examination that lawyers must pass to practice. Employer/client interviews focus more on "culture fit" and familiarity with specific practice areas than on certifying basic competence. The bar also administers "continuing education" to ensure that a lawyer who passed the bar decades ago isn't totally out of the loop on recent developments.
I would love to see the software sector move toward this kind of self-regulation through unionization. We have the power, we just need to coordinate.
Instead of a high-stakes and all-too-often arbitrary interview every single time you want to change jobs, you could prove your basic competence to practice through an exam, and elect to fulfill your continuing education requirements however makes sense for you, within a framework decided upon by workers themselves.
Such a system would not be perfect. No set of examinations is ever going to perfectly capture ever-shifting real world requirements, for example. But we can hardly do worse that the sector is doing now.
We have to stop letting recruiters (i.e. middlemen) and employers (i.e. counter-parties in the employment relation) dictate terms to software workers arbitrarily. The wider society should support tech worker organization in unions because these organizations would provide a check on executive and investor power. Without such checks and balances, we can only expect more of the same short-term thinking and ethical corner cutting.