Daily Shaarli

All links of one day in a single page.

August 22, 2023

On the <dl> | Ben Myers

Using a description list dl with description terms dt and their description detail dd: so basically a list of key - value pairs.

Advangtages for screen readers instead of divs:

  1. The screenreader could tell the user how many name–value groups are in the list.
  2. The screenreader could tell the user how far into the list they are.
  3. he screenreader could treat the list as one block that the user could skip over if they're uninterested in it.
RSS Readers: Yet Another Case for Semantic Markup | Ben Myers

RSS reader does not load styles and relies on HTML semantic!

The Web Needs a Native .visually-hidden | Ben Myers

In the meantime:

.visually-hidden:not(:focus):not(:active) {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
8 Tips from the TS Wizard - using, as const, never - YouTube
Feeling Lucky – De Programmatica Ipsum

About a downfall of Google

Smaller JavaScript Using Encapsulation · Caolan

How class encapsulation or closure can reduce the bundle size

Ben's Humane Guide to Technical Blogging | Ben Myers
  1. It's perfectly fine to blog just for fun.
  2. Start out on a premade platform.
  3. If you decide to own your own platform, keep it boring.
  4. Use semantic markup.
  5. It's totally okay not to have a cadence.
  6. You'll be amazed what some people don't know yet.
  7. Sometimes, 80% > 100%
  8. It's okay to ignore some feedback.

I found that the cyclical nature and the pressure to write anything was burning me out.

Yeah, I have that too. That and the thing is I also didn't want to write 3 phrases, so I have never-ending articles that I never publish 😞

Note: get the firefox version

The "About config" is not available in the menu anymore since the last version.

The recommanded way to get the Firefox version is from "Open Application Menu" > Help > More troubleshooting information

“Depuis que je travaille en Suisse, je m’adonne au luxe et je ne compte pas les dépenses”
Home, Not So Sweet Home

I wasn't aware of the mess on Windows. I also agree that it will be more confortable for users to follow XDG conventions on *nix. The article explains well why it is such a mess.

Solution?

On *nix, the answer is straightforward: get everyone to adhere to the XDG Base Directory specification.

How (Not) to Build a Button | Ben Myers

A button style-reset in CSS:

button {
  display: inline-block;
  border: none;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1;
  background: transparent;
  -webkit-appearance: none;
}

and again: link for content and button for actions!

Vite code splitting that just works | Sambit Sahoo

The plan is to import the dependencies from package.json and modify the rollup output chunks to split each dependency from the vendor bundle. A vendor array should be there with the boot dependencies.