Questions tagged [newable]

The tag has no usage guidance.

newable
Filter by
Sorted by
Tagged with
9 votes
3 answers
8k views

How to specify any newable type in TypeScript?

I tried with this but it doesn't work. Foo is just a test of what works. Bar is the real try, it should receive any newable type but subclasses of Object isn't valid for that purpose. class A { } ...
Áxel Costas Pena's user avatar
7 votes
3 answers
472 views

Dependency injection when the class created also needs runtime values?

Assume you divide up your systems in Value objects and Services objects (as suggested in "Growing Object-Oriented Software, Guided by Tests". Misko Hevery calls these "newables" and "injectables". ...
WW.'s user avatar
  • 24k
4 votes
1 answer
311 views

ViewHelper newable/injectable dilemma

I'm trying to design an application following Misko Heverys insights. It's an interesting experiment and a challenge. Currently I'm struggling with my ViewHelper implementation. The ViewHelper ...
koen's user avatar
  • 13.6k