design

Resources to succesfully making applications scriptable

In the process of designing an application we've come to the conclusion that the user needs to be available to add custom behaviour to the program and we want to allow this through scripting, however, none of us got any experience embedding a scripting engine in an application and even less designing the application to succesfully allow ...

PHP: Class segmentation ?

I'm building an Authentification library that's going to have around 45+ methods for dealing with user related stuff. However I've been wondering if it's actually recommendable to keep everything on a single file. Is there a benefit on splitting my class into several subclasses and load them when needed? I can always for example split ...

Android: Market design philosophy?

I am assuming that the Android Market app source code is closed but I have a few questions regarding this: Why didn't they follow the tabbed UI design which is normally followed? (Is it only because they had more activities to display?) How would I go about designing an app like this? I first set up the gallery view and attach an onCli...

Custom Security in ASP.NET MVC For Applications (Not mass market web sites)

I'm building a SaaS app and have some issues in dealing with authorization and ASP.NET MVC. I have a previous question and this is kind of taking a cue from comments there. I need to provide somewhat granular security (e.g. lots of permissions) for each user. I realize that any discretionary system can be modeled as a roles system by jus...

How is a block diagram organized?

I would like to understand the exact hierarchy of a block diagram. If a block A is on top of block B does it mean that A is in some abstract manner build using B? A concrete question: I have a component C that calls components D,E to achieve its goal. Is C on top of D,E (since it uses them) or are these different unrelated blocks? Wh...

Designing a grid overlay based on longitudes and latitudes

I'm trying to figure out the best way to approach the following: Say I have a flat representation of the earth. I would like to create a grid that overlays this with each square on the grid corresponding to about 3 square kilometers. Each square would have a unique region id. This grid would just be stored in a database table that would...

Beat em' up game space management ?

Hello, I am in the process of making my 2D engine for a Beat'em Up game (Castle Crashers is what I call Beat'em Up or Brawler kind of game ). I will support 2D sprites and 2D particle emitters. This is all done in the engine now. But I have come to an issue that I would like to ask for advice: It's about "space" management, what I tho...

General Design Question

Hi, I have a general design question: There is a junction, with four roads connecting to it. Each road has 2 lanes. What would be the best way to design a program to handle such junction. It should allow 2 cars 2 go through the junction if they don't interfere each other. and 1 car came in before the other, and they both should use the ...

PyQt and MVC-pattern

hi there, please, help me with designing MVC-pattern with PyQt. i want to split all program at 3 parts: 1. some class that is abstracted from all Qt classes(model) 2. some class that provides data from model to qt-app(controller) 3. Qt-app itself with defined method SignalsToSlots that connect signals with controller. is it optimally a...

Validation first, confirmation later?

In what order should I perform Validation & Confirmation? Meaning, do I first ask the user to confirm save or first validate the form? Consider two cases, in the first - validation is really quick, in the second - validation can take a couple of seconds. Do you change the order then? Edit: The button doesn't act as "save" but performs...

Handling localization + customer differentiation

We're maintaining a web product that we've sold to several different customers. We support the site in native and english. As a part of the maintainence we've begun updating to .NET 3.5 and while during this we would like to have better support for differentiated layout/localization in the product. We're trying not to have any customer ...

visio: tutorials to design software systesm

I am looking for good tutorials on the high level design of software systems that would show things like DLL, Databases, etc. Where can I find good visio tutorials? ...

Request for Creational Design/Pattern Suggestion

I have a number of classes that are all related conceptually, but some more-so at the details level than others. For example, these three classes have nearly identical properties (although member functions will vary): public class RelatedA : IRelatedType { public string Name { get; set; } public string Value { get; set; } p...

How to make image "hang over" above background ?

Hello All: I am more a web programmer than a designer, but currently my job requires me to know more about web design. Sorry if the question is naive to the pros. Stuck in this problem for hours, don't know what to do... Please go the my blog and check the bottom part: my blog It has a wax seal style rss feed image, with ribbon. I wa...

Entity Framework POCO Does Not Fit Nicely with Domain Objects

I have taken a model first approach for a project i'm working on. An example of a class relationship is shown as follows, pretty strightforward: public class Product { public int Id { get; set; } public string Name { get; set; } List<Photo> Photos { get; set; } } public class Photo { public int Id { get; set; } public string...

What is best approach on designing this abstract class? (Part 2)

Hi there I have abstract class called Tenant and Customer. The tenant in this case is like owner of the application for multi tenant application model. The relationship between these 2 class are Many to One relationship. public abstract class Tenant { protected Int32 id; protected String name; public Int32 ID { get; set;...

Generic suggestions for SQL 2005 Framework\Design and Implementation

I'm renovating an existing ASP.Net web-app which has a full-fledge functional SQL 2005 DB as its backend. By full--fledge functional I mean that there're many things (infact almost ALL the CRUD operations) that are being handled from within the DB using SP. So, my first question is that is an extensive usage of SP good based on paramete...

Reverse Engineering steps

Everyday we are reading through large amounts of code not well documented. Understanding the code by jumping into it might not be easy for everyone until they have an idea about the code structure. If you have to reverse engineer code and want to bring it into some diagrammatic form, what steps do you follow? I know there are tools, li...

Class Design: Serialize Within Domain Object or Helper Class

Lets say I have some domain objects that will need to be serialized/packed using a custom binary format so they can be sent over sockets to external processes. My first instinct would be to create an interface that represents any object that can be packed into this binary format. public interface IPackable { byte[] Pack(); } Then...

AS3: How to organize code, in case remote services are called

Hi! In my flex application I use services a lot. I need them to update my data in the application, so call them quite often. Currently I implemented it in the following way: 1) There is a service provider (AMFLoader class) 2) And response handler (Responder class) The code looks like this: public function AMFLoader(url:String):void {...