Relative Content

Tag Archive for architecture

How to handle “circular dependency” in dependency injection

The title says “Circular Dependency”, but it is not the correct wording, because to me the design seems solid.
However, consider the following scenario, where the blue parts are given from external partner, and orange is my own implementation. Also assume there is more then one ConcreteMain, but I want to use a specific one. (In reality, each class has some more dependencies, but I tried to simplify it here)

Git-based storage and publishing, infrastructure advice

I wanted to get some advice on moving a system to “the cloud” … specifically, I’m looking to move into some of Windows Azure’s managed services, as right now I’m managing a VM. Basically, the system operates on some data stored in a github git repository. I’ll describe the current architecture:

SPA Applications: AJAX to fetch templates or build from strings

I’m working on a large angular application and I’m currently using a factory class that builds HTML templates from strings. We don’t have to worry about mobile support for the application and I’m wondering from an architectural standpoint, which method would you rather implement and why: static HTML files that are fetched on request, or a class that builds the templates as strings?