Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Must logging/tracing code be provided in uploaded assignments?

 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... or should it be removed?
[ April 10, 2003: Message edited by: Barry Gaunt ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just downloaded my SCJD mystery fun pack and now see that it's not required. That's good because I want to play with aspects while doing this thing.
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Barry, what do you mean "play with aspects"?
m
 
Claudio Luz
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my assignment on the client side all errors or warning messages i am using dialog box to prompt it to the user..
To the server side , the history is so different, because i am not implementing a gui i am using logging and trace of errors lot to redirect messages of activity of server side to a specified file, such as connections made by user or errors messages, therefore is not displaying dialog box to users.
Certainly, if i will have problem to write in files called "server.log".. also have problems to update the db.db file when i will be to do booking.
NOTE: i suppose that db.db and server.log, will be placed in same directory.
I hope this help.
Claudio Luz
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Max Habibi:
Sorry Barry, what do you mean "play with aspects"?
m

I had thought that would make some antennas quiver!
The examiner is going to want to see nice clean tidy code relating only to the task at hand.
Developer (me) is going to want to see lots of logging and tracing stuff.
Conditional compilation in Java is limited to if(true) and if(false) stuff which is very messy. Adding Java 1.4 logging is messy too.
The answer to all this is Aspectj!
Of course, I will submit only the unaspected Java 1.4 compiled code.
-Barry
 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AspectJ is pretty neat, from what I've heard about it - haven't had a chance to play with it myself.
However, my assignment says they want the source code too - not just the compiled verison - if your is the same, then you may have some issues.
Burk
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Burk Hufnagel:

However, my assignment says they want the source code too - not just the compiled verison - if your is the same, then you may have some issues.

Yes, the source code is untouched by Aspectj too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic