Kind likes

 Like

Liked Ergonomic Map in Go
Post details
In many languages, on of the things I find myself doing is maping over a list to extract some field. For example, coverting a []Person to []Name. Most languages these days have ways to do this pretty easily: Kotlin: people.map { it.Name } JavaScript: people.map(p => p.Name) Rust: people.map(|p| p.Name) Scala: people.map(_.Name) With generics, Go finally can do this in a type safe manner: Map(people, func(t Person) string { return t.

 Like

Liked Elisabeth M (@independentpen@mas.to)
Post details
Alt text isn't just helpful for the sight-impaired. By reading alt text I can identify what the OP is calling attention to in the pic, helping me get the joke or social commentary that would otherwise be illegible to me. (Without this I'm like, I see a thousand details and I don't know which one matters to you.) #ActuallyAutistic

 Like

Liked gwil (@gwil@post.lurk.org)
Post details
Attached: 1 image Made something a bit different today: a colour-blindness friendly visual hash. In reality it just visualises bytes, with 256 possible options for each cell, so any hashing function can be used with this (or none at all, just put in bytes). Putting a little process diary for this in the replies.