326
OOP at home:
(feddit.nu)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Needs more
AbstractDefaultProxyBeanFactoryFactoriesI managed to organically create a
StrategyFactoryat work once.It was a good design, but it felt extremely wrong
And dependency injection!
Every class needs to use DI for calling other classes, even though we'll have anyway just a single implementation for all of them, and we won't be using this flexibility at all (not even for tests where it might be useful for mocking dependencies).
Why even use DI if you're not planning on faking dependencies for unit testing purposes
Methods calling other methods? Heresy! There needs to be two or three interceptors on there, and some indirection over RabbitMQ using spring-integration, at the very least.
This is how you write proper enterprise-level software: https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition
Now someone needs to make it an entity component system!
Attempt 1:
but but why would you do that?
You forgot the component part.
Not even unnecessarily templated, B- at best