• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

OO and design in J2ME applications

 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am going to develop a mobile application involving a J2EE server + database and a MIDP client. I was wondering whether there exists "best practices" or generic application frameworks for designing MIDP applications?
The APIs seem to push towards a very screen-driven design and on the other hand every extra class can be considered a burden on the small-footprint device.
All advice appreciated.
 
Ranch Hand
Posts: 3404
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lasse,
Generic Connection Framework seems to come up a lot when searching on MIDP && J2ME.
Dunno if this link is of any use ? Article
The article is quite old - AUG 27, 2001

Not developing a Web-Service based desktop application by any chance ?

regards
[ May 27, 2003: Message edited by: HS Thomas ]
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by HS Thomas:
Generic Connection Framework seems to come up a lot when searching on MIDP && J2ME.
Dunno if this link is of any use? Article
The article is quite old - AUG 27, 2001


Thanks. The article seems worthwhile (printed it already). I was actually aware of the GCF -- I am more interested about the overall structure of a J2ME application. Stuff like "MVC for J2ME".

Not developing a Web-Service based desktop application by any chance?


Nope. Sorry
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Lasse Koskela:
every extra class can be considered a burden on the small-footprint device.


Is it really that way?
I don't know much about small-footprint devices, but my general experience is that extracting many small classes from a big one actually reduces code size (and therefore, I would suppose, also binary size). That's because big classes invariably contain more duplication and less opportunity for reuse than small classes.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ilja Preuss:
Is it really that way?


Well, maybe not quite. But considering options A and B where...
A = simple and ugly but it works
B = simple but has nice interfaces for future extensions and it still works
...I'd say A is definitely preferred.
Many mobiles have these ridiculous limits that they are only able to download a .jar file of under 30K or something like that and already the XML parser .jar consumes over 20K...
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Lasse Koskela:
Well, maybe not quite. But considering options A and B where...
A = simple and ugly but it works
B = simple but has nice interfaces for future extensions and it still works
...I'd say A is definitely preferred.


What about C = simple and nice, but without any hooks for future extensions? I am not yet convinced that C needs to be bigger in size than A.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ilja Preuss:
What about C = simple and nice, but without any hooks for future extensions?


True, and that's what I'm aiming for but somehow I doubt I'll manage to produce both a "simple" and "nice" output from my second J2ME app...
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic