I'm writing a data access library in C#, the structure of my data model classes are as follows (within the DataAccess assembly):
public abstract class DataModel {...} (protected constructor)
public abstract class DataClass {...} (protected constructor)
public abstract class DataField {...} (protected constructor)
public class IntegerFie...
let say you have between 35 and 50 checkbox on a form.
would you create 2 tables:
accessTable, field: userid, accessType
accessLookup, field: accessType, description
and add X and/or remove rows to accessTable depending on the user selection
OR
would you create 2 tables:
accessTable, field: userid, haveAccessBit
accessLookup, fi...
I'm having a hard time trying to get my team comfortable with interface based programming ... anyone have some suggestions?
...
Background: Customer X has two lists of words. None of these words exists in any corpus of text in any known language. They are purely proprietary jargon. The first list is a list of words owned by Organization X. The second list is a list of words owned by his closest competitor, Organization Y.
For a concrete example:
Organization ...
I'm in the process of working on a user profile system for a website and am pondering what would be a better (scalable) approach to take. I've come up with two solutions and am looking for either input or perhaps pointers to something I might have missed.
The following create table statements are not meant to be executable but are merel...
Do you always lean towards thinking of db schema when starting or planning a new project it or do you go the other way and start designing UI then moving down the stack?
Or do you have a different way of developing?
Not really an agile/waterfall/specs/stories question just a way of getting a handle on which way people lean when working...
I'm trying to learn more about db interactions which has me developing a local app to get started. Well, basically, what I've done so far has had some mixed results and I've changed so much stuff I'm not even sure what I've change at this point, lol. I'm not quite sure one of my tables was correct, so I've decided to just start that over...
I'm working on designing a multi-tiered app in Perl and I'm wondering about the pros and cons of the various IPC mechnisms available to me. I'm looking at handling moderately-sized data, typically a few dozen kilobytes but up to a couple of megabytes, and the load is pretty light, at most a couple of hundred requests per minute.
My pri...
Hi,
I'm trying to create a sudoku solver program in Java (maybe Python).
I'm just wondering how I should go about structuring this...
Do I create a class and make each box a object of that class (9x9=81 objects)? If yes, how do I control all the objects - in other words, how do I make them all call a certain method in the class?
Do I j...
I have a "thin" (SOAP) API that only knows how to set and get entities in the underlying system.
I am about to to create a "rich" API that encapsulates the "thin" API and implements the logic that is required for complex operations that entail getting and setting several entities in specific order.
Example: The rich API will be respons...
I'm interested in people's opinions on the pros and cons, or downright "hell no's" on designing websites in the browser, and moving away from Photoshop, Fireworks, etc.
I've been designing a relaunch for my website, and trying it out in the browser, and I'm not looking back.
For example (I use a 960px grid with 12 columns):
<div id=...
I want to provide about 10 different 'statistics' to my users. Each stat represents the count returned by a different query of my database. Each stat/query is specific to the current user. What is going to be the most efficient way to achieve this? Am I right to think that running the stat queries, for each user on each page of my site (...
This has always bugged me. Perhaps someone with some hardcore knowledge of .NET internals can explain it to me.
Suppose I define an enum as follows:
public enum Foo
{
Eenie = 1,
Meenie = 2,
Miney = 3,
Moe = 4
}
Now, also suppose that somewhere in my code, I have the following code:
int bar = (Foo)5;
This will compile j...
I am unable to define a relationship between paper and author. Is it possible to define one?
<xsd:complextype name="Researcher'>
</xsd:complextype>
<xsd:complexType name = "Paper" >
<xsd:extension base = " Researcher " >
</xsd:extension>
</xsd:complexType>
<xsd:complexType name = "Author">
<xsd:extension base = " Res...
Is it normal to modify setter arguments? Let's imagine that we have setString method. And we really want to keep a trimmed form of the string. So a string with trailing spaces is invalid, but we don't want to throw an exception.
What's the best solution? To trim the value in the setter e.g.
public void setString(String string) {
th...
I asked about Choosing a method to store user profiles the other day and received an interesting response from David Thomas Garcia suggesting I use the Table Module design pattern. It looks like this is probably the direction I want to take. Everything I've turned up with Google seems to be fairly high level discussion, so if anyone coul...
I have this class called Table:
class Table
{
public string Name
{
get
{
return this.wrapper.Eval(//some command);
//wrapper is pass in by the ctor and is a COM object.
}
}
}
which is used in this class:
class Map
{
public Map MapTable(Table table)
{
return new Map...
my company processes paper forms so that written data is being put to databases. every form has a set of fields. i'm writing a simple internal app to define the form's fields and that includes field's validations. i'm thinking of classes structure now and i can think of two approaches:
i could write a set of classes, each representi...
My members can choose from a list of countries.
The A-Z lists starts at Afghanistan, and goes through many obscure countries.
Should I get the top ten countries and "quick-list" them at the top of the list?
Or is this seen as some sort of cultural superiority yadda yadda?
I'm using PHP/MySQL (trying to get a programming angle there)
...
I've only had to code in C a few times, and it seems like every time I do, it becomes some unmanageable beast.
I've done most of my programming in C# and .Net so I am very accustomed to the class style architecture, but I can't seem to grasp organization in C applications. Should I put functions that are related in a certain file, put f...