View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Select News Sources

External Image
And here we are, we get to choose some sources. We chose ESPN TV Listings, BBC Science and CNN national news. As you can see National News is our primary category, so CNN National News will be on the front page. We press the Save Settings button to save our preferences and then we Start The Server.

Again, this is very simple to use.

Something that we had to fix was one of our methods in the class that layed out the articles (LayoutManager). At first we had the following code in one method that called each parser. We had a parser for each source. That's 21 parsers. Now imagine how big this method was.

External Image

Therefore, we delegated some responsibility to other methods like the one above.

Now that we split it up like this, it is easier to change the way our LayoutManager lays out articles from each source separately instead of searching through one huge method.

Links to this Page