- I was told by a colleague that in X is the most expensive operation you could perform.
- Your most expensive operation would be listening to them.
(c)
- Your most expensive operation would be listening to them.
(c)
Вчера спалил коллегу, что он читает о массивах пхп в порно-моде хрома. Рофл был на 3 комнаты в офисе. Естественно он читал из-за проблем с открытием сайта, но мы-то все знаем 😏
Только-что напоролся на красивый баг, мною же и написанный. Проверяется хедер, если нет - кидаем эксепшон. Все просто.
Добавляем тест, на пустой хедер (под капотом хелпер делает
Естественно все зеленое и красивое.
Смотрим coverage - проверка не была вызвана, надо было:
(кстати некоторые тесты до меня были зафакаплены из-за этого же, хех)
Добавляем тест, на пустой хедер (под капотом хелпер делает
headers.add('Api-Key', null) ± норм смотрится).Естественно все зеленое и красивое.
Смотрим coverage - проверка не была вызвана, надо было:
if (apiKey != null) headers.add('Api-Key', apiKey)
Поэтому юзайте дети кавередж.(кстати некоторые тесты до меня были зафакаплены из-за этого же, хех)
Cloudflare:
Previously: 2x 12 core Intel Xeon Silver 4116 2.1Ghz 85W
Now: 2x 24 core Intel custom off-roadmap 1.9Ghz 150W
The performance of our infrastructure is heavily directed by how much compute we can squeeze in a given physical space and power. In essence, requests per second (RPS) per Watt is a critical metric that Qualcomm’s ARM64 46 core Falkor chip had a big advantage over Intel’s Skylake 4116.
Intel proposed to co-innovate with us an off-roadmap 24-core Xeon Gold CPU specifically made for our workload offering considerable value in Performance per Watt. For this generation, we continue using Intel as system solutions are widely available while we’re working on realizing ARM64’s benefits to production. We expect this CPU to perform with better RPS per Watt right off the bat; increasing the RPS by 200% from doubling the amount of cores, and increasing the power consumption by 174% from increasing the CPUs TDP from 85W to 150W each.
https://blog.cloudflare.com/a-tour-inside-cloudflares-g9-servers/
Previously: 2x 12 core Intel Xeon Silver 4116 2.1Ghz 85W
Now: 2x 24 core Intel custom off-roadmap 1.9Ghz 150W
The performance of our infrastructure is heavily directed by how much compute we can squeeze in a given physical space and power. In essence, requests per second (RPS) per Watt is a critical metric that Qualcomm’s ARM64 46 core Falkor chip had a big advantage over Intel’s Skylake 4116.
Intel proposed to co-innovate with us an off-roadmap 24-core Xeon Gold CPU specifically made for our workload offering considerable value in Performance per Watt. For this generation, we continue using Intel as system solutions are widely available while we’re working on realizing ARM64’s benefits to production. We expect this CPU to perform with better RPS per Watt right off the bat; increasing the RPS by 200% from doubling the amount of cores, and increasing the power consumption by 174% from increasing the CPUs TDP from 85W to 150W each.
https://blog.cloudflare.com/a-tour-inside-cloudflares-g9-servers/
The Cloudflare Blog
A Tour Inside Cloudflare's G9 Servers
This is about our latest generation G9 server. From a G4 server comprising of 12 Intel Sandybridge CPU cores, our G9 server has 192 Intel Skylake CPU cores ready to handle today’s load across Cloudflare’s network.
30 to 50 people is where you go from being a family to being a company, and everything starts to get really hard.
(с)
Hiring is a network effect. The first 100 people you hire will define the next 200.
(с)
https://firstround.com/review/give-away-your-legos-and-other-commandments-for-scaling-startups/
(с)
Hiring is a network effect. The first 100 people you hire will define the next 200.
(с)
https://firstround.com/review/give-away-your-legos-and-other-commandments-for-scaling-startups/
First Round Review
‘Give Away Your Legos’ and Other Commandments for Scaling Startups
Molly Graham helped forge a work culture at Facebook that's withstood huge amounts of growth. Today, she's something of a rapid scaling expert. Here's the key to doing it right, she says.
Хах, опять цпу кеш + латенси рама удивляют.
На самом деле отличный наглядный пример, что такое ПОИНТЕР.
https://blogs.msdn.microsoft.com/oldnewthing/20181205-00/?p=100405
На самом деле отличный наглядный пример, что такое ПОИНТЕР.
https://blogs.msdn.microsoft.com/oldnewthing/20181205-00/?p=100405
oleg_log
да, в итоге на 3к строк в файле, только 30 код, остальное коменты которые при этом тесты. Лучше не придумать. Не понимаю этого прикола, когда все в одном файле, это такая хитрая оптимизация дерева файловой системы? У элексира кстати тот же подход :(
С уважаемым @corpix (его жж @documentsjournal) перетерли эту тему и у меня появилось несколько коментов:
0. никто не говорит, что писать тесты и доку это плохо, конечно же они нужны, и вообще без них лучше ничего не делать.
1. когда код и тесты сливаются в одно, становится не так легко грепать код и тесты отдельно, приходится иметь АСТ либо какой-то контекст.
2. становится не так просто бегать по нему, код буквально растворяется в комментариях и тестах.
3. хранить все в одном файле, так же как и разносить каждый класс по новому файлу - оверкилл. обе крайности и не совсем адекватные. все должно быть по Таносу.
4. создавать больше одного файла, как и открывать 2 файла в || окнах давно не проблема, поэтому скидывать яйца в одну кучу - сомнительно.
Короч, код и тесты в разных файлах - ништяк.
Как и примеры использования кода.
0. никто не говорит, что писать тесты и доку это плохо, конечно же они нужны, и вообще без них лучше ничего не делать.
1. когда код и тесты сливаются в одно, становится не так легко грепать код и тесты отдельно, приходится иметь АСТ либо какой-то контекст.
2. становится не так просто бегать по нему, код буквально растворяется в комментариях и тестах.
3. хранить все в одном файле, так же как и разносить каждый класс по новому файлу - оверкилл. обе крайности и не совсем адекватные. все должно быть по Таносу.
4. создавать больше одного файла, как и открывать 2 файла в || окнах давно не проблема, поэтому скидывать яйца в одну кучу - сомнительно.
Короч, код и тесты в разных файлах - ништяк.
Как и примеры использования кода.
ОМГ, оказывается гитхаб подтягивает все коммиты, которые может найти. Пояснение там в коментах
https://github.com/torvalds/linux/commit/b4061a10fc29010a610ff2b5b20160d7335e69bf
https://github.com/torvalds/linux/commit/b4061a10fc29010a610ff2b5b20160d7335e69bf
GitHub
hid: bug fixes · torvalds/linux@b4061a1
Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.
It's true, there's no individual competitive advantage for Microsoft to continue developing their own Edge browser. Moving to chrome is just good business, as they say. But as we've seen with SQLite, ubitquity is it's own risk. SQLite is everywhere because it's easy to use and does the job. Thank network effects for the rest. The problem is when SQLite has serious vulnerabilities—remote code execution—then the entire ecosystem is immediately at risk. Monocultures aren't robust, yet the winner take all nature of tech over time tends to produce monocultures. While Microsoft benefits from their decision, herd immunity would benefit from more diversity. Innoculate now. There are no bulkheads for ubiquity.
(c)
(c)
Крутой доклад у людей, которые угорели по кодогенерации. Чуток дисциплины на старте, и каждый микросервис становится таким же, как и другие. Прям гениально.
https://www.youtube.com/watch?v=j6ow-UemzBc
https://www.youtube.com/watch?v=j6ow-UemzBc
YouTube
Design Microservice Architectures the Right Way
Download the slides & audio at InfoQ: https://bit.ly/2ypNF04
Michael Bryzek highlights specific key decisions that very directly impact the quality and maintainability of a microservice architecture, covering infrastructure, continuous deployment, communication…
Michael Bryzek highlights specific key decisions that very directly impact the quality and maintainability of a microservice architecture, covering infrastructure, continuous deployment, communication…
о, 100 подписоты, ОКР 2018 закрыт. всем спасибо.
а еще десктопная телега научилась делать опросы из меню.
дабл вин
а еще десктопная телега научилась делать опросы из меню.
дабл вин
Йоу всем, кто знаком с настройкой сервера (в контексте сесурити, хотя не только), пинганите в лс, чтобы вы посоветовали сделать и не сделать. Все средства хороши.
(для особо ленивых -> @olegkovalov)
(для особо ленивых -> @olegkovalov)
ПРОСРАЛИ ВСЕ ПОЛИМЕРЫ
More and more iPhone owners blindly upgrade to iOS 12.1.2 reports are now flooding in from around the world that it cuts off mobile data services.
https://www.forbes.com/sites/gordonkelly/2018/12/22/apple-ios-12-1-2-problem-iphone-xs-max-xr-mobile-data-cellular-4g-cannot-load-internet/#35760b301985
More and more iPhone owners blindly upgrade to iOS 12.1.2 reports are now flooding in from around the world that it cuts off mobile data services.
https://www.forbes.com/sites/gordonkelly/2018/12/22/apple-ios-12-1-2-problem-iphone-xs-max-xr-mobile-data-cellular-4g-cannot-load-internet/#35760b301985
Forbes
Apple iOS 12.1.2 Has A Serious Cellular Data Problem
Apple iOS 12.1.2 is causing very serious problems for iPhone owners...