Overview for 'stitcher-io'
Written by Stitcher.io
/ Original link
on Nov. 6, 2021
I made this video about generics last week, you can watch it (make sure to like and subscribe if you liked it), or you can read the transcript here if you don't like watching videos. Also make sure to share your opinions on the topic via Twitter or email! Generics. We all want them, they are probab…
Written by Stitcher.io
/ Original link
on Nov. 5, 2021
PHP 8.1 will be released on November 25, 2021. We already know all new features, performance improvements, changes and deprecations; so let's go through them one by one. Do you want to learn more about PHP 8.1? There's The Road to PHP 8.1. For the next 10 days, you'll receive a daily email covering…
Written by Stitcher.io
/ Original link
on Oct. 27, 2021
I've been thinking about route attributes lately. By doing so, I came to realise that I've got a somewhat strange relation with annotations a.k.a. attributes. Over the years, I've gone from loving them to hating them, to loving them again, to somewhere in between. I've seen them abused, both inside…
Written by Stitcher.io
/ Original link
on Oct. 9, 2021
PHP 8.1 adds a feature that might seem like a small detail, but one that I think will have a significant day-by-day impact on many people. So what's this "new in initializers RFC" about? Let's take a look at an example; we've all written code like this: class MyStateMachine { public function __cons…
Written by Stitcher.io
/ Original link
on Sep. 16, 2021
This post was first released on my newsletter. Feel free to subscribe if you want to be the first these kinds of posts, and want to talk about about them with me directly via email. Every once in a while, maybe every couple of years, someone has an idea that revolutionises the tech industry. All po…
Written by Stitcher.io
/ Original link
on Sep. 11, 2021
Writing data transfer objects and value objects in PHP has become significantly easier over the years. Take for example a look at a DTO in PHP 5.6: class BlogData { /** @var string */ private $title; /** @var Status */ private $status; /** @var \DateTimeImmutable|null */ private $publishedAt; /** *…