This Week I Learned (2018-12-02)

  1. Java so fancy, I can catch multiple Exception types in one block with (MyException1 | MyException2 ex). This feature was introduced in PHP 7.1 and it’s probably been in Java for ages but I’m still discovering new goodies from Java 8+ every week.
  2. I can make the code snippet I shared last week even better with orElseGet, so that the filter to find my “good” match doesn’t get executed unless the “perfect” match is not found.
  3. There’s a new cloud hosting option purpose-designed for Symony apps, with the launch of SymfonyCloud.
  4. There’s an openapi-generator library for generating PHP client code from OpenAPI specs, and it looks pretty decent.
  5. A definition of serverless: “Serverless is when you do not pay for idle. You only pay when your application is actually doing something.” Just one gem from Rob Allen’s guest segment on Voices of the ElePHPant, where he discusses Slim Framework, APIs and serverless PHP.