20 random bookmarks
Тут будут ссылки на всё-всё, что я найду интересным
Тут будут ссылки на всё-всё, что я найду интересным
Clean Code doesn't work—not because the principles are wrong, but because the real world is dirty, chaotic, unpredictable, and asynchronous. The best code I’ve ever seen violated a good half of Clean Code’s commandments.
The safest and most reliable way to deal with feature flags is to hardcode them
On communication on sea with flags
База.
используйте неизменяемые объекты, не допускайте частичной инициализации, требуйте обязательные поля сразу – не надейтесь, что кто-то заполнит их позже
В конце 1940-х годов в 100 километрах к востоку от побережья Азербайджана началась реализация удивительного проекта. Прямо в море за несколько десятилетий вырос настоящий городок с многоэтажками, поликлиникой, столовой, пекарней и даже лимонадным цехом, окруженный сотнями километров эстакад с автомобильным движением. Это Нефтяные камни, уникальный поселок нефтяников, аналогов которому на планете нет. Onliner.by рассказывает, как человек в очередной раз победил природу, построив в открытом море город.
Обалдеть
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!
Везде речь о флетвайте. В случае сетей я указываю адреса только тех точек, в которых я был, и при этом там хорошо. Во всех местах из этого списка дают воду, если попросить. Цену указал, где помню.
The Go standard library is full of bad design choices from the perspective of safety of use.
Коллекция рабочих мест
Идея ролика возникла после вопроса, прилетевшего в личку: а почему бы, собственно, России не проиграть СВО и не сдаться на милость каким-нибудь США? Казалось бы, ответ очевиден, но, видимо, нужно всё разжевать и разложить по полочкам.
О том, как велосипед поворачивает и держит равновесие
Чумной доктор и Леонид Кураков о начале горячей фазы конфликта в 2022 году на Украине. Для тех, кто думает, что войну развязала Россия