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.

Frameworks in Web Application Design

A web application framework is a software framework that is designed to support the development of dynamic websites, Web applications and Web services. The framework aims to alleviate the overhead associated with common activities used in Web development. For example, many frameworks provide libraries for database access, templating frameworks and session management, and often promote code reuse.

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;
}

C++ Singleton

class SingletonClass {
public:
  static SingletonClass* getInstance();
private:
  SingletonClass(); // private constructor
  static SingletonClass* instance;
};

SingletonClass* SingletonClass::getInstance()
{
  if (!instance) {
    instance = new SingletonInstance();
  }
  return instance;
}

SingletonClass* SingletonClass::instance = 0;

Creating Object Oriented Database Interfaces in PHP5

interface RecordSet {
  public function fetch();
  public function fetchAssociative();
  public function fetchObject();
  public function getFieldSpecifications();
}
interface RecordSetBuffered extends RecordSet {
  public function numRows();
  public function numColumns();
  public function setCursor();
  public function getCursor();
}
we like -rw-r--r-- 3 root web 2058 Mar 15 2017 avatar graveyard -rw-r--r-- 2 root web 3215 Mar 12 2017 php5 OOP refs -rw-r--r-- 4 root web 1856 Mar 26 2017 mysql5 refs 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.