I thought I had seen every which way of building a project but yesterday, I saw a first. While most people use Ant, or Make or a shell script or an IDE's built in suport, I had never seen anyone use the copy and paste technique. This person had a text file of all the commands needed to compile his application, one per class. For example:
javac com/foo/bar/One.javaYou get the picture. To compile a class here is the process:
javac com/foo/bar/Two.java
javac com/foo/bar/Three.java
And so on...
- Open a command prompt.
- Find the command in the text file that changes directories to the proper one and copy it.
- Paste said command into the command prompt and execute it.
- Next find the classpath statement in the text file and copy it.
- Paste that comamnd into the command prompt and execute it.
- Next find the javac command for the file that you are editing and copy it.
- Paste that in the command prompt and execute it.
Now imagine repeating those last few steps over several files and several mistakes of picking out the wrong commands out of that text file. I was shocked and amazed. Oh by the way, this wasn't the only way the developer was enamored with copy and paste. It didn't matter how short the string of text was, if it was in the source file somewhere else, he would copy and paste it instead of type it. Same goes with Javadoc. If he found a method in Javadoc, there would be lots of flipping back and forth to copy and paste the class and method names. Suffice it to say, it was a very illuminating afternoon.

Comments (2)
Would this be above or below creating a servlet that creates dynamic JSPs for each person who accesses the site?
# Posted by Josh Zelvy | July 24, 2004 2:34 PM
Good point Josh! The guy writing out a new JSP page to disk per customer as a novel data storage technique does take the cake in terms of sheer oddness.
# Posted by Mark Mascolino | July 24, 2004 2:34 PM