Recently Latin American countries have voiced their opposition to prop 19 (it would legalize recreational marijuana use) because it will cause confusion. This is hogwash. While it might be a little curious to a Columbian that he can go to jail for growing pot while a Californian will not; it's no more confusing than a Bolivian growing coca legally and a Californian not. Wasn't Evo Morales a coca grower? Legalizing Marijuana if anything will lead to less confusion not more.
In this Rails project I'm running I need to set a whole bunch of individual variables to 'disabled' at once depending on the group the current user belongs to. We can use multiple assignment in this case but with a caveat. Multiple assignments are a quick way of setting a lot of variables at once. h, k = 1,2 => [1,2] h => 1 k => 2 but h, k = 1 => 1 h => 1 k => nil In that case we can do this: h = k = 1 => 1 h => 1 h => 1 Beware this sets them to the same object. So if you change one you change both. h = k = [] h << 1 h => [1] k => [1] While we're at it here is how to reverse two variables: h = 1 k = 2 h,k = k,h h => 2 k => 1
Hey, stupid people will believe anything.
ReplyDeleteMost of Indiana doesn't use Daylight Savings Time. Apparently, the reason the Indiana legislature voted it down was that "changing the time the cows get milked will confuse them."
It's just another illogical argument that sounds good as a gut reaction from most people (who won't think deeper about it) but falls flat if you actually consider it.
A well-informed populace is vital to good government. That's why most governments think it's in their best interest to keep the populace undereducated and misinformed.