emacsway-log: Software Design, Clean Architecture, DDD, Microservice Architecture, Distributed Systems, XP, Agile, etc. – Telegram
emacsway-log: Software Design, Clean Architecture, DDD, Microservice Architecture, Distributed Systems, XP, Agile, etc.
3.47K subscribers
119 photos
15 videos
22 files
1.14K links
Software Design, Clean Architecture, DDD, Microservice Architecture, Distributed Systems, Extreme Programming, SDLC, Agile, etc.

Chat: https://news.1rj.ru/str/emacsway_chat

Persistence: https://dckms.github.io/system-architecture/
Download Telegram
Привет!
Приглашаем на очную встречу ArchDays Recap 27 июля (ср) в Москве.

🧚ArchDays Recap — новый для нас формат, на котором приглашенные спикеры предыдущих конференций:
— расскажут о дальнейшем развитии истории из выступления;
— раскроют некоторые аспекты выступлений, важность которых была осознана уже после;
— ответят на вопросы из зала или из формы на сайте.

📍Программа и регистрация: https://archconf.ru/recap-27-07-22
👍4🔥3👎2👏1
💬 "As Edward V. Berard famously stated, walking on water and developing software from a specification are easy if both are frozen." -- Vladik Khononov

#SDLC #Agile
👍4🔥2
💬 "The Single Responsibility Principle (SRP):

Gather together those things that change for the same reasons and at the same times. Separate those things that change for different reasons or at different times."
-- Robert C. Martin. Самая последняя редакция от 2022-07-06.

P.S.: Если вдруг кто еще считает, что SRP - это делать одну вещь...

#SoftwareDesign
👍7🔥2
💬 "What a fantastic visualization. What happens with communications on teams and why do we keep them small?" -- Greg Young

#TeamTopologies
👍19🔥7
Друзья, хочу поделиться последними изменениями.

Если вы помните, был опрос о том, нужно ли мне транслировать в этот канал сообщения из канала
https://news.1rj.ru/str/ru_arc , в состав сооснователей которого я вхожу. Простое большинство (1/2) высказалось против, но квалифицированное большинство (2/3) не набралось.

Я думал над этим вопросом и решил поступить следующим образом:
- в этот канал я буду писать то, что узнаю нового сам, и то, что касается моей личной деятельности;
- в @ru_arc я буду писать то, что соответствует редакционной политике канала, преимущественно те знания, которые у меня уже давно выкристаллизовались.

Основную часть свободно времени я был и буду занят разработкой Open Source Reference Application in Golang:
- https://github.com/emacsway/qualifying-grade

Этот проект предназначен для реальной эксплуатации, но выполняется он в виде Reference Application. Начал причесывать свои приватные заметки по этому проекту и публиковать их:
- https://dckms.github.io/system-architecture/emacsway/it/ddd/qualifying-grade/domain/index.html

Проект Устава Общественного объединения ИТ-Архитекторов уже боле-менее стабилизировался, но я пока еще не могу уверенно сказать, что он достиг финализации:
- https://github.com/ru-arc/charter/blob/main/charter.md

Есть вероятность, что в обозримом будущем мы уже утвердим Устав на учредительном собрании.

Традиционно напоминаю, что если кто-то разделяет наши цели, и готов сплотить усилия для их достижения - может обратиться в @ru_arc_bot . Кажется, у нас формируется неплохой дружественный коллектив реально крутых специалистов. На этой неделе к нам добавился один из грамотнейших архитекторов, которого я знаю.

В эту среду увидимся на очной встрече ArchDays Recap https://news.1rj.ru/str/emacsway_log/968

Всем спасибо за проявленный интерес и поддержку!
🔥4👍3
emacsway-log: Software Design, Clean Architecture, DDD, Microservice Architecture, Distributed Systems, XP, Agile, etc.
Когда спрашивают зачем нужен слой абстракции от БД:
Очередной ORM ушел на задворки истории:

"go-pg is in a maintenance mode and will NOT receive new features. Please use Bun Golang ORM instead."
- https://pg.uptrace.dev/

