348 private links
What are the common patterns of code smells?
And if one is recognized, how to avoid it?
and how to handle it properly?
It follows the SAML:
the identity provider gives some claims1. One that it provides is the NameID, inside of Subject.
What Atlassian/Jira is doing right is that they're actually using a static identifier to identify you, rather than your email address. This allows an incredibly smooth experience when any aspects of your attributes (such as email or name) change.
A C Compiler in 512 bytes
Impressive!
In order to create tokens (without meaning), the best possible options are:
- $font-14 (px)
- $font-100 (abstract 100s value)
So new tokens can be
- $font-16, $font-36
- $font-150, $font-125, etc..
Names are then important! --level-3, --spacing, etc...
- container queries
- style queries (only chromium)
:has(FF catches up)nth-ofselectortext-wrap: balance(only chromium): definitely a good oneinitial-letter(only chromium and safari)- dynamic viewport units (svh, sve, lvh, lvw, dvh, dvw)
- wide gamut color spaces
color-mix- CSS nesting (FF have to implement it)
- CSS trigonometric functions
- individual transform properties (hey that was supported by FF since v72...)
- popover and selectmenu tags are WIP
and more
How to structure a website that is not built with an SPA style?
-
cargo build --release -
set
strip = trueto profile.release in cargo.toml -
set
opt-level = "s"to optimize for size instead of runtime speed -
set
lto = trueto enable link-time optimization -
set
codegen-units = 1to maximize size reduction but it results in slow builds -
use cargo bloat to understand which dependencies are taking up space
Implement a default builder pattern. It looks efficient.
A french guide on the rust language. It is not complete as the official documentation but provides a good start with lot's of the rust's features.
Another personal blog :)
Succinct but more detailed than a cheat sheet.
A nice explanation of python.
EDIT 2023-05-19: I will read it when I will use the language seriously again.
How to rotate items to test every day
Play the game by using API calls to deliver frets across the galaxy. One funny thing is the amount UIs users have built to get a grasp on the data :D
A text with a dynamic size depending of the container width:
.container {
container-type: inline-size;
}
.fluid-type {
font-size: clamp(1rem, 4cqi, 3rem);
}
Strategy 2: Grow From a Base Font Size with calc()
font-size: calc(var(--font-size-base) + var(--font-size-fluid, 3cqi));
An upper-bound size can be set with min if needed.
Strategy 3: Generate Styles Using a Type Scale Ratio
A parody of JQuery :D
A great maturation of Vue 3!
The reason behind Atomic CSS
UnoCSS is an engine instead of a framework because there are no core utilities - all the functionalities are provided via presets or inline configurations.