diff options
Diffstat (limited to 'posts')
-rw-r--r-- | posts/don't_repeat_yourself.md | 9 | ||||
-rw-r--r-- | posts/my_setup.md | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/posts/don't_repeat_yourself.md b/posts/don't_repeat_yourself.md new file mode 100644 index 0000000..d39267e --- /dev/null +++ b/posts/don't_repeat_yourself.md | |||
@@ -0,0 +1,9 @@ | |||
1 | Looping constructs are bad. Consider this: | ||
2 | |||
3 | ``` | ||
4 | for (int i = 0; i < arr.len(); i++) { ... } | ||
5 | ``` | ||
6 | |||
7 | It is not obvious at all, what this loop does. Is it | ||
8 | supposed to iterate over the elements of the array? Is it | ||
9 | just a variable binding that increases up to `arr.len()`? | ||
diff --git a/posts/my_setup.md b/posts/my_setup.md index 8d04336..1886e02 100644 --- a/posts/my_setup.md +++ b/posts/my_setup.md | |||
@@ -1,7 +1,7 @@ | |||
1 | Decided to do one of these because everyone does one of | 1 | Decided to do one of these because everyone does one of |
2 | these. | 2 | these. |
3 | 3 | ||
4 | ![scrot](https://files.nerdypepper.me/Hb.png) | 4 | ![scrot](https://files.nerdypepper.tech/Hb.png) |
5 | 5 | ||
6 | My entire setup is managed with GNU `stow`, making it easier | 6 | My entire setup is managed with GNU `stow`, making it easier |
7 | to replicate on fresh installations. You can find my | 7 | to replicate on fresh installations. You can find my |