I was recently having a discussion with a friend about whether our "system" of medicine in the US is better than ones in Canada, the UK, the EU, etc. For sake of argument, I took the position that it arguably was (although I'm definitely not convinced of that). We came upon an interesting hypothetical example: assume that in system A, half the people get treated right away for disease X and half the people never get treated (because they can't afford to). In system B, everyone gets treated 6 months after being diagnosed with disease X. Now, it turns out that if you're treated for disease X right after first being diagnosed, your survival rate is 90%. If you wait 6 months, however, your survival rate is only 25%. In this hypothetical situation, 45% of the population under system A will survive and only 25% of the population under system B will survive.
My friend agreed that, for this case, system A was a better system—but only if the 50% were chosen randomly and not by whether or not they had more money. I argued (again, really just for the sake of arguing, although I think I have a valid point here) that what family you are born into is random and from there on making good choices (or possibly unscrupulous choices) will make you more likely to be rich, hence using money as a means to divine who gets treated isn't any worse than choosing at random.
I'm curious, what are your thoughts?
Per the police report, Washington State Representative Richard Curtis (Republican) (representing La Central) was having his sexual orientation used in an effort to black-mail him. In the House, he has acted against gay rights, making this another example of presumed hypocrisy. I'm a little ashamed to admit that I'm experiencing a some schadenfreude here. Of course, this is an excellent time to introduce people to this comic strip if they haven't already seen it.
Edit: <ignore>He's a State Representative for Louisiana, not Washington (as I originally wrote), per this source.</ignore> Strike that previous statement. He represents La Central in Washington State, not central Louisiana. I really need to read for comprehension better.
As the nation slips into a new "Not So Great Depression," Republicans are embracing a new kind of Compassionate Conservatism that should appeal to poverty-stricken people who've lost their homes, jobs and traditional abhorrence of homosexuality and pedophilia. Leading the new effort is Wisconsin Republican leader and Brown County GOP Chairman Donald Fleischman, currently facing charges of child enticement, contributing to the delinquency of a child and exposing himself to a child -- all because he (allegedly) wanted to show his love to a runaway boy!
Of course, this one is much worse than the Larry Craig one as it involves a teenager and an abuse of Fleischman's authority. What I don't know yet is to what degree hypocrisy is involved. Was this guy a log-cabin Republican, or one of the typical self-loathing closeted Republicans who push anti-homosexual agendas in an effort to hide their own sexuality?
My 2005 Civic Hybrid has already paid for itself. By that, I mean that the additional cost of buying the hybrid vs. a similarly equipped Civic has already been recouped - sort of. By "sort of", I mean that according to the Kelley Blue Book value, my hybrid is worth $1600 more than a similarly equipped non-hybrid. Add that to the $400 I got back from Uncle Sam, and the approximately $400 less in gas that we've paid (based on actual driving mpg and about 18k miles, ymmv), and we've passed the approximately $2200 extra we paid for the privilege of owning a hybrid. Accuse me of contributing to the "smug" content in the air if you must, but I'll admit to being pleased with myself.
Just for the record, the decision was not made primarily for financial reasons, so the fact that it has already "paid off" is just icing on the cake.
For those wondering why I bought the Civic Hybrid (as opposed to the Prius, for example), it really had to do with my familiarity and satisfaction with the Civic. Our last car was a 1995 Civic that had about 140k miles on her (IIRC), and had at least another 140k miles in her if she hadn't been hit by a semi. Yes, I was driving at the time - at approximately 70 mph. For those who think bigger cars are safer, I suspect that in this case I would have been far more likely to have been injured if I had been in an SUV, for example. As it was, my wife and I walked away (or were towed away) without a scratch on us. That strongly contributed to us buying another Civic.
Both groups have similar misconceptions about the nature of explanation: they feel that unless you understand everything, you understand nothing.
Here's the source, but no fair looking until after you've made your guess.
I've had this problem in an archeology database I've been working on. Simply, I want "Room 11" to come after "Room 2", "House 3" to come before "House 11", etc. Now, there are some simple ways to handle this problem, if those are the only types of entries. However, there's also "Room A", "Room 11A", and possibly even "Room 11A-2" and "Room 11A-11" (again, 2 < 11). So, how to solve this problem? Well, since this is a Ruby on Rails project, I've solved it like this:
def smartComp (x,y)
digitRegex =
if xMatch = digitRegex.match(x)
if yMatch = digitRegex.match(y)
xn = xMatch[0].to_i
yn = yMatch[0].to_i
if xn == yn
# Recursive call on remainder
smartComp(xMatch.post_match, yMatch.post_match)
else
xn <=> yn
end
else
1 # numbers are "greater than" letters
end
elsif x.size > 0
if digitRegex =~ y
-1 # letters are "less than" numbers
elsif y.size > 0
charRegex =
xMatch = charRegex.match(x)
yMatch = charRegex.match(y)
if xMatch[0] == yMatch[0]
# Recursive call on remainder
smartComp(xMatch.post_match, yMatch.post_match)
else
x.upcase <=> y.upcase # Case insensitive
end
else
x <=> y
end
else
x <=> y
end
end
Thoughts, comments? Feel free to be brutal.
For those who don't know how sorting works in Ruby, you could sort using this routine by:
array.sort{ |x,y| smartComp(x,y) }
In case you're wondering why I didn't actually create a smartSort routine that surrounds this, it has to do with the fact that the actual sort I'm doing is somewhat more complex.
My main concern is that it feels like what I'm doing is intuitively simple, the "Ruby way" would seem to dictate a simple solution, and my solution feels somewhat inelegant to me.
This same idea could be extended to other controlled substances. Do you think this would be a good idea? If not, why? Either way, what other side effects would you predict? (Note: I already know it'll never happen.)
All life evolves by the differential survival of replicating entities. -- Dawkins