Monday, August 31, 2009

FizzBuzz

From opening eclipse to verifying the correct output of my FizzBuzz program, I took 6 minutes 34 seconds.

PUBLIC class FizzBuzz {

  
PUBLIC static void main(String[] args) {

      
FOR(INT i = 1; i <= 100; i++) {
          
IF ((i % 15) == 0) {
               System.out.println
("FizzBuzz");
          
}
          
ELSE IF ((i % 3) == 0) {
               System.out.println
("Fizz");
          
}
          
ELSE IF ((i % 5) == 0) {
               System.out.println
("Buzz");
          
}
          
ELSE { System.out.println(i); }
       }
      
   }

}


I didn't run into any of the problems that I had when trying writing this program for the first time. Eclipse ran as expected and I was able to write and run the FizzBuzz program quickly. The first time I tried this program in class, I was very rusty in Java, having not used it in a while. I forgot the syntax and was missing parts of the main() function.

The FizzBuzz program has revealed to me that I needed to review my Java.

Sunday, August 30, 2009

OSS Experience

RSS Owl RSS / RDF / Atom Newsreader
http://sourceforge.net/projects/rssowl/

Overview: RSS Owl is an open-source RSS feed aggregator. It is used to organize and view various feeds in different formats including: RSS, RDF, and Atom.

Prime Directive 1: "The system successfully accomplishes a useful task." The main function of RSS Owl is a feed aggregator. It consolidates all of the feeds and allows you to view them in a common view. You can also import feeds from different applications through the OPML format. When you get the newsfeeds that you want, you can view the items in the feeds; both online and offline.

Prime Directive 2: "An external user can successfully install and use the system." As a non-developer, it was easy to install and use the system. Downloading and installing the program was simple and straightforward. When you start it for the first time, it lets you choose to view a tutorial. Importing feeds was quick and I was viewing my newsfeeds shortly after.

Prime Directive 3: "An external developer can successfully understand and enhance the system." It is easy for an external developer to contribute to the program. An API is provided for anyone interested in the project. There is both a wiki and discussion forum for new developers to get more information and learn from other developers.