in reply to Re: Web application framework and Smartphone apps
in thread Web application framework and Smartphone apps

Thanks, Bliako.

I don't much care about what will be used for handling the RESTful communication on the client side.
I am primarily concerned with adding "base class" functionality to my systems' packages, that will help all relevant web objects to be used by smartphone apps as easily as they are by web browsers. Regarding JSON and Perl, I have already implemented base class functionality that gives objects the ability to JSON serialize themselves using the Mojolicious JSON functions.

  • Comment on Re^2: Web application framework and Smartphone apps

Replies are listed 'Best First'.
Re^3: Web application framework and Smartphone apps
by bliako (Abbot) on Apr 06, 2021 at 21:07 UTC

    Do you see this "base class" functionality as exclusively producing JSON which is then either 1) sent straight to REST clients or 2) passed into an HTML-producing layer like: Templates+JSON=HTML to be sent to html clients (browser)?

      Good question, Bliako.

      To be honest I am writing stuff even as we chat here. As I wrote earlier about this web app framework of ours, it is very well written and adheres to design principles (MVC) typically seen only in well structured languages such as C++ and Java. It's not a bunch of scripts patched together with sticky tape! lol

      There's 63 "browser enabled" packages or web objects, yet there's only one "script" (controller) that pulls the relevant ones and delegates work to them.
      Additionally, it's mod_perl compatible, so responses can be instant as if things were running in an application server. :p
      Certain virtual class implementation code is pulled out of the database and ran on the fly. As a result, the JSON import/export code will probably be implemented in some sort of a class attribute serialization package, which most web objects can invoke through whatever method. This actually already happens with two base packages/classes which are responsible for "drawing" web objects to browsers and serializing them in and out of the database.

      The biggest problem is that I no longer love to code as much as I used to! :(