From 8b6403581931d953ba8f194b910d50d68a96b0ac Mon Sep 17 00:00:00 2001 From: steverusso Date: Wed, 29 Jul 2020 20:41:42 -0400 Subject: [PATCH 1/2] Style for code blocks. --- assets/simplesystems.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assets/simplesystems.css b/assets/simplesystems.css index 44a9f49..1ab0f07 100644 --- a/assets/simplesystems.css +++ b/assets/simplesystems.css @@ -340,3 +340,11 @@ button.round, .btn.round { } .blue { --clr: #42A5F5 } + +pre { + background: #eee; + border-radius: 5px; + padding-left: 1rem; + color: black; + font-size: 0.95rem; +} -- 2.45.2 From 0c671c9827555833f0a6d3d953a23ac87d20e536 Mon Sep 17 00:00:00 2001 From: steverusso Date: Wed, 29 Jul 2020 20:42:06 -0400 Subject: [PATCH 2/2] Revert back to a code block. --- content/blog/boolean_names.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/blog/boolean_names.md b/content/blog/boolean_names.md index 6b9adcc..33061af 100644 --- a/content/blog/boolean_names.md +++ b/content/blog/boolean_names.md @@ -20,7 +20,11 @@ A boolean name should give the reader more clarity as its scope expands. A bool ## Bad Boolean Names As with many things in software engineering, it is easier to find mistakes than to do something correctly the first time. Here are some naming conventions to avoid: 1. Names that are already a negation. 'featureTurnedOff' and 'notProd' may make sense in one use case, but they become confusing in a larger context. The following code is both hard to read and ambiguous (what if there is a third environment). -

confA.useProd := !confB.notProd

+ ```go + + confA.useProd := !confB.notProd + + ``` 2. Names that are not negatable. A name such as 'sheets' has ambiguous meaning. It probably has something to do with a spreadsheet, but it is the writer's responsibility to prevent the reader from needing to do an investigation. -- 2.45.2