20 random bookmarks
Тут будут ссылки на всё-всё, что я найду интересным
Тут будут ссылки на всё-всё, что я найду интересным
Experiment 5
Goal: Go 21 straight days without complaining or uttering non-constructive criticism. (If I catch myself doing it, I must start again at day zero.)
This was inspired by Will Bowen’s book A Complaint Free World, in which he claims that if you stop pronouncing your negative thoughts, you stop having those kinds of thoughts, and that if everyone did this the world would change completely.
What happened: It took 55 days to get 21 complaint-free days in a row, but I did it. This experiment really does teach you not to complain, and I think everyone should do it once in their lives. But it didn’t create much of an inner change. My negative thoughts were unaffected, I just got more polite about whether to pass them on to others. Complaining can even be a worthwhile form of bonding, as I learned while I was working a painful manual labor job with new friends, and could never join in on the lighthearted griping. Still, it’s better to never complain than to complain freely.
Where I am with it today: Even though the exercise didn’t eliminate internal negativity like the book promised, the experiment left me much more conscious about expressing needless negativity, and I am pretty good at keeping it to myself most of the time. I’m also more patient with others when they’re complaining. This is one experiment I would recommend to almost anybody.
The worst hobby
Bad things happen when you combine the self-affirming nature of beliefs with a habit of consuming lots of morally-charged content.
Many people make a daily routine of consuming large quantities of highly partisan content about “what’s going on” in “the” “world.” Enthusiasts of this hobby call it “staying informed,” and insist it isn’t just a personal habit but a civic duty.
This content consists of new beliefs (“news” for short) about what happened today or yesterday, presented with an authoritative tone and little moral ambiguity. They identify clear villains and clear implications. They often give instructions from hand-selected experts on how smart people should think about this.
Смотрелка заметок для осма
О том, в каком значении употребляется «мир» в романе «Война и мир»
Everyone knows micromanagement is evil, but very few understand what exactly it is and what's a better alternative.
Вывели с клиентом универсальную «инструкцию к терапии». На случай, если кому-то это нужно. Как часто и бывает, у него была популярная мечта сначала что-то поменять в голове, а потом зажить по-новому.
Your brain does not process information, retrieve knowledge or store memories. In short: your brain is not a computer
«Се́тунь» — малая ЭВМ на основе троичной логики, разработанная в вычислительном центре Московского государственного университета в 1959 году
Несколько правил, чтобы держать Git приличном виде.
Building great software is hard, and developer tools should be helping you without the headaches. RapidAPI for Mac is exclusively built on macOS, so you should easily get the hang of it. Every feature is built intuitively with quick mouse or keyboard shortcut access.
Бывает, проблему можно поправить функцией или макросом, но в код тянут библиотеку. Или можно купить готовое решение, но тимлид говорит: мы напишем свое через три месяца. Или разработчик насмотрелся видосов со свежей конфы и хочет проверить чужие идеи.
Index the independent
wherepredicates to improve hash join performance.
Indexing join predicates doesn’t improve hash join performance.
Indexing a hash join is independent of the join order.
Select fewer columns to improve hash join performance.
Hash joins do not need indexes on the join predicates. They use the hash table instead.
A hash join uses indexes only if the index supports the independent predicates.
Reduce the hash table size to improve performance; either horizontally (less rows) or vertically (less columns).
Hash joins cannot perform joins that have range conditions in the join predicates.
Pagefind is a fully static search library that aims to perform well on large sites, while using as little of your users’ bandwidth as possible, and without hosting any infrastructure.
A collection of one-off actions that improve your life continuously — however marginally.
Выступление про текст, кодировки, шрифты, эмодзи, лигатуры, диакритику итп.
Хорошее
If you want a single piece of advice to reduce your bug count, it’s this:
Re-read your code frequently. After writing a few lines of code (3 to 6 lines, a short block within a function), re-read them. That habit will save you more time than any other simple change you can make.
Сайт с заданиями для создания, редактирования, проверки данных ОСМ
Видео о том, как писать понятный код