@@ -58,7 +58,8 @@ <h1> So Many Layers! A Note of Caution.</h1>
58
58
comes with costs. But just on the offchance that anyone was still missing the
59
59
message and thinking we were saying that < em > all</ em > apps should be built like this,
60
60
I 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 >
62
63
< p > Each time you add a layer, you buy yourself some decoupling, but it
63
64
comes at the cost of an extra moving part. In the simplest terms, there’s an
64
65
extra file you have to maintain.</ p >
@@ -75,7 +76,7 @@ <h1> So Many Layers! A Note of Caution.</h1>
75
76
through the stack, because things have to change all the way from the
76
77
frontend/UI, all the way down to the database.</ p >
77
78
< 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.
79
80
You would change < code > models.py</ code > , and then your < code > ModelForm</ code > will be updated automatically,
80
81
and maybe even the frontend will “just work” too, if you’re using the form’s
81
82
autogenerated 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>
136
137
forms. We want to make it easy to capture complex and evolving business
137
138
requirements in a < a href ="/book/chapter_01_domain_model.html "> domain model</ a > . But, as we try to say in each chapter,
138
139
your mileage may vary!</ p >
139
- < div id ="# in_theory "> < small > < i >
140
+ < div id ="in_theory "> < small > < i >
140
141
OK, in theory. In practice, I think this particular app was a _little_
141
142
overengineered. It was one of the first ones that the team had complete
142
143
freedom to try new patterns on, and they may have gone to town a bit...
0 commit comments