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.
March 5, 2007 at 3:36 am |
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.
March 9, 2008 at 11:35 am |
$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…
April 9, 2008 at 7:47 pm |
feng shui massachusetts…
feng shui massachusetts…
February 12, 2014 at 3:52 am |
What’s up, I read your blog daily. Your writing style is witty, keep doing what
you’re doing!
June 9, 2014 at 9:59 pm |
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!
August 7, 2014 at 6:19 am |
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!
September 1, 2014 at 2:29 pm |
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.
September 5, 2014 at 2:44 pm |
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
October 9, 2014 at 1:40 am |
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.
October 22, 2015 at 5:22 pm |
sag olun
Mit fifty five Prozent ist der Anteil der Ferienlerner
in diesem Jahr im Vergleich zu den Vorjahren jedoch gesunken.