« The Microsoft Exchange Server computer is not available | Main | Amy's Bridal Shower and a trip home »

How not to build a project

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.java
javac com/foo/bar/Two.java
javac com/foo/bar/Three.java
And so on...
You get the picture. To compile a class here is the process:
  1. Open a command prompt.


  2. Find the command in the text file that changes directories to the proper one and copy it.


  3. Paste said command into the command prompt and execute it.


  4. Next find the classpath statement in the text file and copy it.


  5. Paste that comamnd into the command prompt and execute it.


  6. Next find the javac command for the file that you are editing and copy it.


  7. 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.

TrackBack

TrackBack URL for this entry:
http://people.etango.com/cgi-bin/mt-tb.cgi/232

Comments (2)


Would this be above or below creating a servlet that creates dynamic JSPs for each person who accesses the site?


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.




Remember Me?


(You may use HTML tags for style)

About

This page contains a single entry from the blog posted on May 21, 2004 2:30 PM.

The previous post in this blog was The Microsoft Exchange Server computer is not available.

The next post in this blog is Amy's Bridal Shower and a trip home.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.33