Ardavan
ardavan.dev
Ardavan
@ardavan.dev
You expect the microwave team to communicate with the oven team?
January 15, 2025 at 9:24 PM
I generally dislike anything that causes me to scroll back up, takes me out of the flow. I'd much rather scroll a long page
January 15, 2025 at 9:07 PM
Never go full rewrite
January 12, 2025 at 3:26 PM
These operations have performance costs, which the runtime minimizes with a sensible strategy: it usually grows the capacity by more than one each time it needs to grow, and this growth is smaller for larger slices.

From the awesome book by Jon Bodner: Learning Go
January 11, 2025 at 5:58 PM
Slices are essentially sequences of values in consecutive memory locations, when a slice grows beyond its capacity, the runtime must allocate new memory, copy data and update the pointers. Then the garbage collector must reclaim the old memory.
January 11, 2025 at 5:58 PM