design

Component based game engine design

I have been looking at game engine design (specifically focused on 2d game engines, but also applicable to 3d games), and am interested in some information on how to go about it. I have heard that many engines are moving to a component based design nowadays rather than the traditional deep-object hierarchy. Do you know of any good link...

Events or Inheritance?

Hello, I have a process class, where if the input contains a value it will also do something else. For example Person { name; age } ProcessPerson(person) //takes in a person in the ProcessPerson if the age is = over 18 (Adult) then send an email. The ProcessPerson already exists, and the base logic has to be run no matter what (sa...

strategy to filter data according to user access level

we currently have a very simple security schema... we have resources, that roughly maps to tables, we have access to that resources (add, modify, delete, query) and we have groups. each permission consists of a resource, with a specified access and a group and each user can belong to many groups... so, permission is a many-to-many be...

Python Observer Pattern: Examples, Tips?

Are there any exemplary examples of the GoF Observer implemented in Python? I have a bit code which currently has bits of debugging code laced through the key class (currently generating messages to stderr if a magic env is set). Additionally, the class has an interface for incrementally return results as well as storing them (in memory...

How to track user online status?

Tracking online users is a very common requirement for any web application? I have the following questions related to this topic. I would like to capture the following parameters:- lastAccessedTime - The time when the user visited the site the last time (usually shown during the login process) isOnline - A boolean to represent if a user...

Professional tools for creating Software design documents and Software reports

What tools are used in the Sofware industry when creating reports and documentation? I have heard that some companies use NetBeans or Eclipse to create reports, what plug-ins are being used in these cases? Is there an extension to Visual Studio available? I know there's Javadoc in Java, but that's not the kind of documentation I'm ask...

Can I render this kind of drop down using CSS?

I want to buid a web page. The page contains a drop down which should look like this: Is it possible using CSS or I would need to use a image with some javascipt? ...

ASP.NET Design Consideration

We are developing a Medical Data Analysis Application. We have a discussion to go for either NHibernate or DB4o.Can you please give a suggestion for choosing the efficient one. ...

Stuctures of Complex and enterprise level applicaitons

I have a problem about structures of the complex applications .Because my knowledge background does not come from education , i have had always problem about application's layers , design patterns and programing structures.First of all , I can do whatever I want with php , because I know common functions and I have experience with php. B...

best practice for Undo Redo implementation

I need to implement Undo/Redo frame work for my window application(editor like powerpoint), what should be the best practice to follow, how would be handle all property changes of my objects and it reflection on UI. ...

JAR for three classes?

I reuse a handful of classes for multiple projects, like Postal Address, State, Zip Code and Phone Number. Associated to them maybe parse/format classes (like Phone Number Formatting). Is it okay to have a JAR with only a couple of classes? An alternative would be to have one "Miscellaneous" JAR with all the classes however it feels...

couchdb: designing a logging system

I am contemplating the design of an event logging system based on couchDB. What would be a good way of storing each event? one document with events as 'attachments' one document per event one document per event-type, events as attachments Other? ...

Design Page cannot be viewed!!

In Visual Studio 2008, while editing the web page, it is displaying some error and I cannot design my page in design view, I can do only in Source code. It is showing the following error in design view... Master Page Error 'The Page Contains Markup that is not valid when attached to a master page Correct the problem in Code View' Wat...

Silverlight OOTB Support for 'Save File' browser dialog.

Hi All, I am in the design stage of an application that must be both a standalone app & a web application (To save the costs of building 2 near identical applications twice). Basically I have opted to go for a silverlight OOTB application that will be installed on the standalone machines and they will write to a collection of files in t...

Data structure for storing thousands of vectors

I have upto 10,000 randomly positioned points in a space and i need to be able to tell which the cursor is closest to at any given time. To add some context, the points are in the form of a vector drawing, so they can be constantly and quickly added and removed by the user and also potentially be unbalanced across the canvas space.. I a...

C# file-based services and concurrency issues

I am designing the architecture for a set of WCF services. Due to the nature of the deployment of these services (remotely deployed onto a number of unmanageable systems on client sites, therefore we cannot afford the administrative overhead of database servers), the data store has to be file based (we are leaning quite heavily toward X...

Data-driven programming book ?

Hello, I work as an indie game developer... I'm always trying to do a lot of research, what I like the most is Game Engine Design. In the last months, something that I have noticed being mentioned a lot is "Data-Driven" Game engine design, I have read some vague articles about it, but nothing that I feel is clear enough. I was wonderin...

Application GUI Template vs Website Template

I've searched and search and searched, for application design GUI ideas. But everytime I search all I seem to find are website templates, I never seem to find templates for building an application gui. Does anyone know of any sites that have or show examples of good application gui designs either web or client. Id like to see different e...

Why is "explicitness" considered a Good Thing?

I often hear people praise languages, frameworks, constructs, etc. for being "explicit". I'm trying to understand this logic. The purpose of a language, framework, etc. is to hide complexity. If it makes you specify all kinds of details explicitly, then it's not hiding much complexity, only moving it around. What's so great about exp...

Confusion: Abstraction and encapsulation are the same?

The definitions of "abstraction" and "encapsulation" seem very similar to me. I always confuse these terms. Please, clarify the difference by showing examples. ...