Here’s an interesting look at Google Trends for REST API, RPC, and GraphQL. There’s also a link to the actual Google Trends, in case you want to play with it. For example, here’s how it looks with the addition of the SOAP (as a protocol though, rather than search term which is way too generic):
spatie/data-transfer-object library provides very easy to use data-transfer objects for PHP. If you code is relying a lot on arrays, you’ll appreciate this different approach. And the more complex your arrays are, the more benefit you’ll get out of it.
Eric Hammond shares a super-handy tip for those of us who work with Amazon AWS via the command line:
I just learned about a recent addition to aws-cli: The
--queryoption lets you specify what parts of the response data structure you want output.
Instead of wading through pages of JSON output, you can select a few specific values and output them as JSON, table, or simple text. The new
--queryoption is far easier to use than
cut, or Perl, my other fallback tools for parsing the output.
Read the rest of his blog post for a few examples of how to use it.
“WordPress Configuration Cheat Sheet” is a collection of about 10 tips for a more secure WordPress configuration file. Obviously, not all of them can always be applied, but it’s a good idea to review your own settings once in a while and to disable unnecessary bits.
Last week I’ve attended the AWSome Day Athens 2018 (huge thanks to Qobo for the opportunity). There aren’t that many technology events in Cyprus, so I’m constantly on the lookout for events in Europe.
AWSome Day Athens is part of the Amazon’s AWSome Day Global Series, which are one day events organized all throughout the world. The events are usually for a single day, featuring the speakers from both Amazon AWS team and some of their prominent clients from the area. AWSome Day Athens 2018 was done in partnership with Beat.
Here’s a great post on why all those “PHP is dead” blog posts and forum threads are a complete load of crap.
Here’s the reality: nearly 80% of the internet is running on PHP as of 2018.
I guess PHP isn’t that dead after all.
PHP doesn’t scale. Riiiiiight. Wikipedia runs entirely on PHP and is the fifth most visited site on the internet. There’s also this little site called Facebook that uses PHP, ever heard of it?
My favorite quote from that blog post is this one:
PHP is the Fidel Castro of programming languages; after all Castro outlived five US presidents who ordered his assignation.
That’s a nice way to put it …
And while many of these are private, the majority, no doubt, are the Open Source projects. GitHub is indeed a cozy home for the Open Source Software, and the world wouldn’t be the same without GitHub.
Read their blog post for some cool statistics. Here are a few numbers to get you going:
- 100,000,000 repositories (obviously)
- 31,000,000 developers
- 1.1 billion (enough with the zeros already) contributions
- Founded in 2008 (10 years ago), raking up mere 33,000 repositories that year (who could have known?)
- Nearly one third of all repositories was created during the last year (insane growth)
- On average, 1.6 new repositories created every second
Knowing these numbers, and working with GitHub on a daily basis, it’s difficult to imagine how crazy are all the usual metrics (daily/monthly active users, visitors, page views, etc.).
I’m raising a pint to the next 10 years and many repositories. And really hoping their recent acquisition by Microsoft is going to help, rather than the usual.
#ProTip In your #PHP application add "composer show -mlDo –strict" to your build pipeline to let your build fail when there are outdated dependencies. You could for example only run it in feature branches to make sure your team keeps the dependencies up-to-date.
— Walter Tamboer (@waltertamboer) November 5, 2018
I think it’s slightly easy to remember with “composer show -molD -strict” (“old”, “mold”). Adding this to the test suite is a great tip too!
For other ways to show the outdated packages (using composer plugins), have a look at this StackOverflow thread.