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
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.
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.
How to configure SQLite for
Using a simple INT
with Unix millisecond timestamps is the best for performance.
COUNT
is slow, so it can be useful to keep track of them in a separate table.
Distributed SQLite databases can be achieved the same way as PostgresSQL: one writer and multiple replicated readers.
Great insights too :)
Handy :)
what if, instead of taking a mutable reference to the entire State, we only took a mutable reference to the fields we wanted?