PHPnews.io

Overview for 'programming'

In celebration of B-Sides

Written by Cal Evans / Original link on Feb. 6, 2020

Dear Reader, One of the most beautiful rock sons of my lifetime, “Beth” by Kiss, was originally released as the “B-Side” to “Detroit, Rick City”. I know I’m in the minority here but I will go to my grave believing that with “Beth”, Kiss hit it’s pinnacle. Yet, the relegated it to a B-side. The […]T…



WordPress, REST, and RegEx

Written by Cal Evans / Original link on Dec. 26, 2019

Dear Reader, I’m going to add this to “Using the WordPress REST API“, but I thought I would blog it here as well. I have a tendency to over think things. Today, I was working on a REST API endpoint for a client and it needed to have RegEx in it. I hate RegEx with […]The post WordPress, REST, and Re…


Generics in PHP using PHPDocs

Written by Ondřej Mirtes / Original link on Dec. 2, 2019

Two years ago I wrote an impactful article on union and intersection types. It helped the PHP community to familiarize themselves with these concepts which eventually led to intersection types support in PhpStorm.I wrote that article because the differences between unions and intersections are usef…


Great writers read…a lot

Written by Cal Evans / Original link on Nov. 29, 2019

Dear Reader, Have you ever watched one of those movies where a software developer (usually called a hacker) is sitting in front of 2 screens and on both of them code is scrolling by at a fast pace while the hacker nods knowingly like they are reading and understanding what they are seeing? Yeah, …


Disappointed

Written by unknown / Original link on Oct. 21, 2019

Want to view a single image on @imgur (literally its only job)? Good luck! You gotta successfully download (354KB) and run (1.21MB) of client-side React in order to get your image requested as resource 110 of 553. What should have been an IMG element became… this.@csswizardry - and don’t forget to …