563 bookmarks
Тут будут ссылки на всё-всё, что я найду интересным
Тут будут ссылки на всё-всё, что я найду интересным
Есть фееричное по своей глупости выражение: на правду не обижаются. Это верно: обижаются не на правду, а на бестактность, грубость, фамильярность, непрошенное мнение и все то, что сопутствует правде.
Если собеседник обижается на правду, стоит подумать, как лучше ее донести и вообще — стоит ли ее доносить.
For me, this imagined audience is more important than getting it right. Which is why I write my blog posts with the wiki spirit. All these sites are pretty similar, in essence. Blog, wiki, digital garden, Zettelkasten, there’s not enough difference to draw lines. It’s all a question of intent, of culture, of belonging. The blog spirit is to write pages over time, and they disappear into the archive. The digital garden spirit is to write unfinished articles and papers, to be refined or not. The Zettelkasten spirit is to follow the trail of thoughts you thought and add new branches, small notes with new thoughts leading to more thoughts on new notes. And the wiki spirit is to write and edit online, to hit the Save button and then it’s live. There is no editor, there is no draft. Wiki is like brutalism in content management. I can see the page sources and the end result is obvious and full of that old web power. It’s not an app. The software has no idea of process. The wiki spirit is to open that window, write the text and hit save. And then I read it again, and edit it. And tomorrow, I read it again, and edit it. And next week, perhaps, I read it again, and edit it.
I no longer live in the Wiki Now. The pages are intended for future readers but they are not timeless. I add timestamps all over the place. The blog spirit is strong. The pages do disappear into the great compost of thoughts. The archive gobbles them up. I do go back but I don’t rewrite the pages completely. I’m more likely to simply add a timestamp and some thoughts like I did on this page.
Я согласен с тем, что логику нужно разносить по сервисам. Но сервисы должны использовать общую шину данных: базу, очередь сообщений, файлы в S3 в конце концов. Гонять друг другу JSON выглядит хорошо в теории, но на практике — фу.
Условный Постгрес выплюнет миллион записей за доли секунды. Забрать этот же миллион из другого сервиса — приключение на неделю. Тут и метрики, лимиты, квоты, сетевые спайки, etc… А когда таких запросов несколько, сервис ложится спать.
Fast, powerful, yet easy to use template engine for Go. Optimized for speed, zero memory allocations in hot paths. Up to 20x faster than html/template
Бирман общается с людьми. Как по мне, довольно трушный олдскульный формат подкаста.
Темы иногда мега странные, но мне нравится, что их обсуждают.
Сначала было про культуру общения в Интернете, а стало про культуры общения в разных странах.
Николай общается с людьми, которые что-то где-то достигли. Иногда интересно, но часто душно.
Кристина общается с другими подкастерами, раскрывая внутреннюю кухню.
Кристина и Егор обсуждают знакомства и отношения.
Кристина обсуждает с гостями их провалы в жизни.
Егор, психолог, общается с людьми на психологические темы.
SQL Polyglot is a quick way to see if a particular SQL feature is supported in different database systems. Write a query and see it run anywhere from PostgreSQL to DuckDB without leaving your browser.
package src
type config struct {
// Required
foo, bar string
// Optional
fizz, bazz int
}
// Each optional configuration attribute will have its own public method
func (c *config) WithFizz(fizz int) *config {
c.fizz = fizz
return c
}
func (c *config) WithBazz(bazz int) *config {
c.bazz = bazz
return c
}
// This only accepts the required options as params
func NewConfig(foo, bar string) *config {
// First fill in the options with default values
return &config{foo, bar, 10, 100}
}
func Do(c *config) {}
You’d use the API as follows:
package main
import ".../src"
func main() {
// Initialize the struct with only the required options and then chain
// the option methods to update the optional configuration attributes
c := src.NewConfig("hello", "world").WithFizz(0).WithBazz(42)
src.Do(c)
}
Task is a task runner / build tool that aims to be simpler and easier to use
version: '3'
tasks:
hello:
cmds:
- echo 'Hello World from Task!'
silent: true
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.
довольно годная web-based рисовалка мышкой помещений, планировок итд . Справился даже такой дебил как я. Набор компонентов не суперобширный, но для примерного понимания где розетки, где выключатели, где батареи - вполне неплохо.
Единственный минус (или я просто не понял) - не нашёл режима просмотра в 2D как всё накладывается друг на друга. Только при ревью в 3D заметил что у меня розетка прямо на воротах, другие две розетки спрятаны за конвектором, а один из светильников смонтирован прямо на стекло окна.
За 500 рублей на месяц - вполне неплохое решение для того чтобы быстренько нарисовать спальную, кабинет или гараж. Дают нарисовать пять проектов. На выходе - PDF-альбом на 10-12 листов с планами, размерами итд, в целом похожие на те, что делают полноценные дизайн-студии.
In this post I describe a couple of practice that makes the process of writing code faster, more predictable and straightforward
This idea is pretty simple, in principle: sometimes we miss a good-enough solution because a not-quite-good-enough solution is already out there and in use.
the best solution would be to show the application's previous state and point out that the application is still loading
Если для придания уверенности в себе вам нужен карманный ствол — я рекомендую обратиться к психологу. Это дурной симптом.
Время от времени читаю, что люди страдают из-за разных часовых поясов в команде и с клиентами, путаются во встречах и вообще не понимают, как вести календарь.
Учу. Включите поддержку часовых поясов в календаре, если вдруг вы этого почему-то не сделали.
На клавиатуре есть кнопка «Капслок». Если её случайно нажать, то компьютер печатает большими буквами. Такое нормальному человеку не нужно никогда, поэтому во избежание ошибок эту кнопку нужно отключить.
Всё так, только на капслок у меня стоит смена языка.
Одна из лучших фич Мака, про которую как обычно никто не знает — зум.
Бывает, вы с приятелем пришли в кафе, и он у вас спрашивает, какой тут пароль от вайфая. У вас подключен компьютер, потому что вы тут были год назад, но пароль вы не помните.
Андрей Леман рассказывает о теории моральных ошибок, которая является наиболее влиятельной формой обоснованной критики морали в современной философии.
Trying to make the case for permanent irrevocable digital identities, which unfortunately today, by de-facto, are email addresses.
Агрегатор по производителям товаров разных направлений, произведённых в России. Можете выбрать направление производства, тип продукции и даже регион производства.
Например, можете поискать мороженое, которое делается прямо у вас.
Thanks to generics, there are some interesting new ways to program in Go. This article explains how we can use functional programming techniques like Map, Filter, and Reduce, and what kind of problems they might help us to solve.
Несколько правил, чтобы держать Git приличном виде.
By default, the apps on your phone are connecting to the internet even when your not using them. It's a feature called Background App Refresh and it is mostly not very useful.
Может, вы сидели и думали, что в Осло нет трамваев. А они есть!
Most people are not autonomous in their use of computers to solve their problems because they cannot use the languages listed. They must hope for an app to solve their problem. But they can use a spreadsheet to solve their problem!
The sad reality is, however, that today we buy computers that essentially boot into the app store.
Few people know how to use computers.
from bouncepaw:
Alex tells us that, for him, baking and cooking are easier than programming and soldering, because the errors there average out. As for me, this is completely inverse.
In programming, an error never fixes itself. You can observe it and fix it, you can write tests. You can run the program multiple times. It's you who fixes it, and you can understand how it's done. It's measurable!
Meanwhile, cooking is a nightmare. Burning something is routine for me. Is that too much or too little oil? For how long do I fry? What do I do with these spices? Do they really affect the taste? And to observe something, I can't rely on symbolic things like text. No, I have to look (is this color good? No idea!), smell (as if I know the difference) and taste (nothing more inaccurate).
I'm happy when something can be cooked with a timer. 15 min for buckwheat? I'm in. I'm more happy when the time is short. 4 min for this thin kind of spaghetti? Already boiling water!
I mean, even boiling water is not simple. My parents told me to wait until the correct bubbles appear. I'm waiting for the scary ones. Also, salt is supposed to make it boil faster. How much salt do I add?
And I didn't even talk about plants, which Alex also considers easy. They're not 😭
Totally agree!
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.
A proposal for the next generation of portable documents.
I therefore officially announce 2024 to be the year when the square checkbox has finally died.
Казалось бы, программисты — люди с точным мышлением, а в жизни все наоборот: в голове кисель.
Для меня выход из ситуации простой: трусы или крестик. Либо ты выходишь из разработки со словами: хорош, я в этом не участвую. Либо пишешь качественный код, понимая, что мир огромен, и у тебя нет возможности контролировать, кто и как его использует. Оба варианта честные и снимают все вопросы.
Беру любой JSON и вижу, как его можно упростить, убрав лишнюю вложенность. Вдвойне обидно, что на эту вложенность кто-то тратил время, а она не нужна!
Набор инструкций, охватывающий наиболее распространенные проблемные ситуации, в которые может попасть работающий человек или работодатель.
Раскадровка сняла видео про мусор и переработку!
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.
Libre audio books. Recommended by Flancian.
Хотя обычно дома рисовать очень просто — прямоугольник с building=yes, — на практике постоянно всплывают какие-то сложности. Danidin9, автор картинок про дома в Петербурге, наглядно объясняет
Almost all mattresses should not be flipped — instead they should be rotated 180° so the foot of the mattress is now at the head.
Количественным числительным наращение не положено, но все его упорно пихают, меняя смысл.
Нагавкать на слона и не получить по еблищу — это не свобода, и даже не доблесть; это бретёрство, жалкое позерство, свойственное пижонам и студентам.
Первая — программист закладывает абстракции там, где не следует.
Бритва Оккама ?
Вторая проблема — наоборот: программист не оставляет шанса поправить его код.
Бывает, проблему можно поправить функцией или макросом, но в код тянут библиотеку. Или можно купить готовое решение, но тимлид говорит: мы напишем свое через три месяца. Или разработчик насмотрелся видосов со свежей конфы и хочет проверить чужие идеи.
если в процессе обсуждения архитектуры вы пришли у выводу, что в проекте потребуется настоящее горизонтальное масштабирование — вам не обойтись без конечных автоматов (так-то лучше вообще любую бизнес-логику строить именно на конечных автоматах, но в автономной системе можно подкостылить и без них, а вот в кластере — уже никак)
Так или иначе, если вы хотите оказаться готовым отмасштабироваться в горизонталь — стройте критические процессы на конечных автоматах и полностью асинхронно
Зато асинхронные взаимодействия поверх FSM — сделают в дальнейшем масштабирование безболезненным, ведь в такой парадигме не имеет никакого значения, на какой ноде выполнится код, отвечающий на запрос.
Gio is an open source library for creating portable, immediate mode GUI programs for Android, iOS, Linux, Windows, macOS.
Standard Ebooks is a volunteer-driven project that produces new editions of public domain ebooks that are lovingly formatted, open source, free of U.S. copyright restrictions, and free of cost.
A linter for Go that finds nil panics. It found several potential nil panic in Betula and Mycorrhiza codebases that I didn't bother fixing.
The coolest thing I've seen today!
Long daily commutes can leave little time around busy work days for commuters, who tend to be less physically active, overweight, drink more alcohol, and sleep poorly as a result.
Доклад с описанием истории электронной почты и некоторыми техническими подробностями