this post was submitted on 10 Feb 2026
328 points (95.8% liked)

Programmer Humor

29735 readers
1299 users here now

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.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] jenesaisquoi@feddit.org 62 points 4 days ago (2 children)

Needs more AbstractDefaultProxyBeanFactoryFactories

[–] VibeSurgeon@piefed.social 2 points 1 day ago

I managed to organically create a StrategyFactory at work once.

It was a good design, but it felt extremely wrong

[–] Supercrunchy@programming.dev 24 points 4 days ago (2 children)

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).

[–] VibeSurgeon@piefed.social 1 points 1 day ago

Why even use DI if you're not planning on faking dependencies for unit testing purposes

[–] jenesaisquoi@feddit.org 14 points 4 days ago

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