Decorator design pattern allows the behaviour to be added to an individual object, either statically or dynamically, without affecting the behaviour of other objects from the same class.
It allows functionality to be divided between classes with unique areas of concern
This wrapping could be achieved by the following sequence of steps:
Subclass the original Component class into a Decorator class (see UML diagram);
In the Decorator class, add a Component pointer as a field;
In the D...
More
Author: Naga Harish M
Titanium Locale Module for Both (Android and iOS) With sample code
Hi, In this post we are going to have a talk about Titanium Locale module. We are so happy that we got many mails, good comments with 5 star rating for version one modules. Many developers contacted us about Locale module whether it will work with Titanium 6.0+ and 64 bit etc.. And most of them asked about how to load new locale strings once language changed in settings screen in application, with out restart.
Before going to talk in detail about this question. Here are the few highlights...
More
Session Authentication vs Token Authentication
Authentication helps verifying the identity of a user. There are many ways we can provide authentication to check our internet resources (Websites, APIs). In this post I am going to tell you the two mainly used authentication types.
Session Based Authentication
Token Based Authentication
Session Based Authentication
In today's internet world many web sites are session based and easy to implement. Mostly all frameworks gives support for Session based authentication. In this type of Au...
More