Companies don’t really need non-competes anymore. Some companies take an extremely broad interpretation of IP confidentiality, where they consider doing any work in the industry during your lifetime an inevitable confidentiality violation. They argue it would be impossible for you to work elsewhere in this industry during your entire career without violating confidentiality with the technical and business instincts you bring to that domain. It doesn’t require conscious violation on your part (they argue).
So beware and read your employment agreement carefully.
More here https://www.promarket.org/2024/02/08/confidentiality-agreeme...
And this is the insane legal doctrine behind this
Net present value of 50% of salary for the next 30 years is something like a million dollars for most HN commenters, I'd guess.
Plus it'd almost certainly end with zero notice. You'd get a email saying "you're free to go". Suddenly. After say 26 months.
So it's not like a "pension for life" - just a gap in your employment history.
Any employment gap can be easily explained by saying "I was under a non-compete and being paid garden leave while working on personal projects to keep my skills fresh". It's very common in e.g. the finance world, I believe.