I agree with the comments Tom and Nick made
as well, but I also think you have to be
aware that sometimes people just aren't
given the chance to produce the most
efficient code the first time around. Pro-
ducing efficient code takes planning, and as
more and more pressure is created to get
things done fast so as not to be scooped
by the "competition," sometimes the
pre-project planning suffers.
I'm not trying to be an apologist for the
other coders in your organization, but it
may be that when this project first started,
there was a rush to get things done quickly,
and not necessarily smartly. On the project
that I am currently working on, there was a
big push to get something working as soon as
possible, even though I had never done any
web-publishing or PHP coding in my life,
the project was ill-defined, and I was (and
still am) the only person doing the coding.
I was able to provide something that has been
regarded very favorably by a couple levels of
management, but I know that the code is
not optimized and needs to be cleaned up.
And I try to do that whenever I get a moment
of breathing time (I'm the only person
working on this project). The originators of
the code you are working on may have had a
similar situation to deal with, may have
always intended to go back and clean things
up, and may have been sidetracked onto other
things.
I guess what I'm saying is don't use the
glass house approach unless you know for
sure that these are just sloppy people who
don't know what their doing, rather than
good coders who may have had to deal with a
less-than-perfect coding environment.
Michael