It's really not that difficult to comprehend. And it's really not as bad as it sounds, if you want to work in your projects for fun, you do it in your own time. And you can still leave, it's just that if they catch you doing shit like this, it's not going to go down well.
What we are isn't limited to what's inside our body and brain. The objects we interact with also count to an extent. (Being a cellist, makes me acutely aware of that.) What counts the most is any information stored in those objects, especially information you can't retrieve elsewhere —notes, journal, and other such personal data. Losing that information is like losing a memory. Being stored in a hard drive, a paper book, or a human brain doesn't make much of a difference.[1]
So, when I write some code for a company, I have the right to remember it, and I will exercise that right. That's basic human dignity. If our current power structure (err, "legal system") says otherwise, then it should be reformed.
On the other hand, I can restrain myself, and avoid to disclose all those memories, say, in a public SVN repository. I don't like to keep secrets, but let's face it, I already do, and it doesn't bother me too much. So, I treat corporate copyright as a form of non-disclosure agreement: I won't tell anyone.
But I will remember.
---
[1] looong footnote:
Really it doesn't. One day, it may even make no difference at all. We don't have the technology yet, but imagine having a computer wired to our nervous system. It could act as a pair of Google glasses 5.0, or augment our intellect more directly: more working memory, more and more accurate term memories on silicon, even perfect recall.
Now you can't even make the difference between neuron memories and silicon memories. They're both equally a part of you. Heck, your whole brain could be turned into silicon, it probably wouldn't make any difference. (I happen to believe in "mind uploading". I won't justify why here.)
Now let an employer ask you to delete whatever copy of the code you may still hold. Now it is quite literally asking you to erase part of your memories. What exactly should you erase, anyway? Just enough to disable perfect recall? Keep whatever happens to be stored in neurons, and erase whatever is in the silicon part? What if you have stored everything about that company in silicon? (You may well have, if perfect recall makes you more productive, and requires silicon memory.)
If we had the technical means right now, I believe Goldman Sachs would have us forget everything we learned while working within their walls, if not more —like in the Paycheck movie (2003). I think we can all agree it wouldn't be acceptable.
Within that framework, plenty of things are clearly out of bounds, like copied source code. I would argue that re-implementing chunks of code that you know to be economically valuable and unique to your former employer from memory is just as problematic.
Now, by out of bounds, I mean breach of a civil contract. I don't see the criminal aspect.
Basically, there's no need to erase your memory, you just need to distinguish exchanging your time for money from exchanging your former employer's IP for money.
If I switched companies to make a new system from scratch, it would take me a non-trivial amount of time to replicate a full system, and I probably wouldn't do it the same way. Even if I did it the same way, it would be hard work. During years of work one encounters many little problems, glitches, and even random ideas that don't come to mind so easily.
Obviously the previous experience helps a lot but having your old code basically bootstraps you. And the reason that coders in this sector are paid well, is that obviously the expertise is worth more than the code itself looking into the future. But still, if you do something really stupid like giving them an excuse to lock you up when you're going to a competitor, then you're screwed. I'm pretty sure Aleynikov would agree with me that he fucked up massively by taking his code home. If not, then he'd be out of touch with reality. The very thought of trying to do what he did makes me anxious. Big corporations are powerful and can fuck your life up.
Otherwise, if they catch you violating trade secrets you'll get your arse in jail just like Aleynikov.
I doubt there will be a day when there are no secrets and no trade secrets. But in any case, that isn't the case right now. There's a part of the industry that can afford to work fully within Free Open Source, but it doesn't pay anywhere near as well as financial & banking (generally speaking). You can choose to make less money and not surrender completely your work done during office time to your company. Life is full of choices.
Indeed, this article convinced me not to work for Goldman Sachs. Really, the way the story was depicted, it looked like they had the freaking Feds in their pocket. Less powerful firms however wouldn't be nearly as dangerous.
Also, don't confuse keeping a secret vs forgetting the secret altogether. When I take some source code home, I don't spill the secret, I merely remember it. The trade secret has not been violated yet. Though I reckon that putting it in a public svn repository would. So, when G.S. is asking me to not copy anything I have written at work home, it is asking me to forget.
I'll need a whole heap of money before I accept such scandalous terms.
> Life is full of choices.
For now. Depends what becomes the norm later. And I must say, I am genuinely afraid of the sci-fi scenario I have depicted above. One day, we will have these direct brain-computer interfaces, and corporations, if they still exist, will try and have you genuinely forget about the work you have done for them upon departure. It will be like working for 5 years at a firm, going out, and not being more experienced than you were before. This cyberpunk outcome is a very real possibility, and in some ways, it has already began.
But let's speak about right now. We're supposed to have rights we can't waive. Like many forms of freedom: you can't enslave yourself, no matter how much they pay you or your family. 'Cause you know, if it were possible, people would enslave themselves. You'd have to be a die-hard right-wing libertarian to believe it's an acceptable downside for the additional freedom to enslave oneself.
Likewise, I believe the right to remember should not be revocable. Our memories are part of our identity. When we lose them, we lose ourselves. To the extent we can lose them, we must do so freely. Doing it for money is not doing it freely (there are similar arguments against prostitution).