David Suzuki wrote a great piece about taking credit for work.
For years I securely kept all of my programs, research and training material in a closing guarded network.
Then my father died (young), and took with him 1000s of ideas that he had used to protect the environment and people for three decades.
I then decided: the only thing worse than having someone else steal or taking credit for my work, was not sharing it.