Code snippet:
// Dividing int by float doesn't give always same results
fmt.Println(15/4.) // = 3.75
a := 15
fmt.Println(a/4.) // = 3
b := 4.
fmt.Println(a/b) // err: invalid operation: mismatched types int and float64
fmt.Println(a/4.1) // err: (untyped float constant) truncated to int
Fun fact: be careful when you do mathematical operations on different number types in Go. Sometimes you end up with truncated float, sometimes it panics, sometimes you get the right result 🤷♂️
08.01.2025 09:20
👍 1
🔁 0
💬 0
📌 0
Raft
thesecretlivesofdata.com/raft/
25.11.2024 15:26
👍 1
🔁 0
💬 0
📌 0
A Practitioner's Guide to Wide Events | Jeremy Morrell
The existing articles on Wide Events define the concept well but leave the implementation details to the reader.
There have been some good posts on what "wide events" instrumentation is but not as many on how to go about it, what attributes you should add, or how to work with OpenTelemetry
I put everything I've learned in the last few years into one guide jeremymorrell.dev/blog/a-pract...
22.10.2024 16:34
👍 79
🔁 26
💬 9
📌 5
What Is a Senior Engineer, Anyway?
My thoughts on what it means to be a senior engineer.
Lots of career conversations this week, so distilling it down into a post I can refer back to later:
17.11.2024 19:21
👍 4
🔁 2
💬 0
📌 0
Sharing my vibes-based analysis that tries to bring back the told data twitter feeling. Comment below to be added!
go.bsky.app/QDDHHS6
16.11.2024 14:53
👍 100
🔁 19
💬 36
📌 3
I made an infra engineer starter pack. Folks posting about databases, stream processing, durable execution, orchestrators, service meshes, and more.
go.bsky.app/SCZe42X
25.10.2024 01:16
👍 289
🔁 74
💬 44
📌 15