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.

Advantages of C++

Compared to the C language, C++ introduces extra features, including declarations as statements, function-like casts, new/delete, bool, reference types, inline functions, default arguments, function overloading, namespaces, classes (including all class-related features such as inheritance, member functions, virtual functions, abstract classes, and constructors), operator overloading, templates, the :: (scope of resolution) operator, exception handling, and runtime type identification.

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

Java Singleton

public class SingletonClass {
  public static SingletonClass getInstance() {
    if (SingletonClass.instance==null) {
      SingletonClass.instance = new SingletonClass();
    }
    return SingletonClass.instance;
  }
	
  private SingletonClass() {
    // private constructor prevents external instansiation
  }
	
  private static SingletonClass 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;
};

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-- 2 root web 3961 Oct 18 2017 voices of amiga.org -rw-r--r-- 3 root web 1533 Oct 12 2017 the leander -rw-r--r-- 3 root web 3362 Oct 16 2017 bjarne! 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.