|
2010-05-17
, 08:52
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#2
|
Assuming each layer can be an independant library, would this be a "good" design for a mobile app or will the overhead of "shuttling" data between each layer be too cpu/memory consuming.
The main reason I am asking this question is that I am writing some software on the n900 but also want it available on my Linux desktop. At some point I will be uploading the data to a website.
The Following User Says Thank You to krk969 For This Useful Post: | ||
|
2010-05-17
, 08:57
|
Posts: 146 |
Thanked: 76 times |
Joined on Feb 2010
@ Poland
|
#3
|
The Following User Says Thank You to Robb For This Useful Post: | ||
|
2010-05-17
, 09:02
|
|
Posts: 1,716 |
Thanked: 3,007 times |
Joined on Dec 2009
@ Warsaw, Poland
|
#4
|
Assuming each layer can be an independant library, would this be a "good" design for a mobile app or will the overhead of "shuttling" data between each layer be too cpu/memory consuming.
The Following User Says Thank You to smoku For This Useful Post: | ||
|
2010-05-17
, 09:08
|
Posts: 999 |
Thanked: 1,117 times |
Joined on Dec 2009
@ earth?
|
#5
|
|
2010-05-17
, 09:57
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#6
|
The Following User Says Thank You to Joorin For This Useful Post: | ||
|
2010-05-17
, 10:21
|
Posts: 999 |
Thanked: 1,117 times |
Joined on Dec 2009
@ earth?
|
#7
|
|
2010-05-17
, 10:39
|
|
Posts: 186 |
Thanked: 192 times |
Joined on Jan 2010
@ Finland
|
#8
|
Something along the lines of:
dbobject = directly interacts with database, performs reads/writes.
the middle-tier is responsible for creating objects
(E.g. a 'fitnessUser' object - properties filled from database).
The objects do not access the database directly (e.g. do not execute sql statements) but inherit behaviour from dbobject instead.
the presentation layer will create middle-tier objects and then populate the GUI with object properties.
The database layer can be a sqlite database on the device or a 'web-service'. Ideally the middle-tier objects should not know the difference.
The Following User Says Thank You to juise- For This Useful Post: | ||
E.g. Database layer, Business Logic layer and Presentation layer.
Assuming each layer can be an independant library, would this be a "good" design for a mobile app or will the overhead of "shuttling" data between each layer be too cpu/memory consuming.
The main reason I am asking this question is that I am writing some software on the n900 but also want it available on my Linux desktop. At some point I will be uploading the data to a website.
I like cake.