tyler

星期二 08 晚上 七月 1o 2025

Bytes: Hot Spec Summer – ES2025 Edition

Bytes: Hot Spec Summer – ES2025 Edition

Cool Bits logo

Cool Bits

  1. If you want a preview of other JavaScript features in the TC39 pipeline, Luca Casonato and Andy Jiang from the Deno team wrote about what’s coming soon to a JS spec near you.

  2. CodeRabbit just launched a free VS Code extension that provides AI code reviews right in your IDE. It gives senior developer-level attention to every line of your code and one-click fix suggestions to clean up mistakes fast. [sponsored]

  3. Craig Brunner wrote on the Shopify blog about how they used Remix to make Shopify admin 30% faster at massive scale – 620K total files and 3 million lines of TypeScript supporting 67 million daily page views.

  4. DHH & friends created Omarchy, an Arch/Hyprland setup that provides “an opinionated take on what Linux can be at its best” – which sounds refreshing, since most of us are far more familiar with Linux at its worst.

  5. Turso just released the first alpha version of their full rewrite of SQLite in Rust. Yes, that sounds like a meme, but it’s real and it’s spectacular.

  6. Deno shared a new update on their JavaScript trademark battle with Oracle – which has felt like watching a full season of Suits. I guess that means Louis Litt is Oracle’s general counsel and Ryan Dahl is the Duchess of Sussex.

  7. Base UI just released the v1.0 beta of its unstyled UI component library built by the creators of Radix, Floating UI, and Material UI.

  8. Cloudflare just declared that today is Content Independence Day, and that they’re changing the default to block AI crawlers unless they pay creators for their content. It’s a noble cause, but I, for one, don’t want to live in a world where anyone can just make up their own holiday whenever they feel like it. Doesn’t anyone respect traditional family values anymore?


Pop Quiz logo

Pop Quiz: Answer

Here’s the code with more descriptive variable names.

let sum = 0;
const squares = [1, 2, 3, 4, 5].map((x) => (
  (sum += x), x * x
));

console.log(sum) // 15
console.log(squares) // [1, 4, 9, 16, 25]

This is a fun one. The weirdest part is probably the comma , operator.

If you’re not familiar, , evaluates each of its operands (from left to right) and returns the value of the last operand. This allows us to, in a single line, increase sum by x and return the square of x. When finished, we get the sum of the array as well as a new array of squares.

Bytes

Want us to say nice things

about your company?

Sponsor Bytes

or share it

Built with ❤️ by ui.dev

50 W Broadway Ste 333 PMB 51647 Salt Lake City, Utah 84101

发布者