David A. Black

44 Followers
13 Following
43 Posts
Rubyist of the Pickaxe generation (2000).
No wonder The Well-Grounded Rubyist is #14, with competition like this.... :-)
@Xiy Thanks — I’m very glad it’s been a help to you!
@Xiy I call it the "unary unarray" operator :-)
@victorwynne And on the left-hand side they're repairing/stabilizing the façade of the Columbia Law School, part of which fell off a month or two ago.
@idiosyncratic There's an interesting question of semantics or something there. In a situation where -3 is to the right of 0, one could say that 0..-3 is a forward range. Sort of. I won't press the point though :-) I actually do understand what you mean about the slight anomaly. I've always thought though that ranges being enumerable is -- though very convenient -- a bit of a stretch in some respects.
@idiosyncratic This is an interesting point and I'm trying to articulate why I disagree with it :-) The bottom line is probably just that I'm OK with the whole using negative numbers to index from the right thing, and I see this as part of it. But also, I question the idea that the range object "represents empty". I don't hold the range responsible, so to speak, for the behavior of the array that gets created with #to_a.
@victorwynne Yes but now everyone’s gonna say: What is David talking about?? :-) :-)
@victorwynne I’m almost certain you meant genetic :-) In any case I’m in your camp. Cut it to ribbons and make up for errors with judicious taping and the good will of family — that’s been my approach :-)
@stevenharman I guess I would describe "There's a gem for that" as information, rather than either a solution or a warning. The gem may turn out to be badly written or buggy but its existence per se doesn't tell me whether that's true or not. I'd rather not borrow trouble :-) But I'm all for being thorough in evaluating the costs and benefits.
@sparker The most fun is when I solve the German one in few guesses than the English one :-)