PHP

Get the Hang of PHP 7

Long before I started looking into PHP, I disliked it particularly for two main reasons; the supposed “shittiness” and  the dynamic typing it offered, just like other languages like Javascript, ruby, etc. This particular bias was because I was coming from Java, where form and  structure are “commandments” you have to obey or be marked [...]


PHP

PHP Super Globals

Superglobals are built-in variables in PHP that are always available in all scopes. Available in all scopes mean these variables can be accessed from any part of your application/project. These are the super global variables we have in PHP at the time of this writing: 1. $GLOBALS Any variable assigned to this super global is accessible in [...]


PHP

PHP[WORLD] 2015

I welcome you to this year’s php[world] conference. The conference strive to create an amazing experience for the greater PHP community that brings together developers from Drupal, WordPress, Joomla!, Magento, Zend Framework, Symfony, Laravel, CakePHP and more. A lot of very important personalities are present for the #PHPWorld Conference [...]



PHP

Mock Objects in PHP – Testing

 Introduction In unit tests, mock objects simulate the behaviour of real objects. They are commonly utilised to offer test isolation, to stand in for objects which do not yet exist, or to allow for the exploratory design of class APIs without requiring actual implementation up front. A good example, where mock objects would be required, is [...]




RUBY

Creating your own RSpec Matchers.


RUBY

Ruby on Steroids(DSLs): The Powerful Spell Called DSL


RUBY

Ruby on Steroids: The Magic of MetaProgramming – Method Spells


RUBY

Ruby on Steroids: The Magic of MetaProgramming – Fellowship of Spells


RUBY

How to Delegate Like a Boss