350 private links
touch {hero,lightbox,form,another-component}.njk
A code snippet is provided for it. Well done.
Of the 2021 Redmonk top 10 languages, 8 of them have a handwritten parser. Ruby and Python use parser generators.
9 if we count Python 2.10 that will swap the parser to a handwritten one.
Research has shown that the ideal line length is about 65 characters. Anywhere between 45 and 85 is generally seen as acceptable, in the context of a roman alphabet.
The solution:
.wrapper {
display: grid;
grid-template-columns:
1fr
min(65ch, 100%)
1fr;
}
.wrapper > * {
grid-column: 2;
}
.full-bleed {
width: 100%;
grid-column: 1 / 4;
}
ch is a unit, like px or rem. It corresponds to the width of the 0 character in the current font, for the specified font size.
Display the content of possible issues with the
ct.css is a diagnostic CSS snippet that exposes potential performance issues in your page’s
tags.
Indicate the scenario in each unit test: something I should definitely do
HTML is too often forgotten in this case
A dev / hacker community and platform
Le jeu est disponible à cette adresse: https://across-multiverse.com/
Scalar types are types representing a single value. Moreover primitive types contains scalar types and some others. See: https://doc.rust-lang.org/std/index.html#primitives
Types that have the copy traits are said to have copy semantics. What this means is that when you pass them into a function, you pass a copy of that value into that function.
Non-primitive types do not have the Copy trait by default. This means they are subject to move semantics. When you pass them into a function, you move the value into that function. Without going into details (that I am still learning about myself), this pretty much means that when the function scope ends, the value is destroyed.
There are ways to deal with this, using a reference for instance.
It is the symbol & that says take the reference
Only one same job at a time ?
My solution to deal with this is to bind an IPv6 localhost ::1 socket to a given port. Only one process can do this, and thus it’s a very effective mutex. No lock files to cause havoc, no dealing with the dark and buggy corners of advisory file locking.
For shell scripts, simply replace the #!/bin/sh with #!/somewhere/bin/lock 2048 where 2048 is the port number you will use to enforce the lock (greater than 1024 if you do not want to deal with the hassles of privileged ports).
About floating summarized in a comic
And a better pattern instead
That’s where the main usage of #[inline] comes from — it enables cross-crate inlining.
The benefit is not without a cost — the compiler implements this by compiling a separate copy of the #[inline] function with every crate it is used in, significantly increasing compile times.
Okay 👌
And 5 tips about good inlining
Et pour savoir comment fonctionne une URN, il y a l'article Wikipédia 👍
Could be useful. The simple way to run all tests in one thread only via -- --test-threads 1, or only some tests via the serial_test crate.