Saturday, September 27, 2008

Clean Code

A programmer only needs to be able to do two things: solve problems and write clean code. The former is a product of talent and experience. The latter is a skill that can be learned by anyone.

Friday, September 26, 2008

Tuesday, September 16, 2008

CQ Politics | Political Insider - Obama vs. Palin

This says it all:

* If you grow up in Hawaii, raised by your grandparents, you're "exotic, different."
* Grow up in Alaska eating moose burgers, a quintessential American story.

* If your name is Barack you're a radical, unpatriotic Muslim.
* Name your kids Willow, Trig and Track, you're a maverick.

* Graduate from Harvard law School and you are unstable.
* Attend 5 different small colleges before graduating, you're well grounded.

* If you spend 3 years as a community organizer, become the first black President of the Harvard Law Review, create a voter registration drive that registers 150,000 new voters, spend 12 years as a Constitutional Law professor, spend 8 years as a State Senator representing a district with over 750,000 people, become chairman of the state Senate's Health and Human Services committee, spend 4 years in the United States Senate representing a state of 13 million people while sponsoring 131 bills and serving on the Foreign Affairs, Environment and Public Works and Veteran's Affairs committees, you don't have any real leadership experience.
* If your total resume is: local weather girl, 4 years on the city council and 6 years as the mayor of a town with less than 7,000 people, 20 months as the governor of a state with only 650,000 people, then you're qualified to become the country's second highest ranking executive.

* If you have been married to the same woman for 19 years while raising two daughters, all within Protestant churches, you're not a real Christian.
* If you cheated on your first wife with a rich heiress, and left your disfigured wife and married the heiress the next month, you're a Christian.

* If you teach responsible, age appropriate sex education, including the proper use of birth control, you are eroding the fiber of society.
* If , while governor, you staunchly advocate abstinence only, with no other option in sex education in your state's school system while your unwed teen daughter ends up pregnant, you're very responsible.

* If your wife is a Harvard graduate lawyer who gave up a position in a prestigious law firm to work for the betterment of her inner city community, then gave that up to raise a family, your family's values don't represent America's.
* If you're husband is nicknamed "First Dude", with at least one DWI conviction and no college education, who didn't register to vote until age 25 and once was a member of a group that advocated the secession of Alaska from the USA, your family is extremely admirable.

Saturday, September 06, 2008

No, Actually, It's that the Economy is Falling Apart - Swampland - TIME

Joe Klein writes exactly how I feel about this election: "Maybe I'm getting old, maybe it's that I've seen this act so often before, maybe it's that the people I talk to when I go out on the road really are having a harder time paying for things like health care, gasoline and college tuition, but I'm finding the Republican attempts to derail the conversation from the actual state of the country really depressing and disgraceful this year. They practice Orwellian politics of the crudest sort. They are trying to sell a big lie--that the election is about the social issues of the 1960s, or Barack Obama's patriotism or his eloquence, or the 'angry left,' when it's really about turning toward a more moderate path after the ideological radicalism and malfeasance of the past eight years."

Thursday, September 04, 2008

DEPENDENCY PARADOX - August 22, 2005

DEPENDENCY PARADOX - August 22, 2005

This is an op-ed in Fortune magazine by Austin Goolsbee - Obama's senior economist:

"In the world of oil, we're the proud sellers of some very high-priced soda. Most oil that was cheap to produce from the U.S. was used up long ago. Today the largest potential sources of oil in North America, be they the shale deposits in Utah and Wyoming, the oil sands of Alberta, or the deep-water offshore pools in the Gulf of Mexico, are all much more expensive than the cheap oil coming out of the Middle East. Our average production costs in some places are as high as $15 per barrel. Cost estimates for places like Iran and Saudi Arabia go as low as $1.50 per barrel.

If U.S. demand (which is the largest of any country in the world) falls substantially, it will drive down oil prices. When prices are low, many U.S. oilfields become too expensive to keep open. That is why our lowest share of foreign oil imports in the past three decades came in the early 1980s--when oil shocks drove prices to record highs and encouraged development of the higher-cost U.S. sources.

Without question, driving down oil prices by reducing our demand could reduce the total amount of money going to the Middle East. We should be aware, though, that this reduction will cause far greater damage to the world's high-cost producers of oil, such as those in the U.S. than it does to OPEC, and there is little chance it will reduce the share of our oil that comes from abroad. If we are to seriously contemplate lowering our dependence on foreign oil, we must find a way to reduce the cost of producing alternative energy sources. Hopefully, sources like wind, solar power, or hydrogen fuel cells will eventually get to a point where they become cheaper than fossil fuels. But the sad reality is that while we might be able to cut greenhouse gas emissions by reducing our demand for oil, Bush's "foreign tax on the American dream" is not getting cut anytime soon."

Basic economics.