Skip to content

Commit 2e459bc

Browse files
committed
Prepare article for publication
1 parent f55895e commit 2e459bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_posts/2025-01-16-easier-encapsulation-with-static-types.html _posts/2025-02-24-easier-encapsulation-with-static-types.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: post
33
title: "Easier encapsulation with static types"
44
description: "A metaphor."
5-
date: 2025-01-16 12:36 UTC
5+
date: 2025-02-24 14:05 UTC
66
tags: [Languages, Code, Encapsulation]
77
image: "/content/binary/strongly-typed-completed-puzzle.png"
88
image_alt: "Completed puzzle with nine distinctly shaped pieces."
@@ -140,7 +140,7 @@ <h3 id="86c6695ffa884ec28be560309779ab98">
140140
<img src="/content/binary/tile3-doc.jpg" alt="The back of a tile, with some fairly cryptic symbols in the corners." width="200">
141141
</p>
142142
<p>
143-
At first glance, I though those symbols were Greek letters, but once you look at it, you start to realize what's going on. In the upper right corner, you see a stylized back and tail. Likewise, the lower left corner has a stylized face in the form of a smiley. The lines then indicate that the sides indicated by a corner has a head or tail.
143+
At first glance, I thought those symbols were Greek letters, but once you look at it, you start to realize what's going on. In the upper right corner, you see a stylized back and tail. Likewise, the lower left corner has a stylized face in the form of a smiley. The lines then indicate that the sides indicated by a corner has a head or tail.
144144
</p>
145145
<p>
146146
Additionally, each side is encoded with a letter. I'll leave it as an exercise for the reader to figure out what <em>G</em> and <em>B</em> indicate, but also notice the two examples of a modified <em>R</em>. The one to the right indicates <em>red with spots</em>, and the other one uses the minus symbol to indicate <em>red without spots</em>.
@@ -152,7 +152,7 @@ <h3 id="86c6695ffa884ec28be560309779ab98">
152152
Had this been software documentation, we might have been less than happy with this level of information. It may meet formal requirements, but is perhaps too idiosyncratic or esoteric.
153153
</p>
154154
<p>
155-
Be that as it may, it's also possible to err to the other side.
155+
Be that as it may, it's also possible to err on the other side.
156156
</p>
157157
<p>
158158
<img src="/content/binary/Tile5-doc.jpg" alt="The back of a tile, this time with an almost one-to-one replica of the picture on the front." width="200">
@@ -288,7 +288,7 @@ <h3 id="5342222c3624472ab9b638aff7ecc65e">
288288
And if your language doesn't natively support sum types, you can <a href="/2018/06/25/visitor-as-a-sum-type">emulate them with the Visitor design pattern</a>.
289289
</p>
290290
<p>
291-
You can, in fact, do some <a href="" reminder="GDP">quite sophisticated tricks even with .NET's type system</a>.
291+
You can, in fact, do some <a href="/2025/02/03/modelling-data-relationships-with-c-types">quite sophisticated tricks even with .NET's type system</a>.
292292
</p>
293293
<h3 id="783cb14749b64aafac68d97a0096b349">
294294
Conclusion <a href="#783cb14749b64aafac68d97a0096b349">#</a>

0 commit comments

Comments
 (0)