I am about to redesign an Online Magazine which was built in Plone.
And I am going to do it in Django. (For the simple reason that I like Django and that I have to maintain this particular site for (basically) free.)
However I am unsure about the way I should design the Models.
Basically the idea is to have a Site structure - which in P...
I always try to apply the S.O.L.I.D principles and I really like the Qt toolkit but I find myself stuggeling all the time with the single inheritance rule.
If you are using multiple inheritance,
moc assumes that the first inherited
class is a subclass of QObject.
Also, be sure that only the first inherited class is a QObject.
...
I have a system where users insert many types of things ("incidences") and all of them have to be approved by an admin. Which pattern will be useful for this case? Maybe validation is not the word for this.
Update: The problem is that the db where the data resides can't be changed. All the moderation things will be done in another db an...
This is a generic C++ design question.
I'm writing an application that uses a client/server model. Right now I'm writing the server-side. Many clients already exist (some written by myself, others by third parties). The problem is that these existing clients all use different protocol versions (there have been 2-3 protocol changes over ...
I have completely confused myself trying to design the necessary interfaces and abstracts to accomplish loading of domain entities that can be used by themselves as well as combined into an aggregate. Wow. That was a buzzword mouthful. Essentially, I have two objects that I would like to have base-type "load" functionality, but when t...
I would probably say this is more of a general posting asking for advice rather than a direct solution request.
I am currently in the process of laying down the design and infrastructure for a startup with a colleague of mine, nevertheless, my experience lays in the realm of Java Swing development and JavaScript/Ajax worlds as well as s...
This question is, at it's core, a design question. I'll use a Java/JEE example to illustrate the question.
Consider a web-mail application which is built using JPA for persistence and EJB for the services layer. Let's say we have a service method in our EJB like this:
public void incomingMail(String destination, Message message) {
...
I'm sure that my problem is common and I almost sure that it doesn't have easy solution.
So: I have an interface:
public interface Task<E> extends Serializable {
Task<E>[] splitTask (int partsNum);
E mergeSolutions (E... solutions);
E solveTask ();
E getSolution ();
Integer getId ();
void setId (Integer id);
}
...
I have a dialog window where i have two nested Tabbook widgets.
And as you guess it doesn't look very good. It's the old and ugly FOX toolkit
but the basic problem would be the same with QT or GNOME.
What would you consider a better GUI design.
...
I have a table containing objects, something like this:
PK ObjectId
FK ObjectTypeId
Description
etc
The objects need to be grouped. I have been given a number of suggestions, all of which 'work' and some I like more than others. None of them are perfect so I'm struggling to settle on any particular model.
1/ Add a self-referential ...
Hi guys,
The legacy database I'm "springwrapping" has Id's that are Strings and that give away some information. For instance, a UserId looks like "DK-6715-00001", meaning a user in Denmark, postal code 6715. This is so wrapped into the enterprise applications that it needs to be kept and my entities verify this in their setter methods....
I have a domain model that is trivially represented by the following.
IMyInterface
ClassA : IMyInterface
ClassB : IMyInterface
What I want is to implement IEquatable in such a way that I can write code something like.
if(dynamicallyCreatedInstanceOfClassA == dynamicallyCreatedinstanceOfClassB)
{
// Do something relevant
}
My fi...
I need to create a class which will be responsible for result set processing but it might happen that different algorithms should be used to process that result set.
I am aware of the following options:
1) Use Strategy patern, below is pseudo code:
interface Strategy {
processResultSet(ResultSet rs);
}
class StrategyA implements St...
I've been wondering this for a while now.
One of our software has a feature that create a well-formatted document from all the data that the user inputted in the software. The goal is to create something they call a plan that the user can hand over to the government for revision. The government only seem to accept those plans in the pri...
When making color choices during web design, I use free online tools such as ColorSchemer in which I:
click on a color
use the colors it suggests for me
This makes my designs look better than if I chose colors freely out of a color wheel.
But beyond this simple approach, what are are the best strategies for using these tools to make...
One of my classes has a field which contains a Set. This field is only ever filled in the constructor, and then read by other classes. Originally I had something like this:
public class Foo {
public final Set<String> myItems;
public Foo(Collection<String> theirItems) {
this.myItems = new LinkedHashSet<String>(theirItems)...
I'm having some problems with using generics in combination with parallel class hierarchies. I have coded myself into this mess several times already.
Let's say I have the following class hierarchies:
TableColumn -> subclasses SqlTableColumn, OracleTableColumn
Table -> subclasses SqlTable, OracleTable
Database -> subsclasses SqlDatabase...
Please don't poke me for using IE6 but that's a client's requirement.
My question is, I have an EMBED tag that displays a PDF dynamically depending on the user choice which means the first time the page gets rendered there won't be any EMBED tags but will be when the user picks a choice.
The problem seems to be that when the EMBED tag ...
Hi everyone !
I've got a few questions about the architecture of a software that I'm working on !
So basically, this software allow the user to access to some popular sites :
Social networks (Facebook, MySpace, ...),
Common services (RSS, Mails, Twitter...),
Social bookmarkings (Digg, Delicious...),
Chats (MSN, AOL...),
...
Cur...
Community Wiki Question!
What is the best way to launch a redesigned application?
Do you announce the changes and then just launch the new look and feel ?
Do you announce the changes and then run two versions of your application ?
What are your thought on this process ?
...