百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

clean-architecture

> 开发工具
开源

(工作中)关于 Made Tech Flavoured Clean Architecture 所采用方法的指南

161 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

(工作中)关于 Made Tech Flavoured Clean Architecture 所采用方法的指南

Clean Architecture

How to begin with "Made Tech Flavour Clean Architecture".

This style of architecture has carried many names, which include "Hexagonal", "Ports & Adapters" and "Boundary-Control-Entity".

Getting started

Architectural Concepts

  • Use Case
  • Domain
  • Gateway
  • Bounded Contexts

Learn by example (Ruby)

Deliberate practice is the best way to learn Clean Architecture.

(Work-in-progress)

Basics

  • The Mindset
  • Start with Acceptance Testing
  • Writing Fake Gateways
  • Use Cases organise your code
  • Constructors are for collaborators
  • Do not leak your internals
  • TDD everything
  • Build in a reliable dependency upgrade path
  • Your first Real Gateway
  • Your first Delivery Mechanism

Intermediate

  • Presenters are more flexible
  • Keep your wiring DRY
  • Extend Use Case behaviour with Domain objects
  • Extracting a Use Case from a Use Case
  • Authentication
  • Authorisation

Advanced

  • Consider the Actors
  • Substitutable Use Cases
  • Feature Toggles
  • Keep your Domain object construction DRY

Examples in Languages

  • Ruby
  • Kotlin
  • Go
  • Clojure
  • JS

Further Reading

Clean Architecture by Robert C. Martin is very close to

  • BCE by Ivar Jacobson, and
  • Hexagonal Architecture by Alistair Cockburn. Hexagonal Architecture is also called Ports & Adapters.

The Made Tech Flavour differs again from the Clean Architecture book by Robert C. Martin. Made Tech renames some of the basic concepts on purpose, for three reasons:

  • A junior developer learns the concepts faster
    • The name "Use Case" connects the object to a Use Case Analysis session. Robert C. Martin calls the same object an Interactor.
    • The name "Domain" keeps Domain-Driven Design in view, and asks the reader what a Domain object is.
    • The name "Domain" avoids a clash with the EntityFramework Entity. Robert C. Martin calls a Domain object an Entity.

Made Tech Flavour Clean Architecture is more prescriptive than any of these other examples

Reference

  • Clean Coders videos
  • Clean Architecture Book

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubybceclean-architectureclean-codeddd

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具