🪜 Decorating with Dr. Axel

October 21, 2022 By Mark Otto Off

Together with  Editaud

Metaprogramming with the 2022-03 Decorators API — If you’re a Python developer, you’ll be miles ahead on this idea. If not, decorators provide a way to manipulate classes, fields, methods, and accessors at define time to give them extra, amended, or wrapped functionality or behavior. The proposal is at stage 3 at TC39, is supported by Babel, and will soon be supported by TypeScript, so why not get up to speed with Dr. R.

Dr. Axel Rauschmayer

Node.js 19 (Current) Released — We did a big feature in yesterday’s Node Weekly, but in short, this is the new, edgiest ‘Current’ non-LTS Node.js release which gains a Nodemon-esque --watch mode, HTTP KeepAlive on by default, stable WebCrypto API, and a bump to V8 10.7. Node 18 goes Active LTS next week.

The Node.js Project

A Real World React to htmx Migration Story — htmx is a library that ‘turbo charges’ HTML by letting you use numerous JS and Web API features via custom HTML attributes. Here a Python-based team shows how it worked better for them than a more common React approach.

David Guillot

📒 Articles & Tutorials

Secure JavaScript URL Validation — Though conforming to a standard structure, URLs come in all shapes and sizes and you may not want your app to accept URLs that are malformed or otherwise problematic. This post covers some of the considerations involved.

Mannan Tirmizi (Snyk)

‘What if the Team Hates My Functional Code?’ — I think most folks who’ve been bitten by the functional programming bug have eventually run into problems when convincing other developers it’s the way to go. James provides some soothing perspective.

James Sinclair

Why Does JSON.parse ‘Corrupt’ Large Numbers? — Jump into your JavaScript console of choice and try JSON.parse('{"count": 9123372036854000123}') .. you might not get the result you expect, and Jos set out to figure out why and how to resolve it – ‘quite a juicy topic’, he promises.

Jos de Jong

🛠 Code & Tools

Find JavaScript Jobs with Hired — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It’s free for job-seekers.
Hired