Когда спрашивают, является ли ORM слоем абстракции....
👍9
Forwarded from Russian Association of Software Architects (Ivan Zakrevsky)
Chat Digest

💬 "A Hybrid Software Architecture Evaluation Method for FDD - An Agile Process Model"
- https://news.1rj.ru/str/ru_arc_chat/1325

💬 Менеджеры топят за Agile без архитектуры. Что делать?
- https://news.1rj.ru/str/ru_arc_chat/1326

💬 Awesome workflow engines:
- https://github.com/meirwah/awesome-workflow-engines

💬 Steve McConnell о DDD:
- https://news.1rj.ru/str/ru_arc_chat/1362

💬 "Самовозникающий социальный паттерн" системной динамики - "Стремление к худшему":
https://news.1rj.ru/str/ru_arc_chat/1392

💬 Энтропия системы имеет склонность к росту - Gregor Hohpe:
- https://news.1rj.ru/str/ru_arc_chat/1395
- https://news.1rj.ru/str/ru_arc_chat/1391

💬 Цикл сообщений о роли Semantic Coupling:
- https://news.1rj.ru/str/ru_arc_chat/1411

💬 Типы Coupling:
- https://news.1rj.ru/str/ru_arc_chat/1413

💬 Оригинальная книга "Structured Design: Fundamentals of a Discipline of Computer Program and Systems Design" by Edward Y ourdon and Larry L. Constantine
- https://news.1rj.ru/str/ru_arc_chat/1434

💬 Что такое Coupling от Larry Constantine:
- https://news.1rj.ru/str/ru_arc_chat/1441

💬 DevOps модели:
- https://news.1rj.ru/str/ru_arc_chat/1488

💬 Продакт не выделяет ресурсов на устранение техдолга. Что делать?
- https://news.1rj.ru/str/ru_arc_chat/1490

💬 Когда делать рефакторинг:
- https://news.1rj.ru/str/ru_arc_chat/1508

💬 Как устранять техдолг?
- https://news.1rj.ru/str/ru_arc_chat/1509
- https://news.1rj.ru/str/ru_arc_chat/1510

💬 Влиятельный инструмент на менеджмент:
- https://news.1rj.ru/str/ru_arc_chat/1512

💬 Код - это рабочее место программиста и условия труда:
- https://news.1rj.ru/str/ru_arc_chat/1515
- https://news.1rj.ru/str/ru_arc_chat/1527

💬 Почему придумали Story Point?
- https://news.1rj.ru/str/ru_arc_chat/1518

💬 Кто отвечает за качество кода, Продакт или Команда?
- https://news.1rj.ru/str/ru_arc_chat/1524

💬 Заложить работу с техдолгом в оценку задачи:
- https://news.1rj.ru/str/ru_arc_chat/1548
- https://news.1rj.ru/str/ru_arc_chat/1552
- https://news.1rj.ru/str/ru_arc_chat/1567
- https://news.1rj.ru/str/ru_arc_chat/1573

💬 Является ли Продакт руководителем разработки?
- https://news.1rj.ru/str/ru_arc_chat/1549

💬 Усугубить кризис и решить техдолг под шумок:
- https://news.1rj.ru/str/ru_arc_chat/1564

💬 Что такое Transparency? Означает ли это спрашивать разрешения у Продакта на устранение техдолга?
- https://news.1rj.ru/str/ru_arc_chat/1568

💬 Можно ли удовлетворить интересы всех стейкхолдеров? Как находить сбалансированные решения и взаимокомпенсировать когнитивные искажения сторон. ATAM в Agile?
- https://news.1rj.ru/str/ru_arc_chat/1569

💬 "Синдром второй системы" народным языком:
- https://news.1rj.ru/str/ru_arc_chat/1571

💬 "Правило трех ударов" народным языком:
- https://news.1rj.ru/str/ru_arc_chat/1616
- https://news.1rj.ru/str/ru_arc_chat/1691

💬 ITIL Foundation, практика Problem Management
- https://news.1rj.ru/str/ru_arc_chat/1650

💬 Крутое разъяснение простым языком про обратную корреляцию требований:
- https://news.1rj.ru/str/ru_arc_chat/1669

