222 private links
Excellent 😃
From a mediocre point of view, how can you get better and improve the rust code.
Even if you are mediocre and not lazy, then Rust shines by this example
Enforce the type of the column. Well I didn't know it was possible to insert every types into one column :D
How to update the overall programs installed on the computer.
How to update all astro projects with a github action.
In a nutshell, the purpose of REVENGE.CSS is to apply visual regressions to any markup anti-patterns. It makes bad HTML look bad.
Interesting.
Passing CSS variable errors can be useful too.
There are also useful patterns.
- use
[class]
and:not([class]]
- selecting ranges of content
- selecting all the elements except the one I am interacting with
- using nesting to style an element depending on context
Crazy stuff here, that can be used to emphasize letters or chunk of text.
They are different. HTML attributes are set on the HTML tags, whereas DOM properties are set in JS on the HTMLElement.
This post highlights the differences.
dbg!
is a macro dedicated to display value at runtime execution.
It is the console.log of Rust in some ways.
A great starter for new rust projects.
From the video https://www.youtube.com/watch?v=oxx7MmN4Ib0
The key is transmitted via the hash of the URL. Smart ! The rest is encrypted on the client side.
An example is provided with the crypto API, especially subtle.
Rights management in JS
How to remove XML comments in Javascript?
How regex can solve the issue but why they can be slow. There is a category for this weakness: CWE-1333 "Inefficient Regular Expression Complexity".
Other workarounds are also proposed, such as using efficient engines with backtracking.
It generates tokens for the css boilerplate, then it uses tailwind to generate utility classes.
Great step by step explanations to theming
Stay close to the standard. Expose APIs instead of wrapping them.
The author asks for less HTML-in-JS and demonstrates it with the Next meta tags example.
Whenever a problem can be solved by native HTML elements, the longevity of the code improves tremendously as a result. This is a much less alienating way to learn web development, because the bulk of your knowledge will remain relevant as long as HTML does.