Advertisement · 728 × 90

Posts by BellCube

Preview
Introducing CSS Grid Lanes It’s here!

Have you been wishing masonry layouts would just hurry up and arrive in CSS?? Well, happy holidays!

webkit.org/blog/17660/i...

3 months ago 281 70 12 13

❓"When can we expect this feature"

Please refrain from asking this question towards open source maintainers. You generally shouldn't "expect" anything. I don't often agree with DHH but his take on OSS being a gift, not something you're entitled to, is something I relate with.

3 months ago 82 9 8 0

I've gotten oddly good results by downloading an entire library/framework's docs MD collection, putting it in a folder, asking AI agents to make sure everything's set up and up to snuff, and repeat the prompt about 20 times. You can do multiple libraries at a time, too! Works well for project setup.

2 months ago 1 0 0 0

ESLint depends on sponsorships to pay maintainers. We're operating at a deficit with roughly a junior engineer's salary supporting a dozen maintainers plus awarding outside contributions. Please talk to your company about sponsoring ESLint:
https://eslint.org/donate

5 months ago 41 13 1 0

> Be web developer
> Uses Webpack v4 (reminder, v5 dropped in late 2020)
> Tries to upgrade package in 2025
> Package is ESM-only
> Complains about new package update and not about ancient Webpack setup

5 months ago 2 0 1 0

Help us make MDN even better for you! 📣

We’re running a short survey to understand how developers use MDN in their day-to-day work and learning.

⏱️ Takes ~10 minutes
✅ All questions optional
🔒 Responses are anonymous

Take the survey 📝
survey.alchemer.com/s3/8409929/...

5 months ago 5 4 1 0

(and, of course, provided the benchmarks don't show a decrease in performance! That would be bad!)

5 months ago 2 0 0 0

So long as it passes the test suites, I don't see why not!

5 months ago 2 0 1 0
Preview
Interop Feature Ranking Rank the web platform features you care most about

As an experiment, we (the Firefox team) wanted to try a new way to get feedback on which Interop proposals matter most.

So, here's a web app where you can rank the proposals you care about, giving us data we can use when reviewing which ones to champion.

interop-rank.jakearchibald.com

5 months ago 249 114 19 22
Preview
GitHub - BellCubeDev/eslint-plugin-react-no-manual-memo: ESLint plugin for React Compiler users to flag any usage of useMemo, useCallback, and React.memo—both to catch instinctive memoization and to b... ESLint plugin for React Compiler users to flag any usage of useMemo, useCallback, and React.memo—both to catch instinctive memoization and to bring memoization up in code reviews if manual memoizat...

Let the compiler do it for you? You might be interested in the ESLint plugin I finished up yesterday: github.com/BellCubeDev/...

Basically, it aims to flag any manual memoization where React Compiler would already be adding memoization for you

5 months ago 2 0 0 0
Advertisement
Preview
Separating Events from Effects – React The library for web and native user interfaces

useEffectEvent allows you to create "Effect Events" to split “Event” logic out of the Effect that emits it.

Similar to DOM events, Effect Events always “see” the latest props and state, so your Effect doesn't need to re-run when the values change.

react.dev/learn/separa...

6 months ago 22 2 4 2

L take. tabs are objectively better for developer a11y.

www.reddit.com/r/javascript...

5 months ago 33 4 9 0

Now THIS is what real innovation in the JS ecosystem looks like! 🎉

5 months ago 0 0 0 0
import { glob } from 'node:fs/promises';

const files = glob('**/*.md', {
  exclude: [
    '.git/**',
    '**/node_modules/**',
  ]
})

for await (const filePath of files) {
  console.log(filePath);
}

import { glob } from 'node:fs/promises'; const files = glob('**/*.md', { exclude: [ '.git/**', '**/node_modules/**', ] }) for await (const filePath of files) { console.log(filePath); }

Did you know that Node.js 22 has glob built in? No dependencies needed.

nodejs.org/api/fs.html#...

5 months ago 57 3 4 0
Preview
Move on to ESM-only Let's move on to ESM-only

ESM Only: gist.github.com/sindresorhus...

Anthony Fu's thoughts on it in 2025: antfu.me/posts/move-o...

5 months ago 2 0 1 0

Yes, yes, and yes—all the way yes!

5 months ago 1 0 0 0
Preview
GitHub - BellCubeDev/eslint-plugin-react-no-manual-memo: ESLint plugin for React Compiler users to flag any usage of useMemo, useCallback, and React.memo—both to catch instinctive memoization and to b... ESLint plugin for React Compiler users to flag any usage of useMemo, useCallback, and React.memo—both to catch instinctive memoization and to bring memoization up in code reviews if manual memoizat...

Just published an #ESLint plugin to catch cases of manual memoization (React.memo, useMemo, useCallback), reminding you to let #ReactCompiler work its magic ✨

Oh, and the docs include React Compiler Playground links so you can see the automatic memoization in action!

github.com/BellCubeDev/...

5 months ago 4 1 0 0

This may be half a year old, but I feel this in my SOUL

6 months ago 1 0 0 0

#nothankyou ( #JustKidding )

6 months ago 0 0 0 0
Advertisement

someone said of Wikipedia: “it is a thing that does not work in theory but turned out to work in practice”

6 months ago 817 96 3 3
Video

Did you know your MacBook has a sensor that knows the exact angle of the screen hinge?

It’s not exposed as a public API, but I figured out a way to read it and make it sound like an old wooden door.

6 months ago 7624 1955 116 167
Preview
npm Author Qix Compromised via Phishing Email in Major Suppl... npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.

A number of popular npm packages have been compromised and malicious versions published. Most of these have been removed from the registry. Astro indirectly depends on one that hasn't, so we have published 5.13.6 that pins a safe version.

6 months ago 60 15 1 0

Stealing this and spreading it as far and wide as I can.

7 months ago 0 0 0 0

You know, I wrote that, but I forgot that some people even still write #SQLInjection bugs... and this is why God gave us ORMs

8 months ago 2 0 0 0

ok so I checked the #FrontendDev tag after my last post and I don't think I've ever gotten self-promotion and grifter whiplash harder in my life.

8 months ago 1 0 0 0

React gave me powers.
Now I break things faster and with confidence.

#ReactJS #FrontendDev

8 months ago 5 1 0 0
Advertisement

OK so this thing is neat. Will almost certainly become a mainstay of my #FrontendDev workflow. Genuinely makes it easy to see how #responsive designs, well, respond to different screens in one go. And easy to remember to check different screen sizes (hobbyist problems).

bsky.app/profile/gith...

8 months ago 1 0 0 0

This looks very neat—I will definitely be checking this out 👀

8 months ago 0 0 0 0

I love CSS folks. They are soldiers of joy and delight. The world is burning and AI debates have people at each others throats and CSS peeps keep being like “check out this dancing turtle I made out of divs 🥰”

8 months ago 410 68 10 4

Like most refactors, it costs significantly less and feels significantly less boring if you simply put in the mental effort to do it right the first time.

8 months ago 0 0 0 0