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 [...]



PHP

PHP ISN'T SHITTY; YOUR MINDSET IS!

   Before I started working with the  PHP programming language, I had little to no respect for it. This was basically due to a mindset I was made to adopt by my immediate environment and within the work environment. PHP has always been regarded to as the shittiest programming language out there but I put this question to you: WHAT MAKES [...]






PHP

PHP BOOTCAMP: Magic Constants

There are a lot of methods, classes and constants that PHP offers to developers for use. We’ll talk about the MAGIC CONSTANTS today. Note: These constants didn’t just appear in the standard PHP library, they were not dropped from heaven and a PHP developer doubling as a magician also didn’t write them. This was actually intended [...]




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