20 random bookmarks
Тут будут ссылки на всё-всё, что я найду интересным
Тут будут ссылки на всё-всё, что я найду интересным
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.
We backed up Spotify (metadata and music files). It’s distributed in bulk torrents (~300TB). It’s the world’s first “preservation archive” for music which is fully open (meaning it can easily be mirrored by anyone with enough disk space), with 86 million music files, representing around 99.6% of listens.
PostgREST is a standalone web server that turns your PostgreSQL database directly into a RESTful API. The structural constraints and permissions in the database determine the API endpoints and operations.
Sounds like a way to write less code. I skimmed through the reference, looks cool. PostgREST is written in Haskell for some reason though.
Everyone knows micromanagement is evil, but very few understand what exactly it is and what's a better alternative.
Staticcheck - The advanced Go linter. Contribute to dominikh/go-tools development by creating an account on GitHub.
By wrapping errors and building well-formatted error messages, we can keep better track of where errors are happening. I often just add the name of the function being called to my error messages, but we can make the message say whatever we want. For example, I’ll often include parameter information in the error so I know which inputs caused the error.
In this post I describe a couple of practice that makes the process of writing code faster, more predictable and straightforward
A proposal for the next generation of portable documents.
Из комментариев под статьёй:
Кто-то не очень понимает, что ORM в первую очередь - маппер. Да, и называется он Object-Relational Mapper. Отвечает за взаимосвязь между реляционными данными и объектно-ориентированным миром.
Тот, кто хотя бы раз сталкивался с опечаткой при загрузке поля в объект, уже не задаёт вопросы, оправдан ли ORM. Когда за тебя связку делает кодогенератор с нулевой возможностью ошибки на любой сложности схеме - начинаешь ценить надёжность такого решения.
Что касается SQL. ORM не может в принципе покрыть весь синтаксис SQL. И не должен, это не его задача. Его задача - сделать простым синтаксис 95% случаев, когда дальше джойна и WHERE ничего не надо. ORM не мешает использовать чистый SQL, а чаще всего может его дополнить, переводя результат сложного запроса в набор объектов.
Игорь рассказывает, как делает заметки.
Вложенные теги не нужны
Do not try to create a hierarchy (taxonomy) for your notes. It is not scalable and only works for narrow domain. Prefer tags.
Не понимал, зачем раскрашивать буквы в книжках, но Игорь пишет, что это полезно, когда есть комментарии
It is not useful to highlight without commenting. Writing summary is mandatory, highlighting is optional 1.
Просто напоминаю про прекраснейший блокировщик рекламы, который не только — внезапно — скрывает рекламу от любимого пользователя, но и старательно засерает статистику рекламным площадкам ("все кликают ВСЁ"), сводя на нет самый смысл персонифицированной слежки.
Powerful ASCII art editor designed for the Mac.
Для всех, кто знал SQL, но подзабыл
На этой карте показано, как далеко можно уехать по железным дорогам Европы за 8 часов
Сайт, работающий на солнечной энергии.
В зависимости от заряда страница окрашивается в жёлтый или голубой цвета.
Оверпасс с человеческим лицом или лицом нейросети.
Можно написать, что ты хочешь видеть на карте, а нейронка обработает запрос и выдаст результат.
Интерактивные статьи, объясняющие сложные вещи.
Мега круто!