From 46fcd208643ef82ca5d8a1806b55159d26d0656a Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Sun, 15 Sep 2024 14:36:31 -0500 Subject: [PATCH] some typos that were pointed out to me by a reader. --- content/posts/cli-renaissance/index.md | 15 +++++++-------- content/resume.md | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/content/posts/cli-renaissance/index.md b/content/posts/cli-renaissance/index.md index bd47e0d..9c4b4ae 100644 --- a/content/posts/cli-renaissance/index.md +++ b/content/posts/cli-renaissance/index.md @@ -93,12 +93,12 @@ and why I think this trend is a good thing. ## History The terminal and the command line interface have been staples of computer user interfaces before computer monitors were even available, -with some of the first computers offering an interactive mode in the late 1950's. +with some of the first computers offering an interactive mode in the late 1950s. The recognizable Linux terminal traces its linage to the very first version of Unix in 1971. Many utilities that a Linux user interacts with every day, commands like `rm`, `cat`, `cd`, `cp`, `man`, and a host of other core commands trace their initial versions to this first version of Unix. Other tools are a bit newer, such as `sed` (1974), `diff` (1974) `bc` (1975), `make` (1976), or `vi` (1976). -There were a few more tools introduced in the 90's, such as `vim` (1991) and `ssh` (1995), but you get the picture. +There were a few more tools introduced in the '90s, such as `vim` (1991) and `ssh` (1995), but you get the picture. The majority of the foundational CLI tools on a Linux pc, even one installed yesterday, are older than Linux itself is. ## Ok, so? @@ -203,7 +203,6 @@ but its an extremely usable IDE out of the box thanks to having all of its featu ### Helpful error messages - When the user does do something wrong, it is vital to let them know exactly what, where, and how it went wrong, and if at all possible, what action the user can do to fix it. `Operation Failed`, `Error` or `syntax error` on their own are horrible error messages. @@ -217,7 +216,7 @@ This is confusing because you are trying to checkout a branch, you arent thinkin Another example, I covered [before](../nushell) is the contrast between Bash and Nushell. Consider the following script: -{{}} +{{}} $ for i in $(ls -l | tr -s " " | cut --fields=5 --delimiter=" "); do echo "$i / 1000" | bc done @@ -225,7 +224,7 @@ done This gets the sizes of all the files in KiB. But what if we typo the cut field? -{{}} +{{}} $ for i in $(ls -l | tr -s " " | cut --fields=6 --delimiter=" "); do echo "$i / 1000" | bc done @@ -248,12 +247,12 @@ you have to start print debugging. The equivalent in nushell would be: -{{}} +{{}} > ls | get size | each {|item| $item / 1000} {{}} and the equivilant error would be: -{{}} +{{}} > ls | get type | each {|item| $item / 1000} Error: nu::shell::eval_block_with_input @@ -279,7 +278,7 @@ Error: nu::shell::type_mismatch Though the first error isnt helpful, the second one tells us right away that `$item` is not what we expect it to be, hopefully pointing us to the `get type` mistake. -Nushells error messages are miles ahead of other shells just... +Nushell's error messages are miles ahead of other shells just... being useful, helping you find where you made an error, rather than just telling you theres an error *somewhere*. diff --git a/content/resume.md b/content/resume.md index ef3a00e..cc6edbd 100644 --- a/content/resume.md +++ b/content/resume.md @@ -108,7 +108,7 @@ Build custom split keyboards with a focus on ergonomics and portability. ### National Cyber League **Four-time competitor in the National Cyber League**\ -2021, '22, and '23 +2021, ’22, and ’23 Competed for NDSU in the bi-annual National Cyber League in individual and team games, placing in the top 500 individuals and top 200 teams nationwide for three competitions.