architecture

basic c# architecture and class handling question

Ok guys, this is very basic stuff I think. I'm only getting familiar with C# and object oriented languages. So here is a basic project I'm developping : namespace MyProject { class MyProject { public Logger Logs = new Logger(); public WebServer Web = new WebServer(); static void Main() { ...

How to allow plug-ins to expose plugin-specific menus, add form entries to application settings...?

Hi, while developing application that supports plug-ins, I am wondering what is the best approach to allow plug-ins to create its own menu entries in interface, add menu options to existing menus, add certain options to configuration dialog of application, that kind of stuff, and, how to handle saving those changes? If plug-in has knowl...

Which technology should I use to expose a server files system?

I need to expose our repository which resides in our server machine to clients. The clients should be authenticated, and read write permissions are enabled. We are having doubts regarding which way to go with the implementation: We already have client based COM layer so we can wrap it with some C# UI. Server rest services, and then wri...

What are best ways to implement a single functionality to store data in different databases based on configuration?

Hi all, I want to implement a sample in java that reads a configuration from some config file and, based on that, when user interacts with the page the application will store some data on either MySql or Oracle according to the configuration parameters. How can we implement this sample in most efficient and smart way? ...

What are suggessions for ZK, Hibernate, Spring, {oracle/mysql}

Hi all, I want to build an enterprise application that will have very large number of users(100,000/year), I am thinking (not sure yet) to take ZK, Hibernate, Spring with mysql (after achieving first two milestone switch to oracle). What are your experiences with these technologies? How it will be good in terms of performance, scalabil...

Extensibility framework/pattern/good practice for Web services?

I'm currently working on a large real-time OLAP application. All data are hold in RAM (a few gigabytes) and the common tasks involve brute scanning over the large quantity of that data (which is fine). The results of processing are exposed via a Web service (singleton/multithreaded) and presented using Silverlight-based client. The prob...

What are the advantages of MVC over 3-Layer Architecture in web applications?

Please note that I'm referring to 3-layer (logical layering) and not 3-tier (physical). Also don't get it wrong I'm not obsessed with design patterns. I'm a computer science student and they've asked me this trick question so I'm trying to find a smart answer. Thanks for you answers in advance! ...

Best approach to separate Model View and Controler

I'm thinking about the best approach to separate Model View and Controler - for Java and using Eclipse, if if it makes any difference. I used to separate each type's MVC inside its own package, but I'm start to think that this is not the best approach: com.company.client (controler) com.company.client.model com.company.client.view com...

How to design a text editor in QT ?

I want to design a text editor in QT and planning to implement the following basic features, 1) Basic editing features like cut,paste,formatting,indentation etc. 2) Auto completion based on the context.(Based on some xml input file) 3) Syntax highlighting ( based on some xml input file ) Can you please suggest some approaches for the...

Mobile Development Architecture & Design Patterns

I need some links on various mobile development architectures and design patterns, for example, in iPhone Development MVC is been used, same like this, what are the various other architectures which are being used in mobile application development. ...

Building a Q&A platform that is scalable.

I am planning to use open source, SQL/NoSQL? MVC? CQRS? caching? hadoop? Bigtable? S3? By scalable I mean supporting +1M users This is a social-change venture (not-for-profit), including geo-location and social networking features. ...

Service Layer: 1 Instance Per Application or Per View Model? (Or: giving each view model its own data context)

Hello, I'm building C#/.Net 3.5 app using three layers: UI (view/view models), service, and data access/persistence. Service Layer: Each service layer instance is associated with a unique persistence instance. The service layer references the persistence layer via an interface. Persistence Layer: Right now, the persistence layer in...

Tips/tricks for architecting MVC in non-trivial desktop app

What are some lesser known tips for implementing a loosely-coupled MVC structure in a non-trivial desktop application (e.g. having at least two levels of views/controllers and more than one model)? ...

How to handle "Type" field in DB and app?

It is necessary to implement a logging, messages are planned to store in DB in a "log" table. Among other fields each message will have a "status" field: 0 - successful, 1 - wrong data, 2 - wrong user, 3 - whatever, 4 - etc... The straightforward idea is to store the "Status" field as "int" column in the same table... To push data in ta...

Suggtestions for sending e-mail notifications from a 2 tier application with client potentially not connected to the internet.

I have to add e-mail notifications to a client server application. Notifications happen as the user do some particular action on the client UI. If I had a middle tier or a service running at server I can imagine how to do it: 1) I simply create a DB tables with "pending notifications" 2) as a user does an action that generates a noti...

How to use UUIDs but remain compatible to existing DB ids?

Hi, we are currently designing an API for our product. The API offers access to a graph consisting of relations between types, such as users, posts or the like. Now, those objects are referenced by primary key id in our database, but since every object is in a different table, those ids collide without the information of the type of ob...

Book advice requesting

Ho there, I will be facing a new and exciting issue in the near future. I have to study a complex Domain Model for an application that will control the Production Cycle of a very big manufactoring Industry. I am a Developer with good experience mainly in the UI and the in the logic layer. I have not created a Domain Model in the past. ...

Inherited classes returning different values - Conceptual question

This is more of a conceptual question than anything. I have a base class called "RawReader". It sets up the framework for classes to inherit it and read in specific data systems. For example, I want an app read in a known format of FoxPro database, a CSV file, or a SQL database (there is about 8 more formats currently), then transfer ...

n-layered architecture - BLL, DAL and interfaces. What is best practice?

I have a question regarding n-layer architecture. I thought long and hard before asking this question as there's a lot of similar questions here already... however, after literally a day and a half looking at it and reading these other answers I'm still unsure. The variety of seemingly similar terminology and different approaches has me ...

Is a Hybrid of 2 and 3 Tier Architecture recommended

Hi, I am making a web application that takes various business rules as inputs and stores them in the database. This is done using a 3-Tier Architecture. After that I have to use ALL these business rules in a single operation, and so I am writing the business logic for this part in Stored Procedure and am calling it from the UI making ...