-
Recent Posts
- 33 Years – That’s an LP in “Old Money”
- Type the List: A Proposal to support type-casting in PHP’s list language construct
- Default the List: A Proposal to support default values in PHP’s list language construct
- Splat the List: A Proposal to support Variadics in PHP’s list language construct
- List-o-mania
Recent Comments
Archives
- 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
An Attempt at Poetry
It’s been nearly two months since my last post, two months trying to pull myself out from the state that I’d got myself into. 2020 isn’t a forgiving year, and I’m hurting myself and others with the darkness that I’ve … Continue reading
Fear and Self-Loathing in Amsterdam
I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I … Continue reading
Citizen of Nowhere
Tonight at midnight (local time) I become a “citizen of nowhere”.
Posted in Uncategorized
Leave a comment
Filtering and Mapping with SPL Iterators
Four or five years ago, the most popular talk that I gave at conferences was entitled “A Functional Guide to Cat Herding with PHP Generators” (the cats proved a very enjoyable talking point at every event where I gave it, … Continue reading
Posted in PHP
Tagged CallbackFilterIterator, FilterIterator, IteratorIterator, Iterators, PHP, SPL
Leave a comment
Parallel Looping in PHP with SPL’s MultipleIterator
There was a time, back when I was working with PHP 5, when I found the Standard PHP Library (SPL) an extremely powerful and useful toolbox; and I particularly enjoyed working with SPL’s Iterators and Datastructures. Sadly, SPL was always … Continue reading
Withdrawal from Speaking at PHPCE 2019
I’m always nervous when I speak at a conference or in front of a user group; but I also enjoy sharing my passion and excitement for things that I’ve learned, or new tools that I’ve discovered. That makes it particularly … Continue reading
A Year in Retrospect
At New Year, many people write a retrospective of the old year, and about their hopes and dreams for the new. The roots for my own changes over the last year really lie earlier: 2017 was the year when a … Continue reading
Using PHP Anonymous Classes as Package Private Classes
I’ve written before about the benefits of using PHP’s Anonymous Classes for test doubles; but Anonymous Classes also have potential usecases within production code as well. In this article I’m going to describe one such usecase that can be particularly … Continue reading
Discharging Static #2
In the first article in this series, I wrote about the problems with testing static methods in classes, and showed a few approaches that allow us to write mocks for statics. Testing classes where we have static properties is a … Continue reading
Aspects of Love — How deep does the rabbit hole go?
If you’ve read my previous post (Discharging Static #1), then you’ll know that recently I’ve been exploring different approaches to creating test doubles for statically called methods, and other testing problems, and had begun to look at Michael Bodnarchuk’s AspectMock library … Continue reading