2010年9月25日星期六

The name of the implementation class comes

The findings were compiled by Les Krantz, author of "Jobs Rated Almanac," and are based on data from the U.S. Bureau of Labor Statistics and the Census Bureau, as well as studies from trade associations and Mr. Krantz's own expertise.

According to the study, mathematicians fared best in part because they typically work in favorable conditions -- indoors and in places free of toxic fumes or noise -- unlike those toward the bottom of the list like sewage-plant operator, painter and bricklayer. They also aren't expected to do any heavy lifting, crawling or crouching -- attributes associated with occupations such as firefighter, auto mechanic and plumber.

The study also considers pay, which was determined by measuring each job's median income and growth potential. Mathematicians' annual income was pegged at $94,160, but Ms. Courter, 38, says her salary exceeds that amount.
The hidden global internment network is a central element in the CIA's unconventional war on terrorism. It depends on the cooperation of foreign intelligence services, and on keeping even basic information about the system secret from the public, foreign officials and nearly all members of Congress charged with overseeing the CIA's covert actions.

The existence and locations of the facilities -- referred to as "black sites" in classified White House, CIA, Justice Department and congressional documents -- are known to only a handful of officials in the United States and, usually, only to the president and a few top intelligence officers in each host country.

The CIA and the White House, citing national security concerns and the value of the program, have dissuaded Congress from demanding that the agency answer questions in open testimony about the conditions under which captives are held. Virtually nothing is known about who is kept in the facilities, what interrogation methods are employed with them, or how decisions are made about whether they should be detained or for how long.

The name of the implementation class comes from the fact that I'm getting my list from a colon delimited text file. I'll spare you the details, after all the point is just that there's some implementation.

Now if I'm using this class for just myself, this is all fine and dandy. But what happens when my friends are overwhelmed by a desire for this wonderful functionality and would like a copy of my program? If they also store their movie listings in a colon delimited text file called "movies1.txt" then everything is wonderful. If they have a different name for their movies file, then it's easy to put the name of the file in a properties file. But what if they have a completely different form of storing their movie listing: a SQL database, an XML file, a web service, or just another format of text file? In this case we need a different class to grab that data. Now because I've defined a MovieFinder interface, this won't alter my moviesDirectedBy method. But I still need to have some way to get an instance of the right finder implementation into place.

没有评论:

发表评论