Skip to content

Commit 8e5b5d4

Browse files
committed
last couple of tweaks
1 parent 6915d88 commit 8e5b5d4

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

blog/2020-08-13-so-many-layers.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ <h1> So Many Layers! A Note of Caution.</h1>
5858
comes with costs. But just on the offchance that anyone was still missing the
5959
message and thinking we were saying that <em>all</em> apps should be built like this,
6060
I thought I&rsquo;d write a small blog post just to reinforce the message about
61-
costs.</p>
61+
costs. If you&rsquo;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
6364
comes at the cost of an extra moving part. In the simplest terms, there&rsquo;s an
6465
extra file you have to maintain.</p>
@@ -75,7 +76,7 @@ <h1> So Many Layers! A Note of Caution.</h1>
7576
through the stack, because things have to change all the way from the
7677
frontend/UI, all the way down to the database.</p>
7778
<p>If you&rsquo;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.
7980
You would change <code>models.py</code>, and then your <code>ModelForm</code> will be updated automatically,
8081
and maybe even the frontend will &ldquo;just work&rdquo; too, if you&rsquo;re using the form&rsquo;s
8182
autogenerated HTML. That&rsquo;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>
136137
forms. We want to make it easy to capture complex and evolving business
137138
requirements in a <a href="/book/chapter_01_domain_model.html">domain model</a>. But, as we try to say in each chapter,
138139
your 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...

posts/2020-08-13-so-many-layers.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ In the book we are at pains to point out that each pattern is a trade-off, and
77
comes with costs. But just on the offchance that anyone was still missing the
88
message and thinking we were saying that _all_ apps should be built like this,
99
I thought I'd write a small blog post just to reinforce the message about
10-
costs.
10+
costs. If you've been feeling tempted to cargo-cult every single pattern into
11+
every single app from now on, this should put you off.
1112

1213
Each time you add a layer, you buy yourself some decoupling, but it
1314
comes at the cost of an extra moving part. In the simplest terms, there's an
@@ -29,7 +30,7 @@ through the stack, because things have to change all the way from the
2930
frontend/UI, all the way down to the database.
3031

3132
If you're using a framework like Django, you might be used to thinking of a
32-
change like this, in a perfect world, as a change you can make to just **one** file.
33+
change like this, in a perfect world, as a change you can make to just _one_ file.
3334
You would change `models.py`, and then your `ModelForm` will be updated automatically,
3435
and maybe even the frontend will "just work" too, if you're using the form's
3536
autogenerated HTML. That's one of the reasons that Django is so good as a
@@ -96,7 +97,7 @@ forms. We want to make it easy to capture complex and evolving business
9697
requirements in a [domain model](/book/chapter_01_domain_model.html). But, as we try to say in each chapter,
9798
your mileage may vary!
9899

99-
<div id="#in_theory"><small><i>
100+
<div id="in_theory"><small><i>
100101
OK, in theory. In practice, I think this particular app was a _little_
101102
overengineered. It was one of the first ones that the team had complete
102103
freedom to try new patterns on, and they may have gone to town a bit...

rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Simple patterns for building complex apps
88
</description>
99
<link>https://www.cosmicpython.com</link>
10-
<lastBuildDate>Mon, 17 Aug 2020 05:53:06 -0000</lastBuildDate>
10+
<lastBuildDate>Mon, 17 Aug 2020 06:02:42 -0000</lastBuildDate>
1111
<pubDate>Sat, 4 Jan 2020 19:15:54 -0500</pubDate>
1212
<atom:link href="https://cosmicpython.com/rss.xml" rel="self" type="application/rss+xml" />
1313

0 commit comments

Comments
 (0)