Here's a question that has been bugging me. I'd like to think that I prefer writing elegant C++ code. — You know, well designed, clean, documented code. But, what do you do if you are under pressure to deliver and maintain large legacy code which is supposed to meet functional and, especially, performance requirements?
After a while, my code just looks like everyone else's who were in charge of the processes before me. While I curse the people who used hundreds of global variables, eventually I end up adding to it. Does this sound familiar, or should I just forget about it?
Edit
It's also about improving myself because I don't want to keep on writing code the way I do, I want to learn and put those ideas into practice. But, maintenance, deadlines and existing library implementations in use at work mean that I have to keep on doing the same sort of thing.
Edit
Actually, these days I am developing a plugin system which is not that heavily constrained. So I can ask around and get ideas and design and develop. Which is how it should be I think. And so I joined SO. :D
Edit
I think, the real question is, assuming that the layers above you are frozen (deadlines, project decisions, etc.), what can you do not to drown assuming that you are an average programmer who wants to get better?