• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

compressed jar files?

 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
town drunk
( and author)
Posts: 4118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NO!
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
Posts: 4118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
Posts: 4118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic