diary
home twitter letterboxd spotify instagram pinterest medium wikiart panel ☰
lr0 / diary / entry #107 · 28 december 2025
sunday, 28 december 2025 #107

00:00 Why Go Maps Return Keys in Random Order

There's a good answer to this question:

So that no one gets dumb enough to depend on them being in any particular order because the order can change for reasons under the hood and out of your control.

Pragmatically speaking, this is a bad design. However, from an engineering perspective, it's a perfect one. This is the same way I like to think about OOP; yes it's really powerful, but it's not suitable enough for engineering once you get so many rules that the team should work with, that are not enforced by any means. #Go #Programming

c. lr0 2026