I disagree with programming for the good of the company. I would say you should program to further your own knowledge of programming. Once you become knowledgeable enough you will get promoted and receive credit for your code. I agree. You can expect to work for several companies over the course of your career, and you only take your experience with you.
So, do you think it would be out of line to ask for recognition in the press release? ;)