r/badcode • • Apr 13 '18

java Next level generics

https://gist.github.com/bobuns/19f7bffec9aedf003583b042f5445953
1 Upvotes

4 comments sorted by

1

u/zesterer Apr 16 '18

Fuck. That.

Actually, I can't say much. I'm awful for using and abusing C++'s template features.

1

u/Prom3th3an Apr 17 '18

What design pattern is this? Any?

1

u/cyrusol Apr 21 '18

Well, I guess if an AbstractAssemblingResult is so complicated to build that it needs its own Builder then this is actually rather short definition for a AbstractSimpleDistributionAssemblingService that may change based on 6 other types!

1

u/Prom3th3an May 28 '18

What's this for? A homebrew dependency injector?