222 private links
- Writing mode
- Gap in flex or grid layouts
- Flip with transform
- scroll-behavior: smooth;
- Scroll-snapping with
scroll-snap-type
for the container andscroll-snap-align
for the children - Resize elements both with
overflow: auto; resize: both;
- Line clamp based on how many lines is expected.
- Linear gradient and apply the gradient on text only
object-fit: cover
to avoid the fill effect of images. The image is not fully displayed thoughts.pointer-events: none;
make elements not selectable anymore.
Well I knew them 😁
A kind is a type constructor that takes a type, and produces a new type.
The quthor recreates a map function
The Mozilla Documentation Network published a curriculum to become a frontend developer.
It seems to contain relevant resources, also for confirmed developers.
What's your favorite solution for not-quite-component components?
With those I mean components that are more boilerplates to be expanded upon, instead of actual ready-to-go components you just tweak a few details of. Components that would grow too complex if you'd need to account for all possible interaction and design versions through props or CSS custom properties.
I think often the alternative is composability: ie. what's the minimum functionality that the cookie consent component could have? Could it be a wrapper that provides cookie-setting functionality to whatever UI component it wraps? Could it be a little JS module different components could import to reuse?
Now I get it.
How to apply css for RSS feeds
Maybe useful for later
Every couple of years in software development, the meta changes. Libraries and frameworks are rotated in and out of popularity, languages evolve and best practices change. These are some of my personal beliefs1 on what the current meta is, and what parts are worth adopting.
Now is better than never.
Although never is often better than right now.
- Use statically typed languages over dynamically typed languages
- Use automatic formatting
- Parse, don’t validate
- Use union types
- Parse, don't validate
- Avoid abstracting too early
- Be aware of monads and functors
- Accept that generative AI is here to stay
- Prefer integration tests over unit tests
- Be kind during code reviews
- Respect a candidate’s time
- Pair or mob program frequently
- Pick a git commit format and stick to it
- Use Dependabot and friends for dependency maintenance
- Write infrastructure-as-code
- Use platforms that allow developers to focus on the code
- Use queues as data sources
Find relevant indexes to set based on the usage of the postresSQL database.
Avoid a round trip for the slow start TCP algorithm. Depending of the internet connexion it can save 100s of ms.
This cookbook is intended for new Rust programmers, so that they may quickly get an overview of the capabilities of the Rust crate ecosystem. It is also intended for experienced Rust programmers, who should find in the recipes an easy reminder of how to accomplish common tasks.