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

compressed jar files?

 
Aruna Raghavan
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
My ide offers an option to compress the jar files to make them smaller. Should I use it for the final submission?
Thanks,
Aruna.
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NO!
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
Bernhard Woditschka
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not? it comes for free with jar, won't hurt the tester and reduces the size of the deliverable, which is good for the upload.
I don't see any argument against using the compression option.
Bern
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was joking in my tone, but serious in the content of my advice. It increases the complexity of your code, introduces another variable that could go wrong, and worst of all, deviates from the mandate that complexity should be sacrificed in favor of clarity. You are, of course, free to do as you please.
All best,
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Max Habibi:
[Jar compression] increases the complexity of your code
How?
introduces another variable that could go wrong, and worst of all, deviates from the mandate that complexity should be sacrificed in favor of clarity.
Which variable? What becomes less clear? Is everyone talking about the same thing here? I got the impression that all we were discussing boiled down to typing "jar c0f" versus typing "jar cf" (or executing the same behind the scenes of an IDE).
- Peter
[ January 15, 2003: Message edited by: Peter den Haan ]
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No Pete,
the original poster said compressing Jar files, which I assume means compressing existing jar files.
The typical usage of the jar command 'jar -cf', already compresses the files. I'm reading the reader's query as a further compression.
There are ways to do this, but they are, IMO, out of scope here.
HTH,
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
[ January 15, 2003: Message edited by: Max Habibi ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic