Some interesting and useful syntax here! However...
I’m also partial to this trick for grabbing just the first element of an array.
family, = socket.peeraddr
This is the sort of code that really turns me off when I'm digging through Ruby. It adds no clarity and actually looks like a typo. What's wrong with this?
I’m also partial to this trick for grabbing just the first element of an array.
This is the sort of code that really turns me off when I'm digging through Ruby. It adds no clarity and actually looks like a typo. What's wrong with this? It's much clearer what's going on.