78 karma · joined Aug 23, 2023 (3y ago) · 61 submissions
comment 1w ago · link · parent
comment 1w ago · link · parent
comment 10mo ago · link · parent
I only got it right because I looked up the password on my Mac, whose keychain app displays them in gloriously readable monospaced font. FFS
comment 10mo ago · link · parent
comment 1y ago · link · parent
All of this depends on having a sane email client though, doing it via outlook or gmail is a nightmare and I suspect this is the root of many people’s aversion to email.
comment 1y ago · link · parent
I recently saw a lady try to make this point to them, only for the staff to keep repeating “but it sticks out”. In the end, the lady had to take the belt off her jacket and wrap it around the bag just to make the point. What a waste of time.
People who defend this airline “because it’s cheap” are just degrading themselves quite frankly. It’s awful and we shouldn’t be accepting of it.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
It’s good to isolate your dependencies within the code :)
comment 1y ago · link · parent
func Foo(r io.Reader) {
var m MyStruct
binary.Read(r, binary.LittleEndian, &m)
}
but we may be operating in different contexts where the underlying copy is or isn't a problem. That said, depending on the implementation of the reader passed in, the bytes might be being streamed from elsewhere, in which case the copying is minimised.comment 1y ago · link · parent
You have to define the struct for sure, but beyond that you just pass it to binary.Read and it comes back with the fields populated. I don’t see how you’d avoid defining the struct.