FizzBuzz, Enterprise Edition

Those of you who have been keeping up with the programming blogosphere have probably heard of FizzBuzz by now. Well, in the spirit of this, I decided to create my own overly complicated FizzBuzz: FizzBuzz, Enterprise Edition.

As we all know, Java is the best language for writing enterprise applications, so that’s what I went with. Here’s a quick overview of the code:

  • The FizzBuzz class is where most work is done. This class is a Singleton since we only create one instance of it.
  • The doFizzBuzzApplication() method generates a list of Number objects by reading a file containing all the numbers from 1 to 100.
  • It then creates a new instance of the FizzBuzzOutputManager class, sending it the list of Numbers to be printed.
  • The doOutput() method of the FizzBuzzOutputManager class goes through the Number list, checking if the current object is an instance of numberDivisibleByThree, numberDivisibleByFive, etc. It then prints out the appropriate message on the screen.
  • Like all good enterprise applications, there’s a lot of code in there from past versions that does absolutely nothing. The program also generates a few worthless files when it runs.

You can download the source here.

This shouldn’t be too hard to out-enterprise (especially if you throw in some SOAP web services…). If anyone else has an unnecessarily complicated FizzBuzz, I’d love to see it.

Advertisements

10 Responses to “FizzBuzz, Enterprise Edition”

  1. Enigma Says:

    How about a version in COBOL? Can’t get more enterprise or convoluted than that:

    http://www.fileden.com/files/2007/3/4/851496/fizzbuzz-contest-2.cob

    Compiles on the OpenCOBOL.org compiler.

    Disclaimer: I never coded COBOL in an enterprise, I’m just twisted enough to use it.

  2. $anchor$basketball Betting,final Four,final Four Betting,final Four Gambling,final Four Sports Book,final Four Sportsbook,march Madness,march Madness Betting,march Madness Gambling,march Madness Sports Book,march Madness Sportsbook,ncaa,ncaa Betting,ncaa Says:

    $anchor$basketball Betting,final Four,final Four Betting,final Four Gambling,final Four Sports Book,final Four Sportsbook,march Madness,march Madness Betting,march Madness Gambling,march Madness Sports Book,march Madness Sportsbook,ncaa,ncaa Betting,…

    $anchor$basketball Betting,final Four,final Four Betting,final Four Gambling,final Four Sports Book,final Four Sportsbook,march Madness,march Madness Betting,march Madness Gambling,march Madness Sports Book,march Madness Sportsbook,ncaa,ncaa Betting,nc…

  3. feng shui massachusetts Says:

    feng shui massachusetts…

    feng shui massachusetts…

  4. staples coupons 2013 Says:

    What’s up, I read your blog daily. Your writing style is witty, keep doing what
    you’re doing!

  5. marketing manager job description Says:

    Spot on with this write-up, I honestly feel this amazing site needs far more attention. I’ll probably be back again to read through more,
    thanks for the info!

  6. Rosaline Says:

    Hey! This post couldn’t be written any better!
    Reading through this post reminds me of my previous room mate!
    He always kept talking about this. I will forward this page to him.
    Pretty sure he will have a good read. Thanks for sharing!

  7. Nokia Lumia 530 dirilis Says:

    Coming to the hardware, it is nothing short of impressive.
    Although there was difficulty in choosing, the variety was a good thing.
    If you cannot afford to buy an i – Phone or a Samsung Galaxy S2, cheaper smartphones are an alternative to expensive terminals that some of us
    may want.

  8. sarung hp wellcomm Says:

    Wonderful blog! I found it while searching on Yahoo News. Do you have any suggestions
    on how to get listed in Yahoo News? I’ve been trying for
    a while but I never seem to get there! Thanks

  9. Young Says:

    Our reviewers at first impressed while using sharpness and
    vivid color created by this mid-sized collection thanks for the system’s 50,000:one dynamic distinction ratio and
    Samsung’s mid-stage Huge Coloration Enhancer a couple of know-how that assists create far more pure rendering of colours.
    Packed with an 8 MP autofocus primary camera and a 2 MP high
    definition front camera, the Galaxy Grand will please any avid photographer.

    For example, if you are a lifeguard or work at a car wash
    and own a Samsung Galaxy S advance phone, then you will need a phone case that is waterproof.

  10. selbstbewusstsein coaching Says:

    sag olun

    Mit fifty five Prozent ist der Anteil der Ferienlerner
    in diesem Jahr im Vergleich zu den Vorjahren jedoch gesunken.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: