当前位置：网站首页>What problems can clean architecture solve? - jbogard

What problems can clean architecture solve? - jbogard

2020-11-06 01:20:01 On jdon

Clean Architecture can solve these problems :

  1. Make a decision too early
  2. Difficult to change
  3. Centering on the frame
  4. Database centric
  5. Focus only on the technical level
  6. It's hard to find the code you're looking for
  7. Business logic spreads everywhere
  8. Too much testing


Opinions vary ：


If you follow the spirit , So a clean architecture is to separate the domain from the infrastructure , And make sure there's a way to test drive as many systems as possible . therefore , It does 2、4 and 7 Help . however , No style can prevent human carelessness and deliberate carelessness .


One thing is for sure , If you clean up with good standard practice , It could solve most of the problems , however , If the domain leaks （ Or any amount of bad smell of code ）, It's still easy to make it the whole solution “ Mire ”.


The problem to be solved is the quagmire （ Paste ）, But I still find CQRS and MVU（ One way data flow ） It solves the problem better than the incidental complexity of other patterns .



本文为[On jdon]所创，转载请带上原文链接，感谢