commit 95df7ab0276b566356de9fe882b3993879c737f5 parent 931503bedc526b0f8a0a009fb41bd68d9712908a Author: thing1 <thing1@seacrossedlovers.xyz> Date: Wed, 8 Oct 2025 11:57:38 +0100 hade 2 lectures Diffstat:
| A | CS12020/08.10.25.md | | | 17 | +++++++++++++++++ |
| A | CS18120/08.10.25.md | | | 4 | ++++ |
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/CS12020/08.10.25.md b/CS12020/08.10.25.md @@ -0,0 +1,17 @@ +08/10/25 +======== + +Boolean operators +----------------- + +- `&&` means if both conditions are true +- `||` means if either conditions are true +- `!` flips the value + +Defensive programming +--------------------- + +- don't fail silently +- when something errors, move to a safe state (turn off the motor or whatever) + + diff --git a/CS18120/08.10.25.md b/CS18120/08.10.25.md @@ -0,0 +1,4 @@ +08/10/25 +======== + +