Skip to content

Instantly share code, notes, and snippets.

@drilla
drilla / ddd.md
Last active January 24, 2021 13:06
Domain driven desing

Evans: Although REPOSITORIES and FACTORIES do not themselves come from the domain, they have meaningful roles in the domain design. These constructs complete the MODEL-DRIVEN DESIGN by giving us accessible handles on the model objects.

An AGGREGATE is a cluster of associated objects that we treat as a unit for the purpose of data changes. Each AGGREGATE has a root and a boundary. The boundary defines what is inside the AGGREGATE. The root is a single, specific ENTITY contained in the AGGREGATE.

Using ELIXIR,
I need to print pdf from html "AS IS". with all background CSS images included an so on
- use https://github.com/gutschilla/elixir-pdf-generator
- use head-listed css styles
- use chromium render
in your docker image you have to install
- nodejs
- puppeteer
- chrome-headless pdf renderer
- chromium (in case you app says "cannot find chrome executable" and stuff)
@drilla
drilla / tasks_avtovokzaly_ru.txt
Created November 14, 2019 08:49
My completed tasks avtovokzaly.ru
Спроектировать БД метро городов СНГ
При удалении parent-коммента удалять также его child-comments
Запретить ручной ввод дней отправления после ввода добавления дат автобусов
Сделать робот, парсящий появляющиеся новые метро Москвы
Заполнить БД Метро