Abstract Factory

Abstract Factory Design Pattern Analysis

What is the Abstract Factory design pattern? The intent or definition of Abstract Factory is “Provide an interface for creating families of related or dependent objects without specifying their concrete classes” It’s a bit of a complicated definition, so we’ll need to break it down into meaningful chunks to understand it. 1. “Provide an interface” When we discuss the Abstract Factory, we are referring to interfaces rather than abstract classes. Essentially, this design pattern provides us with an interface, similar to those found in Java, C#, or Typescript (abstract class)....

April 24, 2020
AngularJs Getting Started

Angularjs Tutorials Bootstrap

Introduction Every application starts with bootstrap process which initialize application and wire it other with dependencies and configurations. AngularJs is not different from other application. It also starts application with bootstrap process. Following operation happens inside AngularJs bootstrap process. Load application module. Create dependency injector and load dependencies. Compile HTML and create scope for application. All these steps happens inside angular.js scripting file. therefore we need to include it first. we can include it inside HEAD tag or at end of BODY tag....

March 4, 2015
Mongodb Tutorials Aggregation Framework

Mongodb Tutorials Aggregation Framework

Introduction MongoDB Aggregation Framework groups set of documents together and performs certain operation on this grouped documents and returns results in the form of documents. MongoDB aggregation answer to those query which requires grouping of documents. Aggregation framework works on three type of model Aggregation pipeline Map Reduce Single Purpose Aggregation Operations Now let see how MongoDB Aggregation Framework works with simple example. Suppose you are MongoDB application developer in a respected company and you have been given a MongoDB database that holds information about human population which is distributed according to cities and their states....

November 27, 2014
Php Tutorials Autoload Php Classes

Php Tutorials Autoload Php Classes

Introduction With some examples, this tutorial post will teach the PHP autoloader and namespace concepts. What is Autoloading in PHP PHP autoload’s primary function is to load PHP files into the application context. The import statement is the default method to include PHP file into context. However, we may avoid the issue by using the PHP autoload capability to autoload essential PHP files, which keeps your code clean and composable....

November 2, 2014
Json Tutorials Getting Started

Json Tutorials Getting Started

Introduction JSON is widely accepted text formatted structured data. JSON stands for “JavaScript Object Notation”. In general JSON can represent Object of database record. Object to represent a list of HTML elements. Result of search query. Response of an Ajax call. Here you can see JSON is used in many different areas and for many different scenarios. This means it has simple data structure. most of programming languages adopt it and it can flow easily from one connection to another....

October 25, 2014
Doctrine2 Installation Configuration

Doctrine2 Installation Configuration

Introduction In this tutorial, we will look at how to install Doctrine2 in your PHP project. This post will make use of Doctrine2’s Composer tool. Installation First, create a directory for your project. mkdir zainabed cd zainabed Now, create a composer.json file. vi composer.json Then, add the following repository information to it. { "require": { "doctrine/orm": "*" } } You are now ready to use Composer to install Doctrine, but first you must install Composer on your machine....

October 23, 2014
Twig Tutorials Install and Configure

Twig Tutorials Install and Configure

Introdcution In this tutorial, we’ll look at how to install Twig within your PHP project and thereafter configure it so that we can create and use a Twig template inside our PHP web application. Later on, we’ll see a simple Twig template example that displays a Welcome to Twig template message. Let’s take it one step at a time. Installation The Twig template can be installed using Composer, Git, or PEAR....

October 16, 2014
Ssh Public Key for Github and Bitbucket

Ssh Public Key for Github and Bitbucket

Introduction This post will show you how to generate SSH private and public keys step by step, as well as how to add public keys to your GitHub and Bitbucket accounts. But first, why do we require this SSH public key If you want to do any work on a secure GIT repository, such as cloning or pushing your latest changes, you will need to provide your credentials to help GIT authenticate you and approve those operations, whether you are working in a team or as an individual....

October 14, 2014
Symfony Tutorials Event Dispatcher

Symfony Tutorials Event Dispatcher

Introduction Symfony EventDispatcher is object which interacts with different set of objects when certain event happens. To illustrate Event Dispatcher definition let’s consider the online shopping website example. suppose you want to purchase a mobile from online shopping website , but unfortunately that mobile is out of stock. Then you subscribe into online shopping website for this mobile availability. When mobile comes in stock, online shopping website notifies you about mobile phone’s availability via email....

October 3, 2014
Drupal 8 Tutorials Custom Module

Drupal 8 Tutorials Custom Module

Introduction Custom Module development in Drupal 8 is very simple. It may looks very difficult for developer who has Drupal 7 experience or nothing at all. This tutorial will show easy steps and helps you to create custom module within few minutes. Note: Content or example of this tutorial may change according to Drupal 8 version and its release. This tutorial is divided into three small sections. In first section of this tutorial we will see what directory structure we need to create for a custom module....

September 19, 2014