PHPnews.io

Overview for 'evertpot'

HTTP/2 Push is dead

Written by Evert Pot / Original link on Nov. 12, 2020

One of the hot features that came with HTTP/2 was PUSH frames. The main idea is that if the server can predict what requests a client might want to make, the server can preemptively send request/response pairs to the client and warm its cache. This is a feature I’ve been very interested in for a lo…


Ketting v6: Using Hypermedia APIs with React

Written by Evert Pot / Original link on Sep. 9, 2020

We just released Ketting 6. This is the accumulation of about a year of learning on how to better integrate REST APIs with frontend frameworks, in particular React. It’s packed with new features such as local state management, new caching strategies, (client-side) middleware support and change even…



ECMAScript 4: The missing version

Written by Evert Pot / Original link on May. 28, 2020

In your build tools, you may have noticed that you have an ECMAScript 3 target, and 5 and up, but never a 4. Why is that? I thought it would be fun to dive into ECMAScript 4 a bit and see what we didn’t get. A brief history According to Wikipedia, the first draft of ECMAScript 4 was dated February…


A generic middleware pattern in Typescript

Written by Evert Pot / Original link on Apr. 15, 2020

I just realized this is the third time I’m writing async middleware invoker, I thought I would share the generic pattern for the benefit of others. I’m not sure if this is interesting enough for a NPM package, so I’ll leave it here for inspiration. The specific middleware pattern I am implementing,…


Common no-cors misconceptions

Written by Evert Pot / Original link on Mar. 19, 2020

Between tasks I spend a fair time on Stack Overflow, which is (truth be told) a love/hate relationship. There’s a few recurring questions that I feel deserve a longer explanation. Last time, I wrote about how to use MySQL in Node.js, but today I wanted to write about the fetch no-cors setting. What…