techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.9K
active users

#tc39

0 posts0 participants0 posts today

Every so often I check to see if CSS anchor positioning is ready. Almost there in Safari/Firefox. :blobcateyesR:

Popover API already makes things so much cleaner, so hopeful all the anchor implementations ship in a stable shape. Chrome's seems to work pretty great from testing my use cases with various menus.

Updating legacy code this weekend to match the spec 1:1 so the JS can be dropped after release.

Updating some older Typescript 4.x code to TypeScript 5 latest. Decorator heavy code, so nice to get it all refactored to ESDecorators Stage 3 syntax. Definitely an improvement, especially having `context.addInitializer`.

One minor headache in that I also had to update the webpack/ts-loader version to latest after noticing issues in the transpiled output.

Highly recommended article by @ryancarniato on #JavaScript Signals and scheduling of async funcs.

I had my own share of problems (in Lit) with the #TC39-#Signal proposal, but failed to blog about it so far. Glad others recognize it could be too early to standardize…

Scheduling Derivations in #Reactivity:

dev.to/this-is-learning/schedu

DEV CommunityScheduling Derivations in ReactivityMost developers think about Reactivity as an event system. You have some state. You update that state...

Anybody on #TC39 want to champion an ECMAScript proposal? Before I write a whole explainer document I’d like to make sure it isn’t wasted effort.

In short: Symbol.call, a well-known symbol, which can be used as a method name to make an object callable. Prior art: #Ruby’s call(), E’s run (), C++’s operator(). Allows your class’s instance to act as a Functor Object, and eases use of Method Object pattern. Gives us a way to make callables have their own “this.”

Twice a year, due to a very old system, many assumptions, user expectations, and a bright mind that decided to set a database in Europe/Amsterdam TZ, we have to deal with at least a bug regarding time issues. I cannot wait for Temporal to be fully implemented in all the platforms.

#javascript #temporal #tc39

developer.mozilla.org/en-US/bl

The MDN Web Docs logo, featuring a blue accent color, displayed on a solid black background.
MDN Web DocsJavaScript Temporal is coming | MDN BlogA new way to handle dates and times is being added to JavaScript. Let's take a look at Temporal, what problems it solves, the current state, and what you'll find in the new documentation about it on MDN.

Just noticed this #js behaviour found it interesting/surprising

```javascript
let o = {}
let i = 0;
o?.f?.(i++)
```

The value of `i` is `0` after this expression. I would have thought that the orders of evaluation would still lead to `i++` occurring even if the method call is short circuited. But `i++` never evaluates.

Replied in thread

@deebloo I think the world would be better if instead of moving "browser features" to JS build tools we should put the same effort/time/resources into standardizing the server interface as it prepared to deliver HTML to the browser so that we could get a single coordinated SSR solution.

The overall cognitive capacity of TC39 delegates is reflective of the last hour or two of the final day, day three. the off-topic channel has completely gone off the rails, and the on-topic channel is just barely hanging on. Contributions are constructive yet somehow also unhinged.

we're halfway through day two.

Three proposals advanced to stage 4 in today’s @TC39 plenary, which means they are now stable and have or will soon ship in browsers and tooling! :tc39: :javascript: :ablobcatbongo:

  • Iterator Helpers, a massive quality of life improvement when it comes to using iterators. You’ll no longer have to spread an iterator into an array to filter it for example!
  • JSON Modules, which have long been supported by bundlers and can now be used natively in ESM
  • Import Attributes (formerly known as Import Assertions), the mechanism that JSON modules are built on top of but with a wider range of use cases
Methods for working with iterators in ECMAScript. Contribute to tc39/proposal-iterator-helpers development by creating an account on GitHub.
GitHubGitHub - tc39/proposal-iterator-helpers: Methods for working with iterators in ECMAScriptMethods for working with iterators in ECMAScript. Contribute to tc39/proposal-iterator-helpers development by creating an account on GitHub.