2026-11-18 08:00:00
On Sunday I ran the Gosport Half Marathon with Emilian Cioata, who works with me at Radweb. We each ran our own race, at our own pace, and met at the finish. I've been thinking about that since. It's a fairly good description of the kind of team I want to build.

The Gosport Half is two flat laps along the Lee-on-the-Solent seafront, looking out towards the Isle of Wight. It's organised by Gosport Road Runners, and the tagline on the medal sums it up: "by runners for runners". There's a samba band on the course, which helps more than you'd think at mile ten.
Sunday was grey and wet. We stood at the start in hoods and rain jackets, grinning like people who'd chosen this, which I suppose we had.
Emilian finished in 1:54:03. I finished in 2:30:18, a good 36 minutes later, which rather proves the point about running your own race. My preparation wasn't exactly textbook. We have a newborn at home, so training was patchy at best and sleep was something that happened to other people. I also learnt that I can't stand caffeine gels. They taste like coffee that's been left in the pot for a month. I got round anyway, and I'll take that.
The medal has a submarine on it and a sea fort, a lovely nod to the town's naval history.

Nobody at Radweb asked Emilian or me to run a half-marathon. There was no team-building budget and no company T-shirt. Two colleagues fancied the same daft challenge and signed up.
I think that matters more than most things on a careers page. You can't put culture in a job ad. You see it in what people choose to do together when nobody's making them.
It also maps onto how I want the engineering team to work:
At Radweb we build Inventory Base and Property Inspect, software that letting agents, inventory clerks and surveyors use every day across the UK, US and South Africa. The engineering team is small enough that you know everyone, and that what you build gets used the following week.
You don't need to run, and you definitely don't need to enjoy standing in a wet field before 10am on a Sunday. But if you'd like to work somewhere people turn up for each other, I'm always happy to chat. Message me on LinkedIn, whether you're a graduate, a placement student or a senior developer, or have a look at our current roles on the Radweb careers page.
And Emilian, same time next year?
2026-11-16 08:00:00
BMW UK paid £2,000 towards a £3,500 air-con repair on my car, after the dealership had already said no. I didn't hire anyone or threaten legal action. I spent a few evenings working through it with Claude, the AI assistant I use most days at work.
I'm a software engineer, so I'm used to treating problems as something to debug. This one was a customer service problem, not a code problem, but it turned out to work much the same way: gather the evidence, build the case, find the right person to talk to, and don't give up after the first "no".
My car is a 2020 BMW 530e (G30), the plug-in hybrid with the B48 petrol engine. It had done about 52,000 miles when the air-con stopped working. The diagnosis was a failed A/C condenser and electric compressor, with a repair estimate of around £3,500. This wasn't just a comfort issue. It was a major fault, and if it had been left unrepaired it risked a catastrophic failure of the car's high-voltage system.
That felt wrong. The car is six years old with fairly average mileage. I bought it from Snows BMW in Portsmouth, every service, MOT and repair has been done there, and I'm on their service plan. I'd done everything the manufacturer asks of an owner, and a major part had still failed well before I'd expect it to.
The car was out of warranty, so there was no automatic right to a free repair. But manufacturers do have goodwill: a discretionary contribution towards repairs on cars that fail earlier than they should, especially for loyal, dealer-serviced customers. The trick is making a case good enough for someone to say yes.
I treated Claude as a sparring partner rather than a ghostwriter. It helped in four ways:
The specific ask mattered. "Can you help?" is easy to answer with a no. "Would you contribute 50%?" gives someone a number to approve, or to counter.
Snows declined to make any goodwill contribution. They also pointed out that the bulletins I'd cited were North American, not UK, so they didn't carry much weight.
That stung, because they had a point. When I later collected the car, the mechanic told me the US bulletins related to a weld issue, not the way my parts had actually failed. My "known fault" evidence wasn't as strong as I'd hoped.
But the refusal came with something useful: Snows referred my request to BMW UK Customer Services. A dealer can only spend its own goodwill budget. The manufacturer has its own, and it cares about different things, like brand loyalty and customer retention.
With Claude, I reworked the case for a new audience. The bulletins moved from the headline to a supporting point. The lead became the relationship: a customer who bought from a BMW dealer, kept the car on a BMW service plan, and had every bit of work done in the BMW network, now facing a big bill for a part that failed early.
We kept the tone calm and factual. No threats, no all-caps, just a clear timeline, the evidence, and the same specific ask.
It worked. BMW UK agreed a goodwill contribution of £2,000 towards the repair. The work was done, I collected the car, and the air-con works again.
If you're facing a big out-of-warranty bill, here's what I'd pass on:
On the AI side, Claude didn't win this for me. It made me faster and clearer. It helped me understand a process I'd never been through, organise my evidence, and write emails I'd have taken far longer to get right. The judgement calls were still mine: what to ask for, when to escalate, and what to say when the dealer pushed back.
That's how I use it at work too. It's not a replacement for thinking, it's a way to think out loud with someone who never gets bored of the problem. This time, that was worth £2,000.
2025-11-22 08:00:00
Nearly three years ago we found out we were expecting our first child. I knew this would be a significant change to our lifestyle, which was predominantly wake up, sit at a desk, have breakfast, sit at a desk, lunch, desk, dinner, desk, sleep, repeat.
At 125+kg I knew I wasn't able to provide for our new family as best I could. Determined to lose weight and change my lifestyle I completed my first Parkrun. Absolutely hated it. No surprise given I'd spent more than a decade avoiding any sort of exercise.
Despite hating it, I went back the next week, and the week after that. Two and a bit years later, I've now completed 141 Parkruns, shed 30-ish kilograms, running and cycling multiple times a week.
Originally I signed up for Great South Run 2025, however the day before I pulled my back at Parkrun. No idea what happened really, was taking it easy and going slow, knowing the next day I'd be running 10 miles. By the evening everything stiffened up and was having a hard time walking, the next morning was even worse, so unfortunately had to pull out.
Thoroughly disappointed having had to skip the Great South Run, @Zoe said I should do Gosport Half Marathon instead. As the week went on we both kept talking about it, and eventually I decided to commit, but hadn't yet booked. Apparently @Zoe was only joking, but I'd missed that part. I decided to take the joke further and said I'd booked already, so feeling guilty @Zoe booked a ticket, and well, now we're both booked in.
@Zoe however done an injury the week prior to the Gosport Half, so ended up swapping places with another friend of ours.
Having spoken to several people who have taken part in the Gosport Half in past years, I wasn't particularly looking forward to race day. The course is set along Lee-on-the-Solent sea front, with no protection from the elements. Race day is 16th November, so I'm braced for driving wind and rain. Someone at Parkrun described the Gosport Half as the coldest they'd ever been, and took several baths throughout the day to try and get warm again.
As it turns out, the weather on the day was perfect. Very little wind, completely dry, and a cool 11℃. Ideal running conditions.
My first 5k was easy going, keeping to my planned 6:30/km pace. At this point I'm well warmed up, feeling good, and apparently took off. The next 10k I'd accidentally been running at 6:00/km, even 5:30/km in places. By 15k I'm struggling to keep a 7:00/km, occasionally slowing to a walk, pushing myself to keep a run going. This was largely down to a burning sensation in my feet. Pushing through I managed to finish in 02:19:33.
Overall I'm very happy with that. My main goal for the day was to finish under 02:30:00, stretch goal was 02:15:00. Had I not taken off, I think I'd have managed my stretch goal.
Being my first longer event, I didn't really know what to expect. I could have been better prepared, and stuck to a stricter training programme. I definitely want to take part in more events next year. Largely getting to know about these events is a challenge without having Facebook. Most running groups, and wider society, rely much too much on Facebook, but that's a conversation for another time.
Key takeaways for next time
Next event in my calendar is PJC Pub2Pub 10k. I took part in this last year, struggling up a 250m hill in the rain, barely any grip due to the mud, and little one in the pushchair. Was real good fun.

