4 ms·
A "static factory" is just a static method. You know, a function. Nothing over-engineered or enterprisey about using functions to allocate objects.
by wtetzner 11y ago
A "static factory" is just a static method. You know, a function. Nothing over-engineered or enterprisey about using functions to allocate objects.
- nikolay 11y agoWhy state the obvious?
- wtetzner 11y ago> Why state the obvious? So you think using functions is enterprisey and over-engineering things?
- nikolay 11y agoRead my other reply to you on the subject! The API might be a small syntactic change, but the concepts and the implementation behind those for noobs are not. They learn OOP and constructors and then you tell them - they suck, use factories via static methods.