one of the interesting things about google's suggest service is that the javascript is obfuscated to reduce it's size (see http://www.adamstiles.com/adam/2004/12/hacking_google_.html) and save bandwidth.
this is also a great trick in general for J2ME development, also for reducing code size as well as covering your assets. for those of you that don't know, obfuscators take source code that is readable like public pleaseDoSomething{ doThisFirst(); doThisSecond()}; and turns it into public a{b() c()}; This makes things smaller, but also makes your code difficult to read by decompilers.
we've been using obfuscators forever to scramble our code, but not all obfuscators are created equal. recently we switched from using Retroguard to Proguard and saw an application that was originally 80K and was shrunk using Retroguard to 62K shrink down to 40K with Proguard. That's pretty dramatic.
Proguard is impressive in what it can do, such as removing all code that is not used, overloading as many methods with the same name and different return types as it can, and removing all the package declarations in your runtime code where possible.
Highly recommended so far, and it's free!
Posted by Steve at December 13, 2004 11:39 PM | TrackBack