2025-04-30 08:00:00
This post is a bit of a ramble
I've been managing a team, officially, coming up to a year now. Overall it's been a positive and energising experience, but as with every journey there are an array of challenges and hurdles along the way.
Transitioning from being a member of the team for 7 years to managing that same team has been an emotional and confidence testing challenge. Over those 7 years friendships have formed, trust has been built, and now those relationships are being tested. Being a friend and manager at the same time is a difficult balance, trying to avoid playing favourites and treating the team fairly. It's difficult to accept but those friendships will and have changed.
Keeping everyone happy is an impossible task, and you will upset people along the way, particularly when difficult and unappealing decisions need to be made. You are not here to be liked, or win a popularity contest. You are here to lead the team, challenge their skills, and grow together. This has been a difficult pill to swallow knowing your decisions can put pressure and stress on your team.
Feeling productive is a challenge when disruptions to your day are frequent, fires need to be put out, and your team, as well as other departments, need your input. What feels like an unproductive day full of interruptions can actually be hugely beneficial to the team, where you've helped unblock several team members and now multiple projects can move forward. It's easy to get lost in the day, but stepping back and viewing the bigger picture is important.
Learning your team's individual strengths and understanding how to utilize them is vitality important to delivering projects on time and to a high standard.
Hiring based on skill is rarely the right choice. Enthusiasm, passion, and personality that fits in with the team is far more important. Skills can be learned, mentored, and developed.
Being open with your team a difficult balancing act. Sharing information and being transparent can help your team to understand the reasoning behind decisions as well as push their motivation to delivery, but it can also lead to frustration and anger when the information is not what they want to hear. Information may not always be received in the same way you intend, so you need to evaluate from multiple view points before sharing.
Ultimately the experience has been challenging and rewarding. I have learned a lot about myself, overcome many hurdles, and pushed myself into many areas I never thought I would.
2025-03-13 08:00:00
File streams allow you to interact with a data source without having to load the whole resource into memory. This avoids hitting memory limits when working with larger files.
Let's look at a basic example of reading a file from disk
// Open the file
$resource = fopen('/path-to-my-file.txt', 'r');
// Read contents into a variable
$contents = stream_get_contents($resource);
// Close the file
fclose($resource);
It's important to remember to use fclose() once finished with the stream. Otherwise the file descriptor will remain open for the lifetime of the process. PHP will automatically close all file descriptors at the end of the request when using php-fpm or mod_php. However in CLI and other SAPI environments such as swoole, this will leak memory and eventually cause your PHP server to be killed by the OS.
fopen() may be used to interact with data from many resources. These include files from disk, http(s), and in-memory storage. For a full list of supported protocols, see the php documentation
You may have noticed the r used in the fopen('/path-to-my-file.txt', 'r') call. This specifies the type of access you need to the resource.
There are several modes, typically r (read) and w+ (read and write) are the most commonly used. See the php documentation on fopen() for more information.
Filters can be used to modify data when reading or writing to the stream. PHP has several default filters including base64, rot13, upper and lower case transforms. You may also register your own custom filters.
// File contains: VGhpcyBpcyBteSBzdHJpbmc=
$stream = fopen('/a-base64-encoded-file.txt');
stream_filter_append($stream, 'convert.base64-decode', STREAM_FILTER_READ);
// Output: This is my string
print stream_get_contents($stream);
fclose($stream);
You can also use filters to modify data when writing to a stream
$stream = fopen('/my-file.txt');
stream_filter_append($stream, 'string.toupper', STREAM_FILTER_WRITE);
fwrite($stream, 'this is my string');
fclose($stream);
// File contents: THIS IS MY STRING
PHP has a number of io stream aliases to easily interact with common resources. These include stdin, stdout, and stderr when in a CLI context, but most useful are the memory buffer and temporary files.
$buffer = fopen('php://memory', 'w+');
$temp = fopen('php://temp', 'w+');
$stdin = fopen('php://stdin', 'r');
$stdout = fopen('php://stdout', 'w+');
You can find more about these in the php documentation
So far my examples have shown reading or writing the full file contents, however it is possible to read/write parts of the resource, as well as seek forward and backwards.
The fseek() function allows you to move the current cursor position in the file to a specific point. rewind() will move the cursor back to the beginning of the resource.
$stream = fopen('my-file.txt', 'r');
// Read first 4kb of data
$data = fgets($stream, 4096);
// Seek back to the beginning of the file. rewind($stream) achieves the same
fseek($stream, 0);
Beware! Not all streams seekable and may result in an error when attempting to do so. You should first check your stream is seekable. Non-seekable streams include sockets, pipes, and callback/pump resources.
$stream = fopen('my-file.txt', 'r');
$meta = stream_get_meta_data($stream)['seekable'];
if ($meta['seekable'] === true) {
rewind($stream);
}
$data = fgets($stream, 4096);
You might be asking "What do HTTP Messages have to do with file streams?".
While PSR-7 is predominantly about HTTP payloads, the StreamInterface provides a simple uniform implementation when working with any file stream.
$resource = fopen('php://temp', 'w+');
$stream = new Stream($resource);
if ($stream->isSeekable()) {
$stream->seek(0);
}
$data = $stream->read(4096);
$stream->close();
There are several PSR-7 implementations, but mostly I use guzzle/psr-7 as it comes bundled with the guzzle http client.
More details on PSR-7 can be found on the PHP-FIG website
The guzzle/psr-7 library comes with a useful set of utils for interacting with streams. Seeing as it's a PSR-7 implmentation, as you'd expect the streams it can interact with need to be a StreamInterface
Utils::tryFopen() returns an open stream, or throws an exception. When using fopen() directly, this can return false if it failed to open the resource.
$fd = Utils::tryFopen('php://temp', 'w+');
StreamInterface based on inputCreating a StreamInterface without knowing the underlying resource can be cumbersom. Utils::streamFor() does the heavy lifting for you
Utils::streamFor('a simple string');
Utils::streamFor(Utils::tryFopen('php://temp', 'w+'));
Utils::streamFor($generator);
Utils::streamFor($iterator);
$source = Utils::streamFor(Utils::tryFopen('/my-large-file.txt'));
$dest = Utils::streamFor(Utils::tryFopen('php://temp', 'w+'));
Utils::copyToStream($source, $dest);
If you have a large file you want to send to the client browser, returning this as a string in the http response may cause an out of memory error. To avoid this file streams allow you to read chunks of the file and send them to the client allowing memory to be freed before reading the next chunk.
$fd = fopen('/my-large-file.txt', 'r');
// Read file and pass to the output interface. fpassthru() uses settings from the php.ini to determine chunk size when reading the file
fpassthru($fd);
fclose($fd);
Or when in a Laravel controller
return response()->streamDownload(function () {
$stream = Utils::streamFor(Utils::tryFopen('/my-large-file.txt', 'r'));
// Check for end of file
while (!$stream->eof()) {
// Read 100kb
$buffer = $stream->read(1024 * 100);
// Send buffer to output interface
print $buffer;
}
$stream->close();
})
File streams are particularly useful when working with CSV files. CSVs often contain large amounts of data and can easily run into memory problems.
My favourite library for dealing with CSV files is league/csv.
$csv = <<<EOF
id,name,email
1,Joe,[email protected]
2,Jane,[email protected]
EOF;
$reader = Reader::createFromStream(Utils::streamFor($csv));
/** @var array{id: string, name: string, email: string} $record */
foreach ($reader->getRecords() as $record) {
// Process data
}
$reader->close();
The same applies for writing large amounts of data to csv
$stream = Utils::tryFopen('php://temp', 'w+');
$csv = Writer::createFromStream($stream);
foreach ($datasource as $data) {
$csv->insertOne([
'id' => $data->getId(),
'name' => $data->getName(),
'email' => $data->getEmail(),
]);
}
unset($csv);
fclose($stream);
2024-03-06 08:00:00
If there’s money for tax cuts, then there was money available for public services.
Our services are at breaking point. My county council declared that it is bankrupt for the 2023/2024 tax year. Many other councils have been doing this, more than ever before. Their first course of action was to make severe cuts to care homes and services for the elderly and disabled.
The NHS is in a dire situation, it’s a struggle to see a doctor when you need one. Waiting lists are at record highs, despite endless promises from this Tory government to reduce them.
I don’t want tax cuts, I want public services to be funded better, their employees happy, and their users happy. Make the services better for everyone. Make the infrastructure better for everyone.
I don’t want tax cuts in order to essentially pay me a dividend in return. We aren’t shareholders in a private company where the aim is the extract as much profit as possible.
I don’t need a tax cut. Tax cuts only benefit richer people, the more you earn the more the tax cut works for you. This is morally wrong. I need public services, we all need public services, transport, and functioning infrastructure.
I want my local area to be healthy, happy, clean, and well maintained.
I don’t want tax cuts.