Here is my problem. I have recently shifted job and I am mainly into computer programming. We work in a framework which is almost 75-80% complete. And I have been given a task to add something more to the the framework. Now I am already seeing a lot of code smells in the existing framework code. I can easily put something quick and dirty and complete my assignment and impress my boss's boss who has scheduled an one on one with me. The problem is that the existing code/framework was mainly written by the person who is now my direct boss. So what should I do? Should I talk about my concerns regarding the existing codebase to my super senior or should I just keep quiet? I am thinking about the implications because if I convey my concerns definitely my super boss will have a word about it with my boss who in turn may take it personally. What should be the right strategy for me in this dubious situation?
P.S: This will be my first introduction with my super boss and I do not want to come across as a cry baby. But at the same time I understand that these points are important and should be raised before it is too late.