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 3target, 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 whatwe didn’t get.A brief historyAccording to Wikipedia, the first draft of ECMAScript 4 was datedFebruary 1999. …


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 leaveit here for inspiration.The specific middleware pattern I am implementing, is …


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 wantedto write about the fetch no-cors setting.What is …


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 curveballusers, and also a few framework changes.I thought it would be nice to list some of the things we’ve been working onthis month.Starter templateProbably the most significant…


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 intypescript. The framework competes with Express, and takes heavyinspiration from Koa. It’s called Curveball.If you only ever worked with Express, I feel that for most people thisproject will feel like a drastic step up. Express …


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 alteringhow I think about how my code should be written. My code is becoming morefunctional, and I’m incentivized to write things in a way that typescriptis more likely to catch.I wanted to share an isolated example of this.In this …