"Most jurisdictions in which such contracts have been examined by the courts have deemed CNCs to be legally binding so long as the clause contains reasonable limitations as to the geographical area and time period in which an employee of a company may not compete. "
California tends to be the most employee-friendly wrt non-competes, but even here you can construct one that is valid, for certain classes of employees and with many restrictions.