From 2ality.com
Mastodon’s weaknesses and how to fix them
4 8
As a web developer, I love Mastodon: Since Twitter became X, there are enough web dev people here. I’m happy with the web app – it even has several nice touches where it is better than Twitter. I’m not locked into an ecosystem that is controlled by a single company. That being said, Mastodon...
on Wed, 12PM
From 2ality.com
0 0
In this blog post, I’d like to explain how to get started with Mastodon.
on Nov 16
From 2ality.com
0 0
In this blog post, I’d like to explain how to get started with Mastodon.
on Nov 7
From 2ality.com
ECMAScript proposal: Set methods
0 0
In this blog post, we examine the ECMAScript proposal “Set methods for JavaScript” by Michał Wadas, Sathya Gunasekara and Kevin Gibbons. It introduces new methods for Sets.
on Jul 25
From 2ality.com
ECMAScript proposal: Set methods
0 0
In this blog post, we examine the ECMAScript proposal “Set methods for JavaScript” by Michał Wadas, Sathya Gunasekara and Kevin Gibbons. It introduces new methods for Sets.
on Jul 2
From 2ality.com
Minimal React: getting started with the frontend library
0 0
This blog post explains how to get started with React while using as few libraries as possible.
on Jul 1
From 2ality.com
Ecma International approves ECMAScript 2024: What’s new?
0 0
On 26 June 2024, the 127th Ecma General Assembly approved the ECMAScript 2024 language specification, which means that it’s officially a standard now. This blog post explains what’s new.
on Jun 28
From 2ality.com
Reading streams via async iteration in Node.js
0 0
Node.js 10 was released on April 24, 2018. This version provides experimental support for asynchronously iterating over readable streams. This blog post explains how that works.
on Jun 26
From 2ality.com
ECMAScript 2020: the final feature set
0 0
Update 2020-04-02: Today, the ES2020 candidate was released, with the final feature set of that version. This blog post describes what’s new.
on Jun 26
From 2ality.com
ECMAScript 2024 features: resizing and transferring ArrayBuffers
0 0
In this blog post, we examine ArrayBuffer features that were introduced in ECMAScript 2024: “In-place resizable ArrayBuffers”, proposed by Shu-yu Guo “ArrayBuffer.prototype.transfer and friends” proposed by Shu-yu Guo, Jordan Harband and Yagiz Nizipli
on Jun 23
From 2ality.com
ECMAScript proposal: iterator helpers
0 0
In this blog post, we look at the ECMAScript proposal “Iterator helpers” by Gus Caplan, Michael Ficarra, Adam Vandolder, Jason Orendorff, Kevin Gibbons, and Yulia Startsev. It introduces utility methods for working with iterable data: .map(), .filter(), .take(), etc. The style of the proposed...
on May 23
From 2ality.com
ECMAScript 2025 feature: duplicate named capturing groups for regular expressions
0 0
In this blog post, we take a look at the ECMAScript 2025 feature “Duplicate named capturing groups” which was proposed by Kevin Gibbons. It’s a feature for regular expressions that enables us to use the same capturing group name more than once.
on May 21
From 2ality.com
ECMAScript 2023 feature: Symbols as WeakMap keys
0 0
In this blog post, we take a look at the ECMAScript 2023 feature “Symbols as WeakMap keys” – which was proposed by Robin Ricard, Rick Button, Daniel Ehrenberg, Leo Balter, Caridy Patiño, Rick Waldron, and Ashley Claymore.
on May 19
From 2ality.com
ECMAScript proposal: `Promise.withResolvers()`
0 0
In this blog post we take a look at the ECMAScript 2024 feature “Promise.withResolvers” (proposed by Peter Klecha). It provides a new way of directly creating Promises, as an alternative to new Promise(...).
on May 16
From 2ality.com
0 0
ES6 arrow functions are often a compelling alternative to Function.prototype.bind().
on Apr 4
From 2ality.com
Currying versus partial application (with JavaScript code)
0 0
Currying and partial application are two ways of transforming a function into another function with a generally smaller arity. While they are often confused with each other, they work differently. This post explains the details.
on Apr 4
From 2ality.com
ECMAScript proposal: source text access for `JSON.parse()` and `JSON.stringify()`
0 0
In this blog post, we look at the ECMAScript proposal “JSON.parse source text access” by Richard Gibson and Mathias Bynens. It gives access to source text to two kinds of callbacks: Revivers, callbacks that are passed to JSON.parse() and post-process the data it parses. Replacers, callbacks that...
on Mar 30
From 2ality.com
TypeScript: validating external data
0 0
Data validation means ensuring that data has the desired structure and content. With TypeScript, validation becomes relevant when we receive external data such as: Data parsed from JSON files Data received from web services In these cases, we expect the data to fit static types we have, but we...
on Feb 8
From 2ality.com
parseInt() doesn’t always correctly convert to integer
0 1
In JavaScript, all numbers are floating point. Integers are floating point numbers without a fraction. Converting a number n to an integer means finding the integer that is “closest” to n (where “closest” is a matter of definition). You might think that parseInt() performs this task, but it...
on Jan 26
From 2ality.com
`structuredClone()`: deeply copying objects in JavaScript
0 0
Spreading is a common technique for copying objects in JavaScript: Spreading into an Array literal to copy an Array Spreading into an Object literal to copy a plain object Spreading has one significant downside – it creates shallow copies: The top levels are copied, but property values are...
on Jan 20
From 2ality.com
Temporal: getting started with JavaScript’s new date time API
0 0
Date, JavaScript’s current date time API is infamously difficult to use. The ECMAScript proposal “Temporal” is a new and better date time API and currently at stage 3. It was created by Philipp Dunkel, Maggie Johnson-Pint, Matt Johnson-Pint, Brian Terlson, Shane Carr, Ujjwal Sharma, Philip...
on Jan 8