Throwaway account, for obvious reasons.
We've been told in our project that we should "take ownership" of some extremely bad code that I have been hacking away at for several months, fixing and finding bugs in the spaghetti. Any attempts to refactor the code gets rejected by management (unless we do it secretly; they have damanded "no secret development") and any new implementation ideas appear to require full working prototypes, a cost analysis and a proposal document before being considered. Of course, we are never budgeted the time to do this. The result is that we are now getting blamed for the results of bad design decisions made many years ago before we even started on this project.
I'm a developer in my 20s (but with several successful projects behind me) so I'm hoping some old HN hands have managed to deal with this problem before and can offer some advice to me and other people stuck in this situation.
In short, how can you accept ownership or responsibility for code that you don't have control over the quality or design of?
That all being said, the concept of "taking ownership" without having any control of how you do your job is bullshit. The only way to solve that problem is to tell management that they are solely to blame, but the solution you get may be to no longer work for them; you have to decide for yourself if it's worth the risk.