Шо там, как там composition vs inheritance? еще на го бугуртят про модули. мдааааааааааааааааааааааа
I’ll use the Top 20 Libraries and APIs Java Developer should know as a reference.
Only two of the libraries above are actually modularized! That is understandable, since implementing modules in one’s own library is a non-trivial effort.
https://blog.frankel.ch/hard-look-state-java-modularization/
I’ll use the Top 20 Libraries and APIs Java Developer should know as a reference.
Only two of the libraries above are actually modularized! That is understandable, since implementing modules in one’s own library is a non-trivial effort.
https://blog.frankel.ch/hard-look-state-java-modularization/
A Java geek
A hard look at the state of Java modularization
When Jigsaw was released with Java 9, it was the end of a long process - it had been postponed already - and it had to be released. With the coming of Java 11, the latest Long-Term Support, I think it’s a good time to take a snapshot of the state of modularization.…
Узнал одну штуку. Есть фирма в штатах, 10к машин в private cloud.
Паппет раскатывается по всем машинам. Естественно были умники, которые накатывали какие-то изменения и факапали машины с БД.
Не сильно правда, повезло, что задело только новую версию БД (там 5-7% реальных данных было), но люди ничему не научились. Пару недель назад пришлось работать сверхурочно и доставать все из бекапов. Причина думаю очевидна.
Итого: раскатывание конфига должно быть изолировано.
Паппет раскатывается по всем машинам. Естественно были умники, которые накатывали какие-то изменения и факапали машины с БД.
Не сильно правда, повезло, что задело только новую версию БД (там 5-7% реальных данных было), но люди ничему не научились. Пару недель назад пришлось работать сверхурочно и доставать все из бекапов. Причина думаю очевидна.
Итого: раскатывание конфига должно быть изолировано.
Ооооо...а признайтесь, у кого есть доступ к ссх-рут на проде? 😈
Как-то во вовремя еженедельного демо один решил показать полноценную фичу и давай копипастить рутовские вещи. А там еще и запись экрана демо была, прям красота.
Как-то во вовремя еженедельного демо один решил показать полноценную фичу и давай копипастить рутовские вещи. А там еще и запись экрана демо была, прям красота.
https://copay.io 1.5к зависимостей (хотя в одном бложике 2.7к, возможно транзитивные еще).
НУ ШО ПАЦАНЫ С̶Е̶С̶У̶Р̶И̶Т̶И̶ КРИПТА ?
НУ ШО ПАЦАНЫ С̶Е̶С̶У̶Р̶И̶Т̶И̶ КРИПТА ?
GitHub
GitHub - bitpay/copay: Copay wallet is now Bitpay Wallet.
Copay wallet is now Bitpay Wallet. Contribute to bitpay/copay development by creating an account on GitHub.
Fun fact: > 50% of npm's users started using npm less than 2 years ago, and so have never heard of left-pad and don't know what this joke is about:
The builds have randomly stopped working.
You review the logs.
npm ERR! 404 'left-pad' is not in the npm registry.
(c)
The builds have randomly stopped working.
You review the logs.
npm ERR! 404 'left-pad' is not in the npm registry.
(c)
Один хайлоад сервис пихает 15 метрик (авг, стддев, р9999999 и прочее).
Дошло до того, что ответственные за сбор метрик попросили не наглеть и порезать ненужное.
И даже здесь еще один тупой overengineering
👍
Дошло до того, что ответственные за сбор метрик попросили не наглеть и порезать ненужное.
И даже здесь еще один тупой overengineering
👍
com.google.common.collect.Iterators.concat
Note: the current implementation is not suitable for nested concatenated iterators, i.e. the following should be avoided when in a loop: iterator = Iterators.concat(iterator, suffix);, since iteration over the resulting iterator has a cubic complexity to the depth of the nesting.Вот из-за этой штуковинки обычный список на 1к элементов заставлял пользователя немножко подождать.
А с 8к чуть-чуть больше.
https://google.github.io/guava/releases/19.0/api/docs/com/google/common/collect/Iterators.html#concat(java.util.Iterator)
C++’s creator finds himself on the other side of the community on the issue of C++’s growing complexity. Stroustrup correctly identifies C++’s growing complexity as a potentially fatal risk for the language.
С++ официально зашкварен самим Страуструпом. Расходимся.
http://www.stroustrup.com/P0977-remember-the-vasa.pdf
С++ официально зашкварен самим Страуструпом. Расходимся.
http://www.stroustrup.com/P0977-remember-the-vasa.pdf
Вопрос
Ответ
% cat string_view_uaf.cc
#include <iostream>
#include <string>
#include <string_view>
int main() {
std::string s = "Hellooooooooooooooo ";
std::string_view sv = s + "World\n";
std::cout << sv;
}
% clang++ -std=c++11 string_view_uaf.cc -stdlib=libc++ -fsanitize=address && ./a.out
?ooooooooooooooo World
=================================================================
==15854==ERROR: AddressSanitizer: heap-use-after-free
I don't know if this is a libc++ bug or a C++17 feature, please advise.
Ответ
LEWG/LWG considered this during the adoption of string_view, and decided that they were OK with it. (or, more accurately, that fixing this would make string_view much less useful).
So this is definitely a C++17 "feature".
Как программист из Екатеринбурга с нуля построил бизнес на $400 млн
https://www.rbc.ru/magazine/2019/01/5c1baef09a79470d23908f47
https://www.rbc.ru/magazine/2019/01/5c1baef09a79470d23908f47
system of a down driven exploits
https://www.qualys.com/2019/01/09/system-down/system-down.txt
https://www.qualys.com/2019/01/09/system-down/system-down.txt