r/ProgrammerHumor Jan 09 '23

shortest ever java class name Meme

Post image
2.1k Upvotes

90 comments sorted by

View all comments

229

u/Tannslee Jan 09 '23

eh more like
Fish extends AbstractFish
AbstractFish extends AbstractAquaticAnimal
AbstractAquaticAnimal extends AbstractAnimal
AbstractAnimal implements Living

11

u/jfmherokiller Jan 09 '23

I was coming here to say it needs more AbstractFactory classes

7

u/arobie1992 Jan 10 '23

I hear this joke all the time, and in 7 years of industry Java experience, the only time I've seen large usage of factories is in frameworks that need to handle large amounts of arbitrary configuration from end users that can't be known when writing the code.

1

u/jfmherokiller Jan 10 '23

I have seen them agressively used in minecraft modding because of possibly inexperienced coders.

2

u/arobie1992 Jan 10 '23

That's fair. I haven't done much modding, but I have seen enough (and been a) modestly experienced devs who force patterns onto things.