Being a software developer it is very important to contribute to public projects and participate in public professional activities. This includes open source projects (which may belong to other companies or a developer himself), Stack Overflow answers, hackathons and other meetings, professional blog publishing, TopCoder contests participations, etc.
Moreover, links to GitHub and StackOverflow accounts have become a common item in IT resumes.
I'm going to work in Germany in a position of Software Developer. My employer tells me that EVERY professional activity belongs to the company and for EVERY activity I mentioned before I need to get written permission, which could be withdrawn at any moment. And it doesn't matter if I do it on my free time on my computer at home or not.
Citation from my contract:
(1) Der Mitarbeiter darf ohne Zustimmung von COMPANY_NAME keine gewerbsmäßigen ader nicht gewerbsmäßigen fort dauernden oder gelegentlichen Konkurrenz Geschäfte für eigene oder fremde Rechnung unmittelbar oder mittel- bar betreiben oder sich daran beteiligen oder solche Dienste in irgendeiner Art oder Form leisten. Das gleiche gilt für jede Art der Beteiligung an einer anderen Firma sowie für die Mitwirkung in Organen einer anderen Gesellschaft, es sei denn, es handelt sich um die Beteiligung an einer börsennotierten Gesellschaft bis zu einem Umfang von 5 %, solange mit dieser kein Stimmrecht einhergeht.
(2) Gewerbsmäßige Nebentätigkeiten bedürfen der schriftlichen Genehmigung von COMPANY_NAME. COMPANY_NAME kann die Genehmigung jederzeit widerrufen, wenn seine Interessen durch diese berührt werden
(3) Zu Veröffentlichungen und Vortragen bedarf es der Einwilligung von COMPANY_NAME, wenn dadurch seine Interessen berührt werden können.
I find it a little bit weird to get written permission from employer to write an answer on Stack Overflow or to participate in development of open source game with friends in my spare time.
But my employers tells me this is OK. Moreover, they're trying to convince me that clauses above are pretty standard for Germany and exist in almost every contract with any company.
So the question: is it really so strict in Germany? What is the most legal way to participate in public activities in such situation?
PS I fully understand that answers are not official legal advice, so feel free to share opinion.