Summary Files Commits Branches @commit @diff @stats
path: root / src / blog / when-a-language-forces-simpler-thinking
diff options
context:
space:
mode:
Commit88a5b49611a0a4d1eb47ba86b9123159443ce4cb (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-12-23 22:54:20 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-12-23 22:54:20 +0200
Files22ce3c36887f506898cc7636a80abf245ae240e7 /src/blog/when-a-language-forces-simpler-thinking
syndamia.com-88a5b49611a0a4d1eb47ba86b9123159443ce4cb.tar
syndamia.com-88a5b49611a0a4d1eb47ba86b9123159443ce4cb.tar.gz
syndamia.com-88a5b49611a0a4d1eb47ba86b9123159443ce4cb.zip
Parent0be8d4b427a0f0944552769edc9a080dbaf79cee (diff)
feat!: Update dunbar after inline brace character swap
1 files changed, 5 insertions, 5 deletions
-rw-r--r--src/blog/when-a-language-forces-simpler-thinking/index.du10
diff --git a/src/blog/when-a-language-forces-simpler-thinking/index.du b/src/blog/when-a-language-forces-simpler-thinking/index.du
index d725e3d..fcf3c7e 100644
--- a/src/blog/when-a-language-forces-simpler-thinking/index.du
+++ b/src/blog/when-a-language-forces-simpler-thinking/index.du
@@ -21,7 +21,7 @@ Name File size sum Subfolder "e" in "a"
| |
Subfolder "a" in "/" Subfolder "d" in "/"
-Now, after parsing a file, you'll need to update the file size sum in the =[current]= folder =[and]= in the =[parent]= folder.
+Now, after parsing a file, you'll need to update the file size sum in the [=current=] folder [=and=] in the [=parent=] folder.
To do such a thing, you would either need to
.bulleted
@@ -56,7 +56,7 @@ Now this solution worked great! With this I was able to [url https://gitlab.com/
#### Appendix
In the exercise, you have commands for navigating between folders.
-Going up a folder is trivial, but folders can have duplicate names if they're inside different parent folders, so going to a sub folder requires to search by it's name *[and]* parent index.
+Going up a folder is trivial, but folders can have duplicate names if they're inside different parent folders, so going to a sub folder requires to search by it's name [*and*] parent index.
Surprisingly enough, in my solution [url https://gitlab.com/Syndamia/advent-of-code/-/tree/main/2022/Day07/part-one.cl#L15-17 (lines 15-17)], I just search from the end to the beginning of all parsed folders for a name.
This works fine for this exact task and exact inputs, however in general this isn't correct. In a structure like this:
@@ -92,8 +92,8 @@ $ cd ..
$ cd ..
$ cd a
-'footnote mkfile `[mkfile]` is like `[touch]`, but you could specify a size and the file will be filled with that many zeroes. It seems to exist solely in [url https://docs.oracle.com/cd/E26502_01/html/E29031/mkfile-1m.html Solaris] (as a system administration command) and [url https://ss64.com/osx/mkfile.html MacOS]. I mentioned it and not `[touch]`, since the latter only creates empty files, which wouldn't contribute to the total file size sum.
+'footnote mkfile [`mkfile`] is like [`touch`], but you could specify a size and the file will be filled with that many zeroes. It seems to exist solely in [url https://docs.oracle.com/cd/E26502_01/html/E29031/mkfile-1m.html Solaris] (as a system administration command) and [url https://ss64.com/osx/mkfile.html MacOS]. I mentioned it and not [`touch`], since the latter only creates empty files, which wouldn't contribute to the total file size sum.
-The last `[\$ cd a]` actually puts you into `[/b/a/]`, not `[/a/]`.
+The last [`\$ cd a`] actually puts you into [`/b/a/`], not [`/a/`].
The main thing that saves us (me) is that you can only change directory and list structure (in current directory), so you would only ever be visiting a folder once.
-If a folder's contents were `[ls]`'d more than once, or they could change (for example having an `[mkfile]` [$mkfile] command), a proper search would be required.
+If a folder's contents were [`ls`]'d more than once, or they could change (for example having an [`mkfile`] [$mkfile] command), a proper search would be required.