Ionic Framework Upload Ionic App

Uploading Ionic Apps to use with Ionic View App

I’ve tried to build some test Android apps using the Ionic. And by enabling install from other sources than Play Store, virtually anybody could install and test my app provided one has an Android device. Sending Dropbox link to a friend with Android device is a hassle-free process.

But what about iOS friends?

Continue reading “Uploading Ionic Apps to use with Ionic View App”
Lightning Fast Websites

Blazing Fast Websites by Lazy Loading Content with AJAX

This is somewhat continuation of an Angular.JS templates related article.

I am not so keen of keeping two codebases for the same purpose, but I am experimenting with a new approach, where server renders the simple document using the same data, including the web-app script and serves the same data in AJAX requests of the provided web-app.

Continue reading “Blazing Fast Websites by Lazy Loading Content with AJAX”

i18n and l10n for Mustache (PHP) and Angular (Javascript)

English in fact uses just two forms of plural:

  • 0 children
  • 1 child
  • 2 children
  • 3 children

In Angular terminology it means ONE or OTHER1:

/**
 * Plural select rules for en locale
 *
 * @param {number} n  The count of items.
 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.
 * @private
 */
goog.i18n.pluralRules.enSelect_ = function(n) {
  if (n == 1) {
   return goog.i18n.pluralRules.Keyword.ONE;
  }
  return goog.i18n.pluralRules.Keyword.OTHER;
};
Continue reading “i18n and l10n for Mustache (PHP) and Angular (Javascript)”
mustache

In Search for Template Reuse Between Angular.js and PHP

PHP itself is a great templating engine. No doubts. Why to add another overhead? From my perspective is the reuse between back-end and front-end. Why is there need to produce same code on server? Few of my concerns: SEO, usability (fallback for no-javascript on old devices)

Language diferences for building any web apps:

  • on client: HTML + CSS + Javascript
  • on server: HTML + CSS + PHP (or any language of your choice like Ruby, Pyton, Java, ASP,…)

If you are lucky, your host supports Node.js and reuse of templates is very doable. But most of the time you can consider yourself lucky when your host is running latest PHP codebase.

Continue reading “In Search for Template Reuse Between Angular.js and PHP”