Which half?
I think everyone seems to largely agree that the government should definitely have a big role in Americans' lives, but they differ significantly on what issues they think the gov't should be involved in. Relatively few people seem think the gov't should largely leave people alone (although it is popular for some folks to say they feel that way while simultaneously agitating for the opposite).
def decide_position(position)
case position.party do
when GOOD_PARTY
cheer()
return true
when BAD_PARTY
boo()
return false
else
shutdown()
raise InvalidPartyError.new "Warning: Logically impossible situation detected. There are only two parties, and one is good and the other is bad. System shutdown initiated to avoid potential memory corruption"
end
end1. Why is decide_position returning a boolean? The function signature, even without types, doesn't really indicate that it should return a true / false value. Perhaps a better name would be "is_position_good"?
2. Why would the memory get corrupted? Most operating systems should be able to handle such a case.
3. Why do we shut down the entire application? Surely there's a better method rather than killing the entire application due to a single boolean check.
The idea that the behavior of the government is ever a consistent reflection of the aggregated intentions of the electorate is something of a fantasy. No one is intentionally voting for bad policy -- they're getting bad policy in one area as a consequence of voting for good policy in another.