20 random bookmarks
Тут будут ссылки на всё-всё, что я найду интересным
Тут будут ссылки на всё-всё, что я найду интересным
// Output the k! permutations of A in which the first k elements are permuted in all ways.
// To get all permutations of A, use k := length of A.
//
// If k > length of A, will try to access A out of bounds.
// If k <= 0 there will be no output (empty array has no permutations)
procedure permutations(k : integer, A : array of any):
if k = 1 then
output(A)
else
// permutations with last element fixed
permutations(k - 1, A)
// permutations with last element swapped out
for i := 0; i < k-1; i += 1 do
if k is even then
swap(A[i], A[k-1])
else
swap(A[0], A[k-1])
end if
permutations(k - 1, A)
end for
end if
Type safety and ergonomics, with full interop.
Enums and pattern matching
Error handling with ?
Nil safety
Clear error messages
On designing finger-friendly interactions
Whenever I remember to stop trying to have time, and instead focus on having worthwhile intentions, time seems more abundant. It seems to show up as needed when I’ve got a good intention going.
This makes sense, because the feeling of not having enough time doesn’t come from not having enough time. It can’t, because you always have zero time. It comes from the pain of valuing wishes and hopes over intentions, and what happens to you over who you are.
Little language inspired by Rust that compiles to Go.
Following are the main red flags in test assignments that should be avoided:
The assignment was read and understood in full.
All parts are implemented.
Industry-standard tools and frameworks are used.
The code is split into small, readable functions.
Variables have descriptive names.
Complex parts have comments.
Errors are handled, error messages are easy to follow.
Source files are organized reasonably.
The web interface looks nice.
There are tests.
Avoid these AI giveaways and spread the word!
В своём докладе Илья покажет, как плохие контролы могут доставлять мелкие неудобства, которые достаточно быстро доведут пользователя до белого каления. И объяснит, как делать нормальные кнопки, поля ввода, выпадайки, чекбоксы, радиокнопки, слайдеры и прочие календарики. Все тезисы проиллюстрированы примерами!
This brief highlights key statistics on men’s health. Men face significant health challenges, including shorter life expectancies, high suicide rates, and substantial losses due to drug overdoses and COVID-19. Despite these issues, there aren’t many public health goals that target men, and only one male-specific preventive measure is covered by the ACA. These facts underscore the need for focused attention on men’s health.
терапевтка принимала на дому, делала записи и вышла, например, в туалет, а клиентка залезла в эти записи и получила — правильно — скандал про«нарушение границ» и чуть ли не отказ работать дальше.
Правильный терапевт, разумеется, не только знал бы, что терапия — это место, где его границы будут нарушаться (и это будет оплачиваться), но и первым делом с интересом обсудил бы мотивы и фантазии клиента, зачем он это сделал и что хотел там найти. И только потом бы с любовью и принятием говорил про нарушение границ.
Twenty years ago we worried about performance. Now it is time to worry about maintainability, even though it often compromises performance.
Время от времени читаю, что люди страдают из-за разных часовых поясов в команде и с клиентами, путаются во встречах и вообще не понимают, как вести календарь.
Учу. Включите поддержку часовых поясов в календаре, если вдруг вы этого почему-то не сделали.
The most complete list on the web about cars, bikes, trucks and other vehicles seen in movies and series, image captures and information about them.
An index lookup requires three steps: (1) the tree traversal; (2) following the leaf node chain; (3) fetching the table data. The tree traversal is the only step that has an upper bound for the number of accessed blocks—the index depth. The other two steps might need to access many blocks—they cause a slow index lookup.
Я ещё так никогда не удивлялся регулярному выражению
Коллекция свободных SVG картинок