What is dependency of ASP.NET MVC on .NET Framework and how to use it with .NET 2.0?
When you download and install asp.net MVC, does it just add code to the .net framework class library? Or does it also modify the installed Visual Studio editions?
Is switch-case over enumeration bad practice?
I have an enumeration with the commands Play
, Stop
and Pause
for a media player. In two classes I do a switch-case over the received commands. The player runs in a different thread and I deliver the commands in a command queue to the thread.
How to organise projects with dependencies on BitBucket?
Both Mercurial and BitBucket make one fundamental assumption: 1 repo = 1 project.
How to solve cyclic dependencies in a visitor pattern
When programming at work we now and then face a problem with visitors and module/project dependencies.
How to TDD test that objects are being added to a collection if the collection is private?
Assume that I planned to write a class that worked something like this:
Handling table name collisions in Django
Django creates a table name by joining the app label with the model name. A project can have many apps. If two have the same label, how can both be used in the same database?
Custom maven mojo and tools
I’m writing maven plugin which depends on several java tools. I’m quite happy with it and want to share it with the community. I’m interested in correct way to handle dependency to these tools:
Unit Testing Open Source projects that require keys for api calls
What’s the recommended method for setting up tests on code that requires a private key to make calls to external web services?
Is there a formal enumeration of the ways that components can be coupled / depend on eachother?
Say you have
Should I use Dependency Injection or static factories?
When designing a system I am often faced with the problem of having a bunch of modules (logging, database acces, etc) being used by the other modules. The question is, how do I go about providing these components to other components. Two answers seem possible dependency injection or using the factory pattern. However both seem wrong: