I am a developer working directly under Boss (hereafter B) but so communicate fairly frequently with Boss's Boss (hereafter BB). B and BB have differing philosophies when it comes to code, to the point where it is very difficult to write code that pleases both of them.
BB is ultimately the one to sign off on code, but it must also get the go-ahead from B. However, if I write code that B likes, BB typically hates it, and vice versa. How shouldWhat can I approach this situationdo to facilitate a common understanding between my bosses?