Reading List
The most recent articles from a list of feeds I subscribe to.
Ask for ranked wishlists
John Drexler shares an easy to implement prioritization scheme when working with a client.
It's a gift when another team gives you a wishlist of product improvements. Ask them to put their lists in order of importance, and then focus the conversation just on the top 5. This saves you loads of time. But it also brings them into the prioritization discussion and gets them to think like Product Managers too.
Robin Rendle: "Cut the intro"
(I suppose it'd defeat to point to add a comment here.)
Writing about the symbiosis between trees and mushrooms? Don’t start talking about how humanity has depended on trees since the blah blah blah. Just jump right in! Talking about new features in your app? Don’t start with the fluffy stuff about how excited you are to announce yada yada ya – just tell me what improved.
Boom! The text is lighter, faster, less wasteful.
Remove falsy values from a Laravel collection or array in PHP
The native array_filter() in PHP and collect()->filter() in Laravel also work without providing a filter callback.
array_filter([0, 1, '', 'a', false, true, []]);// [1, 'a', true] collect([0, 1, '', 'a', false, true, []])->filter();// [1, 'a', true]
If you don't provide a callback, PHP will remove all empty values from the array.
Cosmic Latte
A team of astronomers have calculated the average color of the universe and named it cosmic latte. I'd love to have a cosmiclatte CSS color one day.
Adding stale while revalidate functionality to Laravel's cache
A stale while revalidate cache macro by Rias Van der Veken. With stale while revalidate, expired cache items will still be used when requested, but the data will be revalidated right after. That means the current request will be handled faster than if the cache would have to be revalidated, and the next request will receive fresh data.
Stale while revalidate is often used in web applications, popularized by Vercel's SWR React library.
↗ rias.be