I'm not sure how effective the law will be though. As others mentioned, those agreements are hard/impossible to enforce in court, part of the reason of which is that they are completely one-sided, vague and almost enslaving (we own whatever you create also in your own time, can't compete directly/indirectly for 10 years after leaving, can't use anything your learned while working for us...). But what stops the ex-employer accusing the ex-employee of stealing trade secrets and keep them in courts for ~3 years (and forcing to spend hundreds of thousands)? Cause, you know, it's hard to litigate with someone who has a few orders of magnitude more resources than you do.
As for non-solicit - I have a different opinion. Have seen companies breaking apart because some of the middle-managers/team leads decided to leave the company and take their team and the clients (with whom they had direct contact) with them. E.g. that's how Lycos Armenia's history ended.