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.48K 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
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