I work in a shop where the mentality/culture does not have any sense of the concept of "less being more" (i.e. the less code you have to maintain, the more flexible you can be, and the faster you can fulfill customer requests). There's also a strong copy-and-paste mentality around here.
The backend code base being used is written in rather verbose C++ (the code base is 1.5 GB), and I have inherited some Javascript/HTML/CSS code from one of these C++ programmers that I have been tasked with "cleaning it up". The code was written to quickly appease some customers and is therefore not production level code (dispite the fact that it is being used in production-level systems).
The code has alot of document.write statements contained in <script> tags scattered throughout the html documents. It is some very obtrusive Javascript.
It also contains many style attributes in the actual HTML code itself rather than in a logical place like a stylesheet.
Also nobody seems to know what the code actually does, it's not commented, and this is why I've been tasked with cleaning up the old code rather than just trying to re-write it into a smaller, faster, more maintainable code base.
May I please have some advice on how to drive home the concept that "your should code smarter and smaller, rather than code more"?
Update
I've just added another question related to this one and @Joel's Answer bellow.