Holiday homework

by Andrea Maioli on 07/27/2017

We’re into the hottest part of the summer and vacation is fast approaching. For many, vacation is a time for some well-earned rest and relaxation, but programming buffs often seize the chance to look into something new at their leisure.

To make things easier, we’ve put together a series of design patterns for Instant Developer Cloud. In addition to the mobile-design-patterns we presented two weeks ago, today we also have:

  • db-design-patterns: a series of examples for using a relational database in the cloud. It includes the design of a relational schema, the various ways to write queries, and retrieving results from JavaScript. Transaction management and modification of data in tables is also provided.
  • doc-design-patterns: shows how to manage the application using an ORM (Object Relational Mapping) approach. Using documents and collections, there is a strict structure for accessing and modifying data, and it’s much simpler to manage complex operations on the back end and on the device. Also, we didn’t overlook the interaction between documents and Web APIs that is so popular today.
  • datamap-design-patterns: this is one of the most interesting examples because it deals with displaying the application data. Between the infinite, virtual, nested, and recursive lists there was also time to make a digital wheel of fortune. You can click here to see a preview of the application.
  • sync-design-patterns: an actual work bench for testing the synchronization system between a local app and the cloud. You can explore the secrets behind exchanging messages, document synchronization, and remote calls.

I don’t know if you noticed, but the five design patterns we’ve provided cover the full development cycle for an application:

  1. Database design and access to data.
  2. Back end development with an ORM approach.
  3. Front end development using visual element libraries.
  4. Pairing front and back ends using datamaps.
  5. Syncing the local app and the cloud.

To get the most from the examples, we recommend opening them in the IDE, launching the application preview, and testing the various functionalities. Then return to the IDE and in the various views that interest you, have a look at the code that implements them.

As always, I look forward to your feedback, and if any interesting examples come to mind, send me an email and we will happily add it.

Enjoy your vacation!

Leave a Comment

Previous post:

Next post: