I've started as a developer a few months ago (c#/vb.net) and I am keeping a folder in my "pendrive" (not really a pendrive) of all the sourcecodes that i modify, with all problems i solve, and solutions i create (profissionally). That may somehow violate the policy of where i work, because everything i do is their legal and intellectual property. I save it because i may use it while still in this company (or not), and so i can consult it to reuse it or just to read it and remember in case you have a similar issue to solve.
Is that common ? is it wrong (confirming) ? do you do something similar ?
----[UPDATE]---------
I gave up keeping codes I write. Thanks for the answers!