monx663 has asked for the wisdom of the Perl Monks concerning the following question:
Hello experienced developers,architects.
I am making mods/updates to an existing cms/web application framework and need some wisdom.
The framework in question is tried and tested but needs "modernization". For example, AJAX connectivity of its web UI elements.
The ability to serve as a mobile application hub is also very imminent.
And here comes the question. Is it better to expose the relevant methods of the various business objects via JSON? Is it better to create web objects that know how to render themselves based on the JSON data they are fed from the server?
I am guessing that an Android or iOS app would expect to only be sending and receiving data on RESTful URIs. And its application display objects would be "drawn", according to the data they receive from the server. The web framework in question, despite being quite old, utilises the MVC model and is quite good at managing web forms etc. However, since the framework will now be serving both web browsers as well as mobile apps, the "View" layers need major reworking.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl JSON mobile apps
by marto (Cardinal) on Feb 08, 2021 at 18:38 UTC | |
by monx663 (Sexton) on Feb 08, 2021 at 21:16 UTC | |
by marto (Cardinal) on Feb 08, 2021 at 21:41 UTC | |
|
Re: Perl JSON mobile apps
by alexander_lunev (Pilgrim) on Feb 09, 2021 at 05:26 UTC |