Daily Shaarli

All links of one day in a single page.

September 22, 2024

Hire HTML and CSS people

Every problem at every company I’ve ever worked at eventually boils down to “please dear god can we just hire people who know how to write HTML and CSS.”

This UX is awful? That UI looks old? Accessibility busted? Performance bad? Design team can’t ship stuff? Customers annoyed by tons of bugs? Everything takes too long to build? No time for small usability improvements?

Hire. HTML. And. CSS. People.

Fox's Laws of Software Development

The axioms of programming

  • small teams
  • difference between theory and practice
  • metrics
  • greenfield projects
  • employee turnover
  • "If anyone is remote, everyone is remote."
  • "Given long enough, all tech discussions turn into discussions about K8s."
  • two hard problems: People are the hardest problem in Computer Science; Convincing people that people are the hardest problem in Computer Science.
Neoghost emojis - Alex's Ko-fi Shop - Ko-fi ❤️ Where creators get support from fans through donations, memberships, shop sales and more! The original 'Buy Me a Coffee' Page.

A set of 90 emojis featuring a ghost, including pride variants.

If you are going to use these in a commercial space you are urged to leave a tip please. I offer these for everyone and do not release paid sets most of the time.

Examples on https://nederland.gay/objects/00c6d0b4-be9d-46f9-ad6c-d48a3eb7a295

Gestion du temps avec Temporal API JavaScript

La nouvelle API Temporal, successeur de Date pour la manipulation de date.

Cache Me Not, Cache Me, Cache Me Not | Hazel Weakly

How to cache? It depends of the context: push vs pull and owned vs user.

Push means that the asset is pushed to a central server and then distributed.
Pull means the asset is referenced and the central server has to “pull” the content.
Owned means it’s owned by the central server.
User means it’s user-submitted content.

Push + owned

Make everything push + owned content if possible. "It turns out, however, that you can make a shit ton of other stuff push + owned if you try a little harder. "

How does the client check if they're expired?
Use “stale while re-validate”. Ur welc’

In summary:

  • store asset
  • use stale-while-re-validate access patterns
  • should work offline

Push + User & Pull + Owned

Handle these with hash URLs. Hash the URL and treat it immutably.
Push + User: Forum comment -> hash URL
Pull + Owned: "in-content" assets. That’s where it’s user generated content, but not owned by the server.

Summary:

  • Load asset
  • Use infinite TTL + hashed URLs
  • Should not re-fetch across page/app reloads

Pull + User

That’s where it’s user generated content, but not owned by the server. Posting gifs into the chat is a prime example; linking a blog post and generating a media upload for that is another.

Guess what: this pattern fits for highly dynamic user-generated content, which means it’s the content users link to each other in-platform.

Stable URL, short TTL. YES, SHORT TTL. [...] Debounce + throttle? Sure. Micro-TTL? Yes. Cache? Never.