It's a little disconcerting to see talk of a Union where it'd make more sense to have a Professional body.
I, for one, would prefer to have a model like Engineers, Doctors, Accountants, than a model that supports factory workers. Make it a whole lot harder for "just anyone" to call themselves "a programming rock star", and a level of respect for the profession will rise as the acknowledged skill set of the group is better (Even if some individuals are still just as bad).
Unfortunately this will only happen when developers and companies get sued for their truly abysmal software, and lawsuits become common. (After all, this is why doctors and engineers are controlled by their professional organizations).