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



PHP

PHP BOOTCAMP: Closures Demystified

Yo DAWG, Here is a function for your function. If you have worked with Javascript a lot, you would have used functions inside functions several times. I mean anonymous functions ( functions without a name, I call them bastard functions ). I also mean inner functions that possess the ability to access properties within the scope of the outer [...]


PHP

Re-iterating the Use Of Traits

For so many years now, Php Developers have always envied their Java colleagues for so many reasons which i wouldn’t be stating here to preserve my lovely life┬á.┬á One of such reasons is “Multiple Inheritance”. Php has been a single inheritance language for so long, but after so many years of praying and fasting from the [...]


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