Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Little tool to check your assignement structure (folder+file)

 
Jean Vilart
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

To make sure I will avoid spelling errors when I will submit my assignment, I wrote a little class to test some of the "must" I had in my assignment.

This small Java class only checks the filenames and the names of the folder for spelling mistakes.

There is much room available for improvement. But that is one of the reason, I send it here. If every javarancher can make one little improvement, we could have a fantastic tool to avoid stupid mistakes that cause automatic failure.

Anyway, here is the code, please make any improvement that you may find suitable.

I think the next step will be to check for a jar file in addition to a folder.



[ September 06, 2007: Message edited by: Jean Vilart ]
[ September 07, 2007: Message edited by: Jean Vilart ]
 
Andre Winkler
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some corrections:

private static final String DB = "suncertify/db/DB.java";
private static final String DATA = "suncertify/db/Data.java";

My assignment expects a seperate code directory:

private static final String DB = "code/suncertify/db/DB.java";
private static final String DATA = "code/suncertify/db/Data.java";
 
Jean Vilart
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hum...

even in a little piece of code like this I manage to introduce bugs

You're right, I'll correct this right away!
 
David A. Scott
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jean, very useful...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic