Tag: javascript

Ways to remove event listeners

February 3, 2023 By Mark Otto Off

You’ve Got Options for Removing Event Listeners — Unnecessary event listeners can cause all sorts of odd problems so it’s good to clean them up when you don’t need them anymore. How? There are several approaches and Alex looks at their pros and cons. (once is…

SQL in your JavaScript

February 2, 2023 By Mark Otto 0

AlaSQL.js 3.0: Isomorphic JavaScript SQL Database — A SQL database you can use in Node.js and the browser. The interesting bit, for me, is how it opens up the idea of using SQL to query JavaScript objects – as in this example. “The library adds…

Astro 2.0 and TypeScript 5.0 beta

January 27, 2023 By Mark Otto Off

Astro 2.0: The Next-Gen ‘Islands’-Oriented Web Framework — 2.0 includes hybrid rendering (mixing of SSR and SSG outputs), type safety for Markdown & MDX, and an upgrade to Vite 4.0. Astro is worth exploring when performance is key as it works with popular frameworks but…

Automating the desktop with Node

January 26, 2023 By Mark Otto 0

Building Reliable Distributed Systems in Node — This post introduces the concept of durable execution which is used by a variety of companies and services to run reliable distributed systems. Temporal is a platform that coordinates workflows and durable jobs built around them. Loren Sands-Ramshaw IN…

Why document.write() is bad

January 20, 2023 By Mark Otto Off

Why Not document.write()? — Many moons ago, document.write was a mainstay of client-side JavaScript code, but it’s long been considered a bad practice – why? Harry digs in, noting that it “guarantees both a blocking fetch and a blocking execution, which holds up the parser…

We’re going on a memory leak hunt

January 19, 2023 By Mark Otto 0

Fixing a Memory Leak in a Production Node App — Kent encountered a variety of weird memory and CPU usage spikes in his Node-powered app and decided to figure out what was going on. This post walks through his complete journey, with plenty of side…

Java-Script Jarre

January 13, 2023 By Mark Otto Off

The State of JS 2022 — The State of JS is one of the JavaScript ecosystem’s most popular surveys and this time 39,471 folks took part giving us a snapshot of the tools, technologies, and language features people are using (or not using!) There’s a…

Comparing Node.js job schedulers

January 12, 2023 By Mark Otto 0

Node v18.13.0 (LTS) Released — Node’s LTS release gains File, part of the File API web specification, support for function mocking in the built-in node:test test runner module, support for externally shared dependencies based around JavaScript code (or WASM) as preferred by certain distributions, the…

Looking at both 2022 and 2023

January 6, 2023 By Mark Otto Off

We’re back for 2023 😀 As is our tradition, we’re taking a quick look back at the past year – this time led by a few choice retrospectives, then followed by the most popular articles and tools included in JavaScript Weekly in 2022. There’s sure…

Music to our ears

January 5, 2023 By Mark Otto 0

Gluon: Framework for Creating Desktop Apps from Sites — A new approach for building desktop apps from Web sites using Node and already installed browsers. Notably, Gluon supports both Chromium and Firefox. Deno can also be used in place of Node. Windows and Linux are…