Google Trends for REST, GraphQL and RPC

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 – Data transfer objects with batteries included

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.

Using aws-cli –query Option To Simplify Output

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 --query option 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 --query option is far easier to use than jqgrep+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

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.

brick/math – Arbitrary-precision arithmetic library for PHP

PHP is well-known for its rather basic interpretation of precision numbers and operations on those.  BC Match extension helps, but sometimes one needs more.  brick/math is a composer-installable library that helps with arbitrary-precision arithmetic.

HTTP/3 via QUIC

As we are still trying to get the grip with HTTP/2, the world is moving on.  Here’s the blog post with some initial details on HTTP/3 and QUIC.  Turns out, we moving away from TCP to UDP with encryption.

Here are more details from the CloudFlare blog post.

Let the fear, uncertainty, and doubt begin!

AWSome Day Athens 2018

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.

Continue reading “AWSome Day Athens 2018”

PHP is dead…Viva le PHP!

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 …

GitHub : 100 million repositories

GitHub is celebrating a very important milestone – they are now hosting 100,000,00 repositories.  This is truly a remarkable achievement!  Congratulations!

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.

Show outdated composer packages

A while back I shared a way to show outdated composer packages.  Today, I want to expand on it a little bit.  Thanks to this tweet:

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.