News for hackers. Stuff that matters.
Re:Dependency Injection is dangerous for your career by masklinn on Thursday February 10, 2011 @03:08AM (#2201235)
> First you criticise Java, then you bring up a point which (usually) is not a very big concern in garbage-collected languages.

Of course it is for a number of reasons (instance sharing or reusing, caches, registries, ...), and most GC'd languages (significantly, not Java or C#) give separate access to these two operations (allocating an instance and initializing it).

See Ruby (new/initialize), Python (__new__/__init__), Obj-C (alloc, init), etc...

There are no comments on this comment yet.