-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to understand when I should use a container versus manually injecting dependencies. If I have an application that uses a 1-2 interfaces and only has 1-2 concrete implementations for each interface, I would lean towards just handling that myself.
If I have a small application that uses…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What's the simplest IOC container for C#? Is simple to learn and get productive with for a small app. In my case a winforms app which I want to abstract the data layer for later potential migration to a web-service for the data layer.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
How should the configuration for an IoC container be organized? I know that registering by code should be placed at the highest level in an application, but what if an application had hundreds of dependencies that need to be registered? Same with XML configurations. I know that you can split up…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
For the purpose of this discussion, there are two kinds of parameters an object constructor might take: state dependency or service dependency. Supplying a service dependency with an IOC container is easy: DI takes over. But in contrast, state dependencies are usually only known to the client. …
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been using Dependency Injection (DI) for awhile, injecting either in a constructor, property, or method. I've never felt a need to use an Inversion of Control (IoC) container. However, the more I read, the more pressure I feel from the community to use an IoC container.
I played with .NET…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Someone on the Herding Code podcast No. 68, http://herdingcode.com/?p=231, stated that IOC containers had no place with Python or Javascript, or words to that effect. I'm assuming this is conventional wisdom and that it applies to all dynamic languages. Why? What is it about dynamic languages that…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been looking into CEDET, but it seems that most of its features would appeal more to developpers working in statically typed languages, and I'm kind of getting cold feet from the amount of tinkering it seems to require.
As I work mainly with ruby and javascript, I'm wondering what kind of…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
With Java on one side and Ruby/Groovy on the other, I know that in the second camp I'm free to make typos which will not get caught until run-time. Is this true of all dynamically-typed languages?
Edit: I've been asked to elaborate on the type of typo. In Ruby and in Groovy, you can assign to a variable…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
It seems that everybody is jumping on the dynamic, non-compiled bandwagon lately. I've mostly only worked in compiled, static typed languages (C, Java, .Net). The experience I have with dynamic languages is stuff like ASP (Vb Script), JavaScript, and PHP. Using these technologies has left a bad…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I was curious how anyone would go about creating WCF based services using a dynamic language like IronPython or IronRuby. These languages do not have the concept of interfaces. How would someone define service contracts? Would we need to rely on static languages for such kind of tasks? I am a big…
>>> More