Cross-platform Desktop JavaScript 3D Game Engine with NodeJS, Electron and BabylonJS

Recently, I have been experimenting with writing 3D games – mainly for mobile Virtual Reality. Today I though I might want to have a go at writing a desktop 3D game, and played with Electron, NodeJS and BabylonJS so I can write my code in JavaScript and use HTML5 to develop my own cross-platform 3D game engine.
Continue reading Cross-platform Desktop JavaScript 3D Game Engine with NodeJS, Electron and BabylonJS

PHP 7 Object Properties Type Safety with Setters and Getters

PHP 7 introduces scalar type definitions: your function parameters can be of a given type, and function return type declarations ensuring your function will return results of a given data type. This can increase your code quality by enforcing a specific behaviour of your code, almost similar to how a strongly typed language does. However, PHP does not yet support variable or property data types – leaving the possibility of variables and properties to be unpredictably converted from one type to another within type safe functions. Below is a technique that enables you to guarantee object properties will always be of a given type.
Continue reading PHP 7 Object Properties Type Safety with Setters and Getters

Raspberry PI Java and Javascript Desktop Applications – JJR Architecture

This entry shows how to create desktop applications for the Raspberry PI with a GUI written in JavaScript and rendered using the Java SWT Browser widget. Use this model to benefit from Rich Internet Applications and access device hardware and software resources by creating custom JavaScript functions. The assumptions are that your device is running Raspian, a Debian based Linux distribution optimised for the Raspberry PI, with X11 enabled and Java installed.
Continue reading Raspberry PI Java and Javascript Desktop Applications – JJR Architecture

Symfony2: Version and Install Steps

This post marks the start of a series of Symfony2 focused entries, describing how to install Symfony2 and prepare the environment for a new project. Relying on the "Installing and Configuring Symfony" chapter of the Symfony Book, this entry provides details about choosing the right version, and an introduction to composer; followed by step by step install instructions. 

Continue reading Symfony2: Version and Install Steps