Architecture encompasses the process, artifacts and high-level structure of a solution.
0
votes
1answer
12 views
Python. Leaving a APScheduler in a while True loop
I want to run a background job on my webserver to do some database maintenance. I am looking at using APScheduler to do this.
I am planning on running the below code in a separate process to my main ...
2
votes
0answers
15 views
Reviewing a generic pipe and filters
I made a template pipe and filters to replace an old pipe and filters implementation that used inheritance and had a very heavy base class.
#include <iostream>
#include <boost/bind.hpp>
...
-1
votes
0answers
11 views
Design for recurring workorder system [closed]
I'm hoping for advice on designing a workorder system that has to support recurring workorders. For example, An administrator needs to be able to set a workorder to repeat in a unit of time like every ...
2
votes
1answer
49 views
Performance and design question
I'm working on a web application using bottle, and it is, at this point, functional.
The gist of it is that i have a database of drinks, with associated IDs, and associated sets of ingredients. the ...
1
vote
1answer
57 views
How can this layered PHP architecture be improved?
This is my first "large scale" system I've designed for myself. Since I'm more of a front end developer than backend developer, I'm not sure if my architecture is sound.
I've created a Factory class ...
0
votes
0answers
29 views
Automatically redirect /index.php files to their URL directory with .htaccess
The requirements:
Work inside .htaccess (preferably via mod_rewrite)
Redirect requests from /any/directory/index.php to /any/directory/
Make sure that /index.php-with-stupid-stuff-here does not get ...
6
votes
2answers
135 views
Handle static objects using custom adapter
I have read some articles discussing about why static is bad, some of them refering static as not-testable, non-mockable, has state (non-stateless) and everything else.
However I have encountered ...
2
votes
1answer
68 views
Design with Context, Table and Functions
Each class of my project has several inputs and outputs. Each input, the same as output, depends on it's own set of value-datatype.
I need to provide a mechanism to forward data streams from one ...
2
votes
1answer
63 views
PHP ORM like system
I'm using PDO, but I want to create my own class for more convenient work with the database.
My main idea in example with comments:
<?php
/**
* User entity. I want to save it into database.
* ...
0
votes
0answers
33 views
A Repository for Good ASP.NET MVC Practices
I have an open source project on GitHub. It is an ASP.NET MVC 4 application using Entity Framework and a handful of other utilities. I decided to create this project after spending about a year ...
1
vote
1answer
112 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
3answers
93 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
43 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
194 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
104 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
178 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
45 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 ...
1
vote
0answers
178 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
469 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
423 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 ...
1
vote
1answer
312 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
352 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
558 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
264 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
472 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
267 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
219 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
355 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
48k 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
898 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
655 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:
...
