-
Recent Posts
Recent Comments
Archives
- June 2025
- May 2025
- April 2025
- February 2025
- December 2024
- October 2024
- September 2024
- September 2023
- May 2023
- April 2023
- February 2023
- June 2022
- May 2022
- March 2022
- December 2021
- November 2021
- October 2021
- September 2021
- January 2021
- November 2020
- September 2020
- July 2020
- January 2020
- December 2019
- July 2019
- December 2018
- June 2018
- April 2018
- March 2018
- January 2018
- November 2017
- September 2017
- July 2017
- March 2017
- December 2016
- October 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- January 2016
Categories
Meta
-
Recent Posts
Recent Comments
Archives
- June 2025
- May 2025
- April 2025
- February 2025
- December 2024
- October 2024
- September 2024
- September 2023
- May 2023
- April 2023
- February 2023
- June 2022
- May 2022
- March 2022
- December 2021
- November 2021
- October 2021
- September 2021
- January 2021
- November 2020
- September 2020
- July 2020
- January 2020
- December 2019
- July 2019
- December 2018
- June 2018
- April 2018
- March 2018
- January 2018
- November 2017
- September 2017
- July 2017
- March 2017
- December 2016
- October 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- January 2016
Categories
Meta
Author Archives: Mark Baker
Closures, Anonymous Classes and an alternative approach to Test Mocking (Part 2)
The last time I posted here, I was writing about Anonymous Functions and how they can be bound to any object (or class) to execute as though they are a method within the scope of that class (Closure Binding as … Continue reading
Closure Binding as an alternative to “use” variables
As a general rule when creating a Closure, arguments are passed when the function is called, but “use” variables (I’m sure that they have a formal name, but have no idea what it might be, so I just refer to … Continue reading
Closures, Anonymous Classes and an alternative approach to Test Mocking (Part 1)
Since their first introduction with PHP 5.3, Closures have proven an incredibly useful feature for writing simple callback code, making it cleaner and more intuitive. Anonymous Functions can be used inline for many of the array functions $price = 100.00; … Continue reading
Heroes of PHP™ #3
Last year at Christmas I posted my original 24 Heroes of PHP™, with a second post listing a further 24 of my heroes at New Year. I’ve decided to repeat the exercise this year, although my list this time is … Continue reading
Musings of a PHPDiversity Rainbow Elephpant
IT’S HAPPENING! Finally, the kickstarter is happening! And I’m ecstatic. I’d so been hoping that the kickstarter would be launched last Friday, and it felt frustrating when the day ended, and I hadn’t heard anything back from the kickstarter review team. And then I … Continue reading
Musings of a PHPDiversity Rainbow Elephpant
I’M REAL! I’M REAL! I know that I shouldn’t shout; but I just want to tell the whole world that I’M REAL! I’M HAPPENING! I’M A REAL ELEPHPANT! When Mark got home from work this evening, he found me sitting in … Continue reading
PHP Generators – Sending “Gotchas”
If you’re reading this, you’re probably already aware of just how useful PHP’s Generators are for improving performance and/or reducing memory overheads while keeping your code clean and easy to read. We can use a simple foreach() in the main body … Continue reading
Musings of a PHPDiversity Rainbow Elephpant
It’s been a long, slow, lazy summer; but it feels as though things are accelerating in my life at the moment as we approach the launch of the PHPDiversity kickstarter. Mark promised himself that he wouldn’t proceed until he had all … Continue reading
Words on Diversity from the PHP Rainbow Elephpant
Enfys, the PHP Rainbow Elephpant, is intended to help promote Diversity within the PHP Community: but what exactly is Diversity? What are the benefits of Diversity? And how can Diversity be achieved?
Musings of a PHPDiversity Rainbow Elephpant
I’m reminded that it has been quite a while since I last posted anything here on Mark’s blog site, and that people might be forgetting about me… but an Elephpant never forgets. I’m still in a fever-pitch of excitement, as I … Continue reading