PHPnews.io

Overview for 'evertpot'

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…


Curveball - March updates

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

Curveball is the freshest new microframework for Typescript. Since the last big announcement, there’s been a number new curveball users, and also a few framework changes. I thought it would be nice to list some of the things we’ve been working on this month. Starter template Probably the most signi…


Curveball - A typescript microframework

Written by Evert Pot / Original link on Feb. 27, 2020

Since mid-2018 we’ve been working on a new micro-framework, written in typescript. The framework competes with Express, and takes heavy inspiration from Koa. It’s called Curveball. If you only ever worked with Express, I feel that for most people this project will feel like a drastic step up. Expre…


Typescript is changing how I write code

Written by Evert Pot / Original link on Feb. 21, 2020

Typescript is not just Javascript + types. Using TS more is slowly altering how I think about how my code should be written. My code is becoming more functional, and I’m incentivized to write things in a way that typescript is more likely to catch. I wanted to share an isolated example of this. In…