Tag: javascript

Using ML to rewrite a test suite to Playwright

September 8, 2022 By Mark Otto 0

🤖  Rewriting Tests from Cypress to Playwright with AI — Gajus needed to move an entire integration test suite from one framework to another – boring and laborious job, right? Gajus put AI to work, first in the shape of GitHub’s Copilot, but then using…

David’s handy JS debugging tip

September 2, 2022 By Mark Otto Off

12 Useful JavaScript Data Grid Libraries — A rundown of some data grid libraries for providing spreadsheet-esque views over datasets – Zara also shares her recommendations on things to consider when making a choice. Zara Cooper IN BRIEF: DEBUGGING TIP: David Walsh shows off Chrome’s rather…

The ins and outs of ‘bin’ scripts

September 1, 2022 By Mark Otto 0

Tinybench: A Tiny and Simple Benchmarking Library — No dependencies, but uses whatever precise timing capabilities are available (e.g. process.hrtime). You can then benchmark whatever functions you want, specify how long or how many times to benchmark for, and get a variety of stats in return.…

The future JavaScript features at TC39

August 26, 2022 By Mark Otto Off

If you missed my note two weeks ago, we took last week off, so you didn’t miss any issues 🙂 We’re now back every week until Christmas (121 sleeps to go..)__Peter Cooper, your editor. When Alternative JS Runtimes Grow Up: Deno Has Big Changes Ahead,…

Popular Node.js practices to reconsider

August 25, 2022 By Mark Otto 0

Popular Node.js Patterns and Tools to Reconsider? — Yoni is well known for his work in cataloging Node best practices but he thinks we should reflect upon entrenched approaches over time. Here he presents nine common approaches to reconsider, including the use of Dotenv, Passport.js,…

A way to automatically generate regexes from examples

August 12, 2022 By Mark Otto Off

☀️ We’re taking a rare week off next week for a brief summer vacation so there won’t be any issue on August 19 – we’ll be back on August 26, complete with a sun tan wind burn, and all the latest JavaScript news, of course…

Native modules become ‘built-ins’

August 11, 2022 By Mark Otto 0

☀️ We’re taking a week off for a brief summer vacation and will be back on August 25, so when you don’t get an issue of Node Weekly next week, it’s our fault, not yours 😉__Peter Cooper, your editor. How To Use Multithreading in Node.js…

Genius misuse of WOFF 2 and Brotli to win a JavaScript contest.

August 5, 2022 By Mark Otto Off

JS1024 2022 Competition Winners — JS1024 is a ‘code golfing’ contest where you get 15 days to create a JavaScript or GLSL program within 1024 bytes. This results in lots of creative ideas, complete with fantastic (non-minified) source to check out. The winning JS entry…

A new way to query your dependencies.

August 4, 2022 By Mark Otto 0

Introducing the New npm Dependency Selector Syntax — Another week, another new npm command! npm query is a new top-level command (as of npm v8.16.0) that lets you query and filter the dependencies of your project with a CSS-like dependency selector format so you can…

Douglas Crockford on ‘retiring’ JavaScript

July 29, 2022 By Mark Otto Off

Roll Your Own JavaScript Runtime — Bun, Rhino, Deno, Node, and now Blueboat.. is creating your own JavaScript runtime environment the new “hello world”? 😆 Not quite, but this is a fun walk through the bare basics of the process, and you’ll have a Rust,…