architecture

where do I store my unit test files in my php project?

I have a php project in subversion, with the typical /project/trunk/, /project/test/, /project/branches/ structure. I want to start writing some unit tests with PHPUnit. Where is a good place to store these files in version control? If I put them in /project/unittests/, I would have to check out the directory they test in parallel, so ...

Event Registry design pattern ?

I have a list of events that i need to fire when a user takes an action and an event manager that fires these events. Originally i used to fire the events explicitly in this way EventManager.publish(new SendNotificationEvent()) Then i wanted to change that to something like EventManager.publishSendNotificationEvent() To do that,...

How does DispatcherServlet work if we have multiple XML Configuration file ?

Questions How does DispatcherServlet work if we have multiple XML Configuration file so how does Spring Application Context loads them and acts on them ? Scenario: In my case, we have an application that is supposed to global that is application should have AP{Asia-Pacific}, EM{Europ-Middleeast}, CA{Canada} and LA{Latin America} Versi...

Which .NET data storage technology: Data access local only and web service based

I'm just starting with .NET data storage and I'm confused by so many different technologies... This is a learning project. You don't need to go on reading, I need to make an architecture proposal first... Thanks so far My scenario: e.g. a local app that can store and tag images. The user can choose if he want to store his data loca...

Should I use single or multiple configuration files for Code Generation

I have a php script that generates php and javascript wrapper classes that handle json marshalling based on a configuration file. My initial plan was to have a single config file that generates all the classes used by the application. However, my team lead suggested I use a separate file for each feature, to avoid creating a gigantic co...

php loan application design help needed

I find one of my weaknesses to be applying the theory I know in actual projects. One such theory is application design. I have never formally designed an application before beggining to code. I am developing a simple microfinance loan application for a client and I for once want to do things properly. Hence I am trying to design the syst...

multiplication in multicycle datapath write from stratch

I wanted to know how the processor does multiplication in a multi-cycle data-path right from the beginning i.e from Instruction Reading -> decoding the instruction-> reading register files etc. In other word I wanted to know that given the booth's algorithm for multiplication implemented separately (a circuit is given) how will you ext...

Need some advise on starting a New Life with MVC 2 and which Tools to use for RAD in MVC2 ?

Dear All I have finally decided to hop up on the train of MVC 2. Now i have doing alot of reading lately and following is the architecture, which i think will be good enough for most of Business Web Application. Layered Architecture:- Model (layer which communicates with Database). EF4 Repository (Layer which communicates with Model a...

Multiple websites from a single service and model layer

I want to do something similar to stackexchange but with their own domain. I want to have 1 single database, repository/model layer, service layer on 1 server. Then on a different server or same server, I have a web project which can access those layers. Is there a way to achieve this without a hit in performance on these sites? I'm th...