💬 Крутое разъяснение о том, как относиться к проблемам:
- https://news.1rj.ru/str/ru_arc_chat/1678

#ChatDigest
👍3🔥1
Шикарная статья для тех, кто намерен использовать PostgreSQL JSONB для хранения Агрегатов:

"Борьба с  TOAST или будущее JSONB в PostgreSQL"
- https://habr.com/ru/company/oleg-bunin/blog/646987/

Статья является продолжением статьи
"Проклятье TOAST и с каким маслом его ест JSONB" by Oleg Bartunov
- https://habr.com/ru/company/oleg-bunin/blog/597187/

Обе статьи уместны в контексте статьи "The Ideal Domain-Driven Design Aggregate Store?" by Vaughn Vernon
- https://kalele.io/the-ideal-domain-driven-design-aggregate-store/

#DDD #Database #PostgreSQL
👍4
Eric Evens в своей синей книге пишет, что, в общем-то не очень хорошо, когда Specification Pattern осведомлен об SQL

💬 "Now this design has some problems. Most important, the details of the table structure have leaked into the DOMAIN LAYER ; they should be isolated in a mapping layer that relates the domain objects to the relational tables. Implicitly duplicating that information here could hurt the modifiability and maintainability of the Invoice and Customer objects, because any change to their mappings now have to be tracked in more than one place. But this example is a simple illustration of how to keep the rule in just one place. Some object-relational mapping frameworks provide the means to express such a query in terms of the model objects and attributes, generating the actual SQL in the infrastructure layer. This would let us have our cake and eat it too."
— "Domain-Driven Design: Tackling Complexity in the Heart of Software" by Eric Evans

В C# для этого есть мощный механизм Expression Tree, что значительно упрощает дело. Примеры хорошо демонстрирует Vladimir Khorikov:
- https://enterprisecraftsmanship.com/posts/specification-pattern-c-implementation/
- https://enterprisecraftsmanship.com/posts/specification-pattern-always-valid-domain-model/
- https://github.com/vkhorikov/SpecificationPattern
- https://github.com/vkhorikov/SpecPattern

В Golang дело немного усложняется отсутствием нативной поддержки Expression Tree, и поддержку этих функций приходится брать на себя.

В общем, как получилась первая итерация (пока еще не финал), можно посмотреть здесь:

Абстрактная реализация + inMemory evaluator:
- https://github.com/emacsway/grade/blob/main/grade/internal/domain/seedwork/specification/

Конкретная реализация inMemory evaluator без использования рефлекции:
- https://github.com/emacsway/grade/blob/main/grade/internal/domain/endorser/specifications.go

Абстрактная реализация строителя PostgreSQL-запроса с учетом приоритетов операторов для исключения лишних скобочек:
- https://github.com/emacsway/grade/blob/main/grade/internal/infrastructure/specification/

Конкретная реализация строителя PostgreSQL-запроса с гибкой возможностью маппинга атрибутов:
- https://github.com/emacsway/grade/blob/main/grade/internal/infrastructure/repositories/endorser/endorser_specifications.go

Заложена (но до конца не раскрыта) возможность просмотра коллекций сущностей внутри агрегата и поиск удовлетворения условия хотя бы одним из элементов коллекции.

#DDD #SoftwareDesign
🔥8👍2
💬 "Sometimes, to improve performance, or more likely to tighten security, queries may be implemented on the server as stored procedures. In that case, the SPECIFICATION could carry only the parameters allowed by the stored procedure. For all that, there is no difference in the model between these various implementations. The choice of implementation is free except where specifically constrained by the model. The price comes in a more cumbersome way of writing and maintaining queries.

This discussion barely scratches the surface of the challenges of combining SPECIFICATIONS with databases, and I'll make no attempt to cover all the considerations that may arise. I just want to give a taste of the kind of choices that have to be made."
— "Domain-Driven Design: Tackling Complexity in the Heart of Software" by Eric Evans

Вот так примерно отвечает интеллигентный человек на нечто подобное тому, что в свое время сделала компания LinguaLeo.

#DDD #SoftwareDesign
👍3😁2