summaryrefslogtreecommitdiff
path: root/content/index.md
diff options
context:
space:
mode:
authora73x <[email protected]>2024-08-27 19:43:56 +0100
committera73x <[email protected]>2024-08-27 20:23:18 +0100
commitd38fc83df3824b840f0b3930e4cb7236bdab84b2 (patch)
tree586a7f940291f933ef2a7e05b20dff21ded6d78a /content/index.md
parentcffb105a9ff8ed5d7aa04e5f4097368f6be38b8e (diff)
feat(content): support templating in content
this is tired person code don't write tired person code
Diffstat (limited to 'content/index.md')
-rw-r--r--content/index.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/content/index.md b/content/index.md
new file mode 100644
index 0000000..e42c4d5
--- /dev/null
+++ b/content/index.md
@@ -0,0 +1,38 @@
+---
+title: me
+---
+* backend cloud software engineer
+* lang: go
+* infra: kubernetes
+
+## tidbits
+
+### #go
+
+* layout packages by what they do, not by their abstract type
+* use channels sparingly. write synchronous methods and allow the caller to make it async
+* `append` modifies the underlying slice, you'll only make this mistake once
+* define interfaces where you use them
+* `make([]int, 5)` has a length and capacity of 5. `([]int, 0,5)` has a length of 0 and capacity of 5.
+ `append()` will only do what you want with the latter
+* don't use `init()`
+* TFBO (test, fix, benchmark, optimise)
+* more CPU != more performance
+ more CPU == more Contention
+
+### #git
+
+* `git reflog`
+* `git commit --fixup=<COMMITISH>`
+ `git rebase origin/main --autosquash`
+
+## resources
+
+* [`proc.go`](https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/runtime/proc.go)
+* [proposal: runtime/metrics: define a recommended set of metrics](https://github.com/golang/go/issues/67120)
+
+## books
+
+* [Designing Data Intensive Applications](https://www.oreilly.com/library/view/designing-data-intensive-applications/9781491903063)
+* [Database Internals](https://www.oreilly.com/library/view/database-internals/9781492040330)
+* [Efficient Go](https://www.oreilly.com/library/view/efficient-go/9781098105709) \ No newline at end of file