summaryrefslogtreecommitdiff
path: root/zettelkast
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-01-08 10:48:09 +0100
committerJasper Ras <jras@hostnet.nl>2025-01-08 10:48:09 +0100
commited0753ad224f0c65133bd7a63180257eecd9f5e3 (patch)
treecc662868574fe17db58be9e0faadd452c84dc59c /zettelkast
parent493be30dc981eaf762a95a1218f96893b1976727 (diff)
vault backup: 2025-01-08 10:48:09
Diffstat (limited to 'zettelkast')
-rw-r--r--zettelkast/Notes/010720231037 - With function.md18
-rw-r--r--zettelkast/Notes/010920231434 - (UNIX) Watch.md1
-rw-r--r--zettelkast/Notes/20240613112 - Aggregates should protect invariants.md2
-rw-r--r--zettelkast/Notes/202406131159 - Invariant.md6
4 files changed, 2 insertions, 25 deletions
diff --git a/zettelkast/Notes/010720231037 - With function.md b/zettelkast/Notes/010720231037 - With function.md
deleted file mode 100644
index d646a8f..0000000
--- a/zettelkast/Notes/010720231037 - With function.md
+++ /dev/null
@@ -1,18 +0,0 @@
-#nix-lang
-
-The `with` function brings all attributes from a given set, e.g nixpkgs, into the local scope. Making them accessible as if they were declared in the same file.
-
-An example, bringing everything from nixpkgs into scope:
-```
-with import <nixpkgs>;
-with python310Packages; <-- declared in nixpkgs
-
-buildPythonPackage <-- declared in python310Packages
-```
-
-The import statement is required here because imports a nix expression from another source, in this case nixpkgs.
-It is not required at line two, because python310Packages itself is already in the local scope.
-
-
----
-[Nix Manual](https://nixos.org/manual/nix/stable/language/index.html)
diff --git a/zettelkast/Notes/010920231434 - (UNIX) Watch.md b/zettelkast/Notes/010920231434 - (UNIX) Watch.md
deleted file mode 100644
index dafeb80..0000000
--- a/zettelkast/Notes/010920231434 - (UNIX) Watch.md
+++ /dev/null
@@ -1 +0,0 @@
-`watch (1)` periodically executes the executable on argv. It can be used to reload the output of a command, like `sudo watch ovs-dpctl dump-flows` . \ No newline at end of file
diff --git a/zettelkast/Notes/20240613112 - Aggregates should protect invariants.md b/zettelkast/Notes/20240613112 - Aggregates should protect invariants.md
index 7e4d67c..0fd5ef7 100644
--- a/zettelkast/Notes/20240613112 - Aggregates should protect invariants.md
+++ b/zettelkast/Notes/20240613112 - Aggregates should protect invariants.md
@@ -1,4 +1,4 @@
-An invariant should be designed in such a way that it can enforce an invariant. This means even if they require another aggregate to do so, therefore it's allowed to reference other aggregates.
+An [[202406131159 - Invariant]] should be designed in such a way that it can enforce an invariant. This means even if they require another aggregate to do so, therefore it's allowed to reference other aggregates.
---
Related:
diff --git a/zettelkast/Notes/202406131159 - Invariant.md b/zettelkast/Notes/202406131159 - Invariant.md
index 0109c04..22ae337 100644
--- a/zettelkast/Notes/202406131159 - Invariant.md
+++ b/zettelkast/Notes/202406131159 - Invariant.md
@@ -1,5 +1 @@
-An invariant is a condition that simply must always be true.
-
----
-Related:
-- [[20240613112 - Aggregates should protect invariants]] \ No newline at end of file
+An invariant is a condition that simply must always be true. \ No newline at end of file