Re:How to stop functional programming
by dudul on Tuesday February 23, 2016 @09:35AM
(#11159028)
Your design lacks a `Factory` I think. You don't use design patterns enough.
[ Parent
| on HN ]
Re:How to stop functional programming
by braythwayt on Tuesday February 23, 2016 @09:37AM
(#11159045)
It’s factories all the way down.
Re:How to stop functional programming
by Lawtonfogle on Tuesday February 23, 2016 @12:17PM
(#11160446)
So if you have some object named Obj, and you have some interface for it, and you have a factory that creates objects matching that interface, and that factory has an interface, then what do you call the factory that builds implementations of that interface?
A.) IObjFactoryFactory
B.) IIObjFactory
C.) IIObjFactoryFactory
D.) An abomination upon mankind.
E.) IObjFactoryIFactory