387 private links
Clean code is not only concise code, but more importantly, it is readable. A rule of thumb when writing code, is to write code as if comments didn’t exist. The code should be self-explanatory.
- booleans should always have a prefix like "is", "has", or "was"
and other JS tips
There is an alternative to the SPA model: a new model with HTML only. It uses modern DOM-swapping interactivity libraries like Hotwire, HTMX, and Unpoly and... something that returns HTML as backend :)
Since version 7.0 has Ruby on Rails Hotwire backed-in!
5 stars rating sucks.
- Check if readers mark their readings as "favorite"
- What they enjoyed with this book. Every quality a reader chooses gets added to traits others have chosen.
- Add a "wished" list: users would mention what they would have liked to find in it
- The users are prompted to share their thoughts and receive suggestions to hone their feedback. The suggestions range dynamically, depending on a reader’s earlier choices.
Generating trust, meaningful usage of time, and clarity among users builds a safer environment for genuine conversation to spread, so comments should be protected from elements that detract from them.
and what readers can do today?. Write a review in 5 points (extracted from a book review):
- Explain why you chose your rating.
- List common qualities you enjoyed. Even better, write a sentence to say why you enjoyed specific qualities.
- Discuss a point (or several) that you found important.
- Mention what you wish you had known before.
- link to other that you think you best sum up your perspective.
In Layman’s terms, a container is a box in which we can put things inside and use them separately without affecting the central system (host).
👍 A simple definition
An example is provided about "traditional packaging" tools clashes when installing binary names: example of VSCode and Code - OSS.
Another issue:
For example, if an application recently updated, and requires dependency A version 1, but the distribution only ships dependency A version 0.9. It would not be ideal for upgrading the application, as the distribution will not meet the requirements.
The author suggests using containers to solve it using containers. He recommends Nix and Flatpak.
The only short-term issue is: toolkits, frameworks, and applications have to adopt these standards.
« La glorification de l'efficacité en toutes circonstances est une valeur qui sert en premier lieu les intérêts du capital, en nous poussant à considérer notre propre existence comme une machine productive qu'il faut donc sans cesse optimiser, pour réduire à leurs minimums les temps d'inactivité, d'inefficacité, d'improductivité. »
Pas faux.
faire les choses comme on veut les faire, pas pour être efficace, pas pour être productif, mais parce que ça nous procure de la joie.
Why not?
Nuclear waste going deep into the Earth so we don't have much trouble with it anymore.
Much like QEMU, new trends in the industry are taking it into a completely new direction: the rise of use cases around Edge compute, due to its limited resources and limited environments means that SQLite fits the bill perfectly.
It lists some distributed data project based on SQLite. The most promising project seems to be LiteFS: https://github.com/superfly/litefs. However SQLite is not open to contribution...
That'S why the author starts a new project, open to contribution named LibSQL (https://libsql.org/). It can be merged with SQLite if they change their code of conduct. They want to add async interfaces for example, or WASM support.
I agree with many folks here on HN in that
nullandundefinedhave important differences.undefinedappears when you access an invalid field, whilenullappears when you access a valid, but empty field.
Some principles:
- Work on something that matters to you more than money.
- Create more value than you capture.
- Take the long view. →There is no small here. (read the story about it)
You should regard money as fuel for what you really want to do, not as a goal in and of itself
That’s why a time like this, when the bubble is bursting, is a great time to see how important it is to think about the big picture, and what matters not just to us, but to building a sustainable economy in a sustainable world.
We should all be very concerned if some websites are indeed implying that anything other than a Chromium-based browser is now obsolete. The prospect of an Internet that is only accessible with Chromium-based browsers should horrify everyone.
Indeed
He uses ESLint and it is more than good enough.
In my opinion, what is the cause of our anxiety, emotions, sadness, anger, sense of disappoint, and so on is that we don’t fucking know our priority.
“Give me six hours to chop down a tree and I will spend the first four sharpening the axe.” — Abraham Lincoln
Lesson: learn a lot, as much as possible.
As John C. Maxwell said, “Live to learn, and you will learn to live.”
Code itself won't tell you about the decisions and rationale behind it, nor about about higher-level structures and abstractions. All this needs elaboration in documentation.
La question devrait être “Pour quelles raisons, malgré les preuves de corruption, les morts, l’horreur sociale et écologique, pensez-vous que cette Coupe du monde de football doit avoir lieu ?“.
En moyenne, les ouvriers ont travaillé plus de 10h/jour, 6/7 jours, et ont été payés 1€ de l’heure, quand ils ont eu la chance d’être payés.
Depuis que ce chiffre de 6 500 ouvriers morts a été publié par The Guardian début 2021, la FIFA et les organisateurs n’ont cessé de vouloir le minimiser, expliquant que ce n’était pas le vrai nombre de morts pour la Coupe du monde, que la façon de compter n’était pas la bonne, etc. Sauf qu’en croisant les sources, vous retombez bien sur cet ordre de grandeur, et retrouvez les mêmes méthodes que d’autres évènements tragiques pour en minimiser les impacts.
Si cela ne suffisait pas, lorsqu’il a été interrogé sur les 6 500 morts, le président de la FIFA Gianni Infantino a déclaré “les travailleurs ont gagné de la dignité et de la fierté“, puisque grâce à eux, les conditions de travail se sont améliorées depuis 2010 au Qatar.
Parmi les réactions les plus indignes, Karl Olive (député LREM) avait tenté de relativiser le nombre de morts, en prétextant que la construction de la Tour Eiffel “avait causé plus de 300 morts“. C’est faux, réfute l’AFP. Agnès Pannier-Runacher avait aussi menti le 11 septembre dernier au micro du Grand Jury RTL-Le Figaro-LCI
Et le post démontre pourquoi.
En réalité je ne décide pas vraiment. Même quand je le fais, ça ne suit pas toujours. Le travail c’est justement faire avancer tout le monde dans le même sens, pas décréter des choses dans son coin.
C’est à moi de faire en sorte que l’équipe aille dans le bon sens, d’expliquer comment et pourquoi, de convaincre, de guider et de former. Je peux éventuellement reprocher les décisions à ceux qui les ont prises, mais pas m’en retirer la responsabilité.
On parle agilité et ça sort peut être du cadre mais il y a quatre rituels que je ne sauterai pas, dans cet ordre d’importance :
- La rétrospective
- Le 1–1 avec le manager
- Le daily meeting avec l’équipe
- Les kick-off pour donner du sens et lancer les projets
- When you need to release a breaking change—any breaking change—you do it in a major version. Period. No excuses.
- You need to find a different way to communicate more significant project-wide changes and improvements. Major version numbers can’t do double duty as both breaking-change indicator and marketing hook.
About the second point, I would argue that giving an name is greater :D
Ubuntu uses it... Hahaha I read it as I write it.
Physical properties (margin, paddings) seems wrong: we need to specify intent in the design. That's why flow-relative or directions were introduced: inline-size, flexbox, block-size, ...
By graphing the acquisition of knowledge in SuperMemo, he has realized that in a single lifetime one can acquire only a few million new items.
Philosopher William James once wrote that mental life is controlled by noticing. Climbing out of the sea and onto the windy beach, my skin purple and my mind in a reverie provoked by shock, I find myself thinking of a checklist Wozniak wrote a few years ago describing how to become a genius. His advice was straightforward yet strangely terrible: You must clarify your goals, gain knowledge through spaced repetition, preserve health, work steadily, minimize stress, refuse interruption, and never resist sleep when tired. This should lead to radically improved intelligence and creativity. The only cost: turning your back on every convention of social life. I