A
Alexey
So I've been working at a company that shall remain unnamed for the
time being for almost 3 months now. In that time, I've taken over for
a developer that was leaving, as well as started some brand new
projects from scratch. The brand new stuff has been fairly uneventful
and successful. I'm not trying to toot my own horn, I admit that the
new projects have been quite limited in scope and requirements.
I was warned that the legacy stuff can be rather tough to get a handle
on right away. Boy, was that an understatement. I can understand
when something is written with sparse documentation or somewhat
inconsistent API or patterns due to lack of time, changing
requirements, or who knows what else. When I got here, there was no
version control in use whatsoever. Deployments were made by carefully
moving specific binaries (class files) from environment to another
because, as it turned out later, certain class files contained
hardcoded environment-specific configuration (can they even be called
that?) parameters. I was willing to go along with just about anything
and quietly implement all the necessary clean-ups. But every now and
then I find something that just stops me in my tracks and I can't help
but wonder what sort of hard drugs the person had to be on in order to
write something like this. Here's today's sample:
boolean debug = Boolean.valueOf("true").booleanValue();
WTF WTF WTF WTF WTF!!!!!!!
time being for almost 3 months now. In that time, I've taken over for
a developer that was leaving, as well as started some brand new
projects from scratch. The brand new stuff has been fairly uneventful
and successful. I'm not trying to toot my own horn, I admit that the
new projects have been quite limited in scope and requirements.
I was warned that the legacy stuff can be rather tough to get a handle
on right away. Boy, was that an understatement. I can understand
when something is written with sparse documentation or somewhat
inconsistent API or patterns due to lack of time, changing
requirements, or who knows what else. When I got here, there was no
version control in use whatsoever. Deployments were made by carefully
moving specific binaries (class files) from environment to another
because, as it turned out later, certain class files contained
hardcoded environment-specific configuration (can they even be called
that?) parameters. I was willing to go along with just about anything
and quietly implement all the necessary clean-ups. But every now and
then I find something that just stops me in my tracks and I can't help
but wonder what sort of hard drugs the person had to be on in order to
write something like this. Here's today's sample:
boolean debug = Boolean.valueOf("true").booleanValue();
WTF WTF WTF WTF WTF!!!!!!!