I guess my country regulates this pretty well - employer is forced to pay at least half of the salary for the duration of non-compete and on top of that the onus is on the employer to prove that an ex-employee is engaging in "direct competition" if they are going to sue for damages. Which, I tend to believe, captures the purpose of non-compete agreements quite well.