AngularJS Eclipse XDEBUG

I am using XAMPP Version 5.6.21 for Windows and Eclipse MARS for PHP Developers. In order to enable the XDEBUG communication, I had to make the following changes to the php.ini file: [xdebug] zend_extension = "C:\xampp\php\ext\pgp_xdebug.dll" xdebug.remote_enable = 1 xdebug. »

Javascript robot simulator

I have created a differential drive robots simulator in Javascript. See it in action here. What is it? A differential drive robot has two wheels, that can run independently. If the two wheels go at the same speed, the robot goes straight. If one wheel is going one way, and »

To clone, or not to clone

Cloning or deep copy of objects is not supported directly in the JavaScript language, so you have to rely on a third party library, or roll your own. You may object and say that there are the Object.create, and Object.assign functions that can do that, right? Wrong. They »

Extensible JavaScript function

For the book I am writing, I needed to create a JavaScript function that can tell if a chess move is legal, or not. Since there are so many ways the pieces can move, this method could potentially be quite messy with lots of nested if-statements, or calls to other »

JavaScript statics, enums, and functional inheritance

In this article I am going to show you how you can use enums and static properties in JavaScript. I am going to use a small example where Person inherits from Contact, and there is an enum that defines the two possible genders; Male, and Female. The result of running »