(no title)
FuzzyDunlop | 12 years ago
class TwoBaconRashersInsideTwoSlicesOfBreadFactory {
/* Make a sandwich
* <p>
* Construct a foodstuff consisting of two slices
* of bread with two slices of bacon.
* @return TwoBaconRashersInsideTwoSlicesOfBread a sandwich
*/
Public TwoBaconRashersInsideTwoSlicesOfBread getSandwich () {
BaconRasherFactory pig = new BaconRasherFactory();
BaconRasherInstance bacon1 = pig.getBaconRasher();
BaconRasherInstance bacon2 = pig.getBaconRasher();
SliceOfBreadFactory loaf = new SliceOfBreadFactory();
SliceOfBread bread1 = loaf.getSliceOfBread();
SliceOfBread bread2 = loaf.getSliceOfBread();
return new TwoBaconRashersInsideTwoSlicesOfBread(bread1, bacon1, bacon2, bread2);
}
Or something... trying to do Enterprise Java is hard.
wting|12 years ago
https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...
pkorzeniewski|12 years ago
JonnieCache|12 years ago
Uchikoma|12 years ago
I have the dream that one day we will recognize languages as the tool they are and be mature enough to chose tools by utility and not by hype, hipness or pop culture and see there benefits and limitations.
icebraining|12 years ago
We do. They're just terrible tools. Do you think other industries don't criticize their tools? Hell, they have full magazines and reports reviewing and grading them.
The idea that all languages/tools are created equal and just have different use cases is nonsense.
Bootvis|12 years ago
talmand|12 years ago
astral303|12 years ago
@Service public class SandwichFactoryImpl implements SandwichFactory {
FuzzyDunlop|12 years ago
cgh|12 years ago
pjmlp|12 years ago
That what the space station architects are there for.
vezzy-fnord|12 years ago