gleat wrote:
does it make sense to shield the WCF stuff from the web app via a facade layer?
Absolutely, imho. The web app (or any client) shouldn't need to use WCF semantics or any other service implementation dependencies. This allows (1) easier construction of mock objects for client side testing and (2) replacement of the backend API (if needed) without having your clients retool their code. /ravi
My new year resolution: 2048 x 1536 Home | Music | Articles | Freeware ravib(at)ravib(dot)com
What I'm struggling with is keeping higher level policies from getting entangled with the low-level algorithms that do the work.
if higher level polices are dependent on low-level algorithm and if low-level algorithm are changing...or if you want to make higher level polices independent of low-level algorithm then go for Strategy or Template Method.
Well I highly recommend everyone study Software Design Patterns but they have little to do with architectures and specifically Model-View-Controller is a design not a different kind of system. CRUD isn't really an architecture it's just an acronym describing basic Database operations. N-Tier is an architecture concept. It's not all that complex conceptually and it seems you might be over complicating this issue for yourself. Systems design and architecture should be based on requirements. Systems should, although don't always, have an architecture that meets the needs of the use model and any enterprise/network/platform that they are required to operate within. If you are having trouble consuming all these different terms and understanding them I highly recommend Wikipedia for introductory high level definitions of things like Design Patterns and N-Tier and CRUD etc.
led mike
Sorry for being unclear, Im working with c# in vs2005. Im pertaining to the IDesignerHost.Container. I'm looking for example on how to rearrange the components in the container. thanks
That's disappointing. :(
So the creationist says: Everything must have a designer. God designed everything. I say: Why is God the only exception? Why not make the "designs" (like man) exceptions and make God a creation of man?
Armond Sarkisian wrote:
explain to me how the variable string gets shared between class A and class B
string generateString()
{
static int ticket = 1;
char buf[2] = {0};
itoa(ticket++, buf, 10);
return buf;
}
led mike
pinhigh2k wrote:
Basically, I would like to use a C# form (or other construct) to simply house an already existing OpenGL window class written in C++.
Is it an ActiveX control? If it is it can be done easily.
Steve
Brady - If you are reading things in with a datareader, then one way would be to use some code to convert your DB null string to a null string. A simple function would cope with this:
public string GetString(IDataReader item, string column)
{
int ordinal = item.GetOrdinal(column);
if (item.IsDBNull(ordinal))
return null;
return item.GetString(ordinal);
}
Deja View - the feeling that you've seen this post before.
My blog | My articles
Please don't cross post. It's considered rude and won't help you get an answer any faster. The original post is here[^].
Scott. —In just two days, tomorrow will be yesterday. —Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[Forum Guidelines] [Articles] [Blog]
I'm quite lucky. Nearly all issues are logged internally, and only require a ten minute, in office, chat to sort out. At least we don't work off specs for this, the paperwork would be enormous.
Hi, Principally that of abstraction. The chances are that whatever it is that calls your webservice should not know about the database at the other end- ideally if there is even one. It should think in terms of calling something to get the data it needs. The webservice will form part of your middle tier, so should you change databases or decide to implement some caching etc, the client remain unaffected. Of course, if you want your application to work other the internet as well, then you need to do something like this or you'll have to open up firewalls to the database port which exposes a nightmare scenario of security risks.
Regards, Rob Philpott.
There's a lot more to this question than this. Is this object going to be used on its own, or is it going to be in a collection? Instinctively I'd go with a normalised version of the object, but it really does depend on a lot of other factors. In the end, you're going to have to do a bit of profiling and work out what the size of the object you are going to be passing over the wire is, and if it's acceptable to you. Unfortunately, there's no magic bullet that we can apply here. This one's up to you.
Deja View - the feeling that you've seen this post before.
My blog | My articles