Ardavan
ardavan.dev
Ardavan
@ardavan.dev
Reposted by Ardavan
Just published a video sharing some key guidelines I always follow when creating application database migrations. Check it out: youtu.be/OZGbySrPhX0
Avoid Database Cascade Deletes and Default Values – Here’s Why
YouTube video by Nuno Maduro
youtu.be
January 20, 2025 at 12:07 PM
Reposted by Ardavan
New devlog!
👉 www.youtube.com/watch?v=MXpM...

- ☀️ Day/night cycles
- 🏔️ Terrain
- 🌊 Water
- 🔨 Level design
- 🌷 Flowers and Trees

Sorry it took so long, but I didn't want to rush things.
I hope you guys like it.
January 6, 2025 at 12:09 PM
Just learned how the Go runtime calculates the amount of memory to allocate to a slice growing beyond its capacity.

As of Go 1.18, if the slice capacity is less than 256, it doubles. Beyond that, growth is calculated as:

(current_capacity+768) / 4

which means it slowly converges at 25% growth.
January 11, 2025 at 5:58 PM