eXtropia Studios Software Development

At eXtropia Studios, software development is both a science and a passion. We actively research all aspects of the software production cycle, constantly seeking improvement, constantly working outside the box.

Object Oriented Programming

Object-oriented programming (OOP) is a programming paradigm that uses "objects" to design applications and computer programs. It can use several techniques from previously established paradigms, including inheritance, modularity, polymorphism, and encapsulation. It was not commonly used in mainstream software application development until the 1990s, though many modern programming languages support OOP.

Advantages of Design Patterns

Design patterns can speed up the development process by providing tested, proven development paradigms. Effective software design requires considering issues that may not become visible until later in the implementation. Reusing design patterns helps to prevent subtle issues that can cause major problems, and it also improves code readability for coders and architects who are familiar with the patterns.

Object Oriented Design

Object-Oriented Design (OOD) is an activity where the designers are looking for logical solutions to solve a problem, using objects. Object-oriented design takes the conceptual model that is the result of object-oriented analysis, and adds implementation constraints imposed by the environment, the programming language and the chosen tools, as well as architectural assumptions chosen as basis of design. The concepts in the conceptual model are mapped to concrete classes, to abstract interfaces in APIs and to roles that the objects take in various situations. The interfaces and their implementations for stable concepts can be made available as reusable services. Concepts identified as unstable in object-oriented analysis will form basis for policy classes that make decisions, implement environment-specific or situation specific logic or algorithms. The result of the object-oriented design is a detailed description of how the system can be built, using objects.

PHP5 Singleton

class SingletonClass {
  public static function getInstance() {
    if (self::$instance==null) {
      self::$instance = new SingletonClass();
    }
    return self::$instance;
  }
	
  private function __construct() {
    // private constructor prevents external instansiation
  }
	
  private static $instance = null;
}

Javascript Singleton

function SingletonClass {
  // class definition here
}

SingletonClass.instance = null;

SingletonClass.getInstance = function() {
  if (!SingletonClass.instance) {
    SingletonClass.instance = new SingletonClass();
  }
  return SingletonClass.instance;
};
we like -rw-r--r-- 2 root web 1923 Aug 17 2016 voices of amiga.org -rw-r--r-- 4 root web 2042 Aug 16 2016 bash.org -rw-r--r-- 2 root web 2059 Aug 19 2016 12Ten login>_

eXtropia Studios Software Development

At eXtropia Studios, software development is both a science and a passion. We actively research all aspects of the software production cycle, constantly seeking improvement, constantly working outside the box.