Late Night Links, Volume 5
Late Night Links is back! Here are a few recent blog posts and tweets that might be of interest.
Null Hell and How to Get Out of It
This blog post from Anna Filina covers the problems with "null" method arguments, and offers some practices and solutions that should help you write clearer and more maintainable code.
Carbon: beautiful images of your source code
Carbon allows you to create images of source code snippets, and tweet or export them. They look really great!
Here's an example:
view the full-size version
Preloading in PHP 7.4
One of the new features in PHP's upcoming 7.4 release is "Preloading".
This is a way of warming up your servers so they don't have to read from the disk on every incoming request. According to the post, this can deliver a performance boost of around from 13 to 17 percent.
Speaking of PHP 7.4 there's a lot of Twitter buzz about upcoming features. Here are four great tweets about what is on the way:
#PHP has made a ton of improvements over the past couple years, and now PHP 7.4 is right around the corner. Check out the changes! https://t.co/3y8QBwmnUd #webdev @kinsta
— Resourceful Designer (@ResourcefulD) July 4, 2019
Finally I can get rid of doc blocks on properties in #php 7.4 pic.twitter.com/71na2qgPZT
— 🐘 Serhii Cho (@SerhiiCho) July 4, 2019
Spread Operator for Arrays Coming to PHP 7.4 https://t.co/X642y7y2wb by @paulredmond
— Laravel News (@laravelnews) May 10, 2019
PHP 7.4 will support executing programs without going through a shell:
— Nikita Popov (@nikita_ppv) July 1, 2019
proc_open(['php', '-r', 'echo "Hello World\n";'], $descriptors, $pipes);
This means that you don't have to take care of shell argument escaping, and that signals will be correctly delivered to the process.
That's all for now. Thanks for checking in. And thanks for your patience, I know it's been, oh, about six years since the last Late Night Links post :)
Published: July 4, 2019
Tags: coding, dev, development, links