Architecture encompasses the process, artifacts and high-level structure of a solution.
1
vote
1answer
98 views
Looking for architectural feedback on my PHP MVC Framework [closed]
I wrote this a while back:
https://github.com/chintanparikh/Serene
I'm looking for feedback on the architecture/Object Oriented Design of the framework.
What I thought was neat: In the COre folder, ...
-2
votes
0answers
27 views
How can be improved this architecture for a renderer for a game? [with real world schematic] [javascript] [closed]
I'm building a Renderer engine for the browser with javascript only (used for a game). I've write the schematic which includes some rationale (on the right side) and the relationships between the ...
-2
votes
0answers
14 views
Would this be a good architecture for an app running on a local network? [closed]
I'm planning to make a quiz application, where some 'host' sets up a quiz, and participants with devices on the same LAN can connect to them.
This would work as follows.
The host runs the host ...
2
votes
3answers
88 views
Properties and on change events
So I made a socket communication library. And a part of it is IConnection
public enum ConnectionState
{
NotConnected, Connecting, Connected, Authenticated, Disconnecting, Disconnected
}
public ...
3
votes
1answer
39 views
Layered network protocol serialize / deserialize
I was interested in feedback on this architecture.
Objective: serialize / deserialize a network application protocol stream.
Approach: Create a class for each layer/object which exposes attributes ...
1
vote
2answers
157 views
PHP api design - anything done badly?
I have created an api in php and I was hoping some clever individuals would mind reviewing it to see what I could do better. I have commented it heavily to explain my reasoning. please feel free to ...
1
vote
1answer
80 views
Builder & decorator patterns together, am I doing this right?
Little background: payload is the representation of a message being send, using a specific transport. The builder pattern is used to build different representation (as array, or as a Swift_Message ...
1
vote
1answer
127 views
Why is android.app.Application not singleton by default [closed]
In many Android applications which I have found online or written myself, there is an application class like this:
public class MyApp extends Application {
private static MyApp instance;
...
2
votes
1answer
42 views
Synchronous MMF Test
(This was originally posted at StackOverflow on 10/14 but I've copied it here per suggestion by @mikalai)
I'm seeking some second opinions regarding the validity of my test.
In a nutshell, I'm using ...
0
votes
0answers
65 views
Architecture review - Single sign on without a secret between the Site and Provider [closed]
I'm not sure how single sign on is supposed to work.
It seems that on a theoretical level, either a secret has to be shared between your site and the SSO provider so that messages can have ...
1
vote
0answers
167 views
Automatic Databinding of controls to Model
I have developed a prototype framework (MVVM) where control on the form is bound to a model property using a naming convention and its UI behavior is controlled using custom attributes.
As of now ...
2
votes
1answer
372 views
Class with methods to retrieve data with Linq to sql
I think here is something wrong with code. I use a class with methods to get tenants from DB:
public List<CrmTenant> GetAllTenants()
{
List<CrmTenant> tenantsList = new ...
4
votes
2answers
393 views
Three-tier application with singleton pattern
I am creating a 3-Tier Windows Forms Application.
Questions
Am I using the right architecture, or can you suggest a better approach?
Is there any way to make the base class be a Singleton?
Is ...
0
votes
0answers
217 views
Architecture/best practices review for javascript component framework
I'm working with a component "architecture"/"framework" (not mine) and need some feedback on it - specifically whether it violates any best practices in the programming/architecture world. Also, why ...
1
vote
1answer
295 views
How to Organize my Solution in Visual Studio 2010, for a Asp.NET project using Ado.Net Entity Data Model
For ASP.NET projects.
I am starting developing with Visual Studio 2010, and will work with Ado.Net Entity Data Model and Linq.
I'm used to develop using Visual Studio 2005, and SubSonic as my ORM. ...
2
votes
2answers
335 views
How to refactor these C#-events or fix this architecture?
I need some second or third eyes to look over this, since right now, the necessary actions to make this work sound just bad and I suppose I am missing something due to a lack of C# experience.
I am ...
0
votes
1answer
523 views
Spring with Hibernate DAO layer architecture? [closed]
I am using Spring with Hibernate in my web application and I tend to use HibernateDaoSupport because it will open session and close session automatically. I have two entities Route(route_id, source, ...
1
vote
1answer
238 views
Detailed logs and keeping code clean (not AOP)
I have two quite mutually exclusive desires - detailed logs and keeping my code clean. It appears that you can only get either of these. By "logging" I mean logging and not tracing, so AOP adepts ...
0
votes
1answer
453 views
Getting/setting default values from my App.config. [closed]
I'm looking for a way to give default value to a configuration value read from App.config - just in case the value or key is missing in the file.
I tried this example, which is an answer for an old ...
2
votes
1answer
263 views
ASP.Net Site architecture review
Note: This is not my design, but I want honest opinions on it (I obviously disagree with it, but let me know if I'm wrong).
Site uses EntityFramework and DataBinding in ASP.Net.
Each Entity has ...
2
votes
2answers
203 views
How skinny should controllers be, how fat should models be in CakePHP?
I know it's a good idea to put all data-related logic in your models in CakePHP, but what would you say about keeping every Model::find() and its particular params in the model? Is this good practice, ...
3
votes
1answer
323 views
Can I use IMapDocument in a 10.1 SOE?
I am wondering if this code will work in 10.1.
This video at 1:02 says not to create mxd based services. I think that just means not using IMapServerObjects3, but seems like IMapDocument should be ...
23
votes
8answers
42k views
Getting/setting default values from my App.config.
Imagine that I need a color palette form my Winforms application to have a consistent look.
What I did was create a static helper class, and helper methods that I can call from anywhere in my code ...
5
votes
1answer
876 views
Refactoring a multi-threaded producer-consumer model
This is an architecture question for a multi-threaded program which is going to be moved from C# .NET 2 to .NET 4. The program currently has multiple processing threads, and one database I/O thread. ...
21
votes
7answers
636 views
What is better: Calling a chain of objects or passing a lot of objects?
Recently I saw the following line of code in one of my projects:
...