med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

339
active users

#usetheplatform

1 post1 participant0 posts today
Replied in thread

@meduz Hmmm, je préfère éviter PostCSS ou tout autre préprocesseur.

Je me fais vieux : je suis depuis quelques temps dans une phase #UseThePlatform. Donc, je me contente de CSS brut et de esbuild pour bundler le tout.

Les boucles Sass me manquent, mais pour le reste, je ne vois pas la moindre différence.

I enjoyed this article on #vim #minimalism, even though it's a bit too extreme for my taste. I too try to keep my setup as lean and use as much built-in functionality as possible. But I still think syntax highlighting and LSPs are genuinely useful. #LSP feedback should be entirely on-demand of course. And compiling commits with #fugitive is just so much faster and more flexible than with the #git #cli. But apart from that… right on!

yobibyte.github.io/vim.html

yobibyte.github.ioVim Setup

You think you need an SPA?
Try this and you feel no difference (often):
1) extremely fast loading page
2) onunload: store scroll offset e.g. in localStorage
3) at the bottom of the HTML restore scroll offset
4) make slow JS inside the page async and use nice spinners

And voilà a page load feels like an inline content update, just like an SPA.

If you want you can also add
@view-transition {
navigation: auto;
}
which makes it even smoother in browsers that support it

One of the teams I've been working with to climb the performance management maturity ladder is...Edge!?!

We build a *lot* of the browser out of web "stuff" these days (think bookmarks, history, downloads, settings, new-tab-page, etc.), and moving away from React to a modern Web Components + HTML-first architecture has had a *huge* benefit for users, particularly folks on low-end hardware:

blogs.windows.com/msedgedev/20

Microsoft Edge Blog · An even faster Microsoft EdgeOver the past month, you may have noticed that some of Edge's features have become faster and more responsive. That's because Edge is on a journey to make all user interactions in the browser blazing fast starting with some of our newest features and

Still lots of js packages out there for copy to clipboard functionality, feels like these are relics that should all be marked as obsolete, but that is work that is often not bothered with I guess.

developer.mozilla.org/en-US/do

navigator.clipboard.writeText('whatever');

There is a lot of talk about how #webDev is more complicated than ever, but in all these ways it is also simpler than ever with increasingly powerful and well adopted standards

MDN Web DocsClipboard: writeText() method - Web APIs | MDNThe writeText() method of the Clipboard interface writes the specified text to the system clipboard, returning a Promise that is resolved once the system clipboard has been updated.

⚛️ In an earlier post, I shared a (surprisingly) uncontroversial CSS hot take. I also cross-posted on LinkedIn and received generally amenable responses.

Yesterday evening, I threw together a proof of concept to convert valid JSON into namespaced CSS variables.

host.sonspring.com/json-to-css

^ Presupposing style values in a JSON format, it is pretty straightforward to output the flattened hierarchy as CSS variables.

🔥 CSS hot take: I'm beginning to think any design system that exposes style values via anything other than CSS variables — ex: Sass, JavaScript, TypeScript — is essentially doing it wrong.

I am of the opinion that publishing a standalone file with all the CSS variables used in a project is probably the most widely compatible future-facing approach.

#css #designsystems #usetheplatform

freecodecamp.org/news/what-are

freeCodeCamp.org · CSS Variables Definition – What are CSS Vars and How to Use Them?CSS variables are custom variables that you can create and reuse throughout your stylesheet. In this article, I will show you how to create CSS variables on the :root pseudo selector and show you how to access them using the var() function. How to Create a CSS Custom
Continued thread

[2/2]

This provides for some really nice #DX:

- Components can be freely shared between server and client
- Light, quick and simple. Does what I need, no more, no less.
- It's all spec-compliant standard JS, no weird syntax.
- No bundles, so browser cache gets fully and granularily leveraged

One thing I will say: Rust on the web is overkill. I know, it's tempting to have something like leptos and have a single language on both frontend and backend.

What you should be doing is using the web platform. Most work should be done on the server anyways, your front end code should only be used for progressive enhancement. The user shouldn't have to run JavaScript in order to use your site. Plain and simple.

#rustlang #usetheplatform #webdev #webdevelopment

Spent bit of time today replacing a React + Emotion ProgressBar <div> party with a #html <progress> element. #CSS for these is still a little tricky, definitely doable, but documentation seems somewhat lacking. My simple example.

codepen.io/aeischeid/pen/qBQVQ

This was used inside of a table cells for a large many row MUI DataGrid so just getting the Emotion styles out of the cell render was a noticeable performance bump, but reducing nodes also helped probably.

CodePenqBQVQmm...