@@ -58,7 +58,8 @@ <h1> So Many Layers! A Note of Caution.</h1>
5858comes with costs. But just on the offchance that anyone was still missing the
5959message and thinking we were saying that < em > all</ em > apps should be built like this,
6060I thought I’d write a small blog post just to reinforce the message about
61- costs.</ p >
61+ costs. If you’ve been feeling tempted to cargo-cult every single pattern into
62+ every single app from now on, this should put you off.</ p >
6263< p > Each time you add a layer, you buy yourself some decoupling, but it
6364comes at the cost of an extra moving part. In the simplest terms, there’s an
6465extra file you have to maintain.</ p >
@@ -75,7 +76,7 @@ <h1> So Many Layers! A Note of Caution.</h1>
7576through the stack, because things have to change all the way from the
7677frontend/UI, all the way down to the database.</ p >
7778< p > If you’re using a framework like Django, you might be used to thinking of a
78- change like this, in a perfect world, as a change you can make to just < strong > one</ strong > file.
79+ change like this, in a perfect world, as a change you can make to just < em > one</ em > file.
7980You would change < code > models.py</ code > , and then your < code > ModelForm</ code > will be updated automatically,
8081and maybe even the frontend will “just work” too, if you’re using the form’s
8182autogenerated HTML. That’s one of the reasons that Django is so good as a
@@ -136,7 +137,7 @@ <h1> So Many Layers! A Note of Caution.</h1>
136137forms. We want to make it easy to capture complex and evolving business
137138requirements in a < a href ="/book/chapter_01_domain_model.html "> domain model</ a > . But, as we try to say in each chapter,
138139your mileage may vary!</ p >
139- < div id ="# in_theory "> < small > < i >
140+ < div id ="in_theory "> < small > < i >
140141 OK, in theory. In practice, I think this particular app was a _little_
141142 overengineered. It was one of the first ones that the team had complete
142143 freedom to try new patterns on, and they may have gone to town a bit...
0 commit comments