Hi everyone
I am reading the Cocoa Fundamentals->Design Patterns->Observer->Uses and Limitations. It mentioned a "significant difference from delegation" that confuses me:
But objects receiving notifications can react only after the event has occurred. This is a significant difference from delegation. The delegate is given a chance ...
How-to implement Specification Pattern with Entity Framework ?
...
It is always a good idea to simlified the project relations and also writing code in projects.
But as I am not a software analyzer and trying to start analyzing my personal project. I want to know that How To Simplified Project Structure ?
...
I am currently learning how to make advanced usage of WPF via the Prism (Composite WPF) project.
I watch many videos and examples and the demo application StockTraderRI makes me ask this question:
What is the exact role of each of the following part?
SomethingService: Ok, this is something to manage data
SomethingView: Ok, this is ...
How do I check at runtime if an object if of type ClassA or of derived type ClassB? In one case I have to handle both instances separately
ClassA* SomeClass::doSomething ( ClassA* )
{
if( /* parameter is of type base class */) {
} else if { /* derived class */ ) {
}
}
Maybe I could say that the derived class ClassB has s...
In a book i recently read, the author presented the 'node pattern' which looks close to EAV, but i couldn't find any useful and concrete informations about it.
Do you know any good document to point me to ? or explain what's it exactly ?
...
I have public site with some forms.
Simple question:
What kind of informations should I show when validation of AntiForgeryToken fails?
Is it should be 404 (page not found), error or just ignore it and redirect to the home page?
...
How do I restrict object creation not more than 3 in Java class?
Can you give me an idea of how I can to do it?
...
From the title, I believe it to be a straight forward question, but looking into the "world of Business Objects" I can't seem to put my finger on anything solid as to what a Business Object should be. Are there any best practices that I should follow, or even any design patterns?
I have found a book, "Expert C# Business Objects", would...
Hello fellow SO-ers.
I'm at the beginning of my road concerning Programming and Software Development and Design. I want to develop some applications in .NET(C#) WinForms with a SQL server as back-end (haven't decided yet: PostgreSQL, MSSQL or other). What I want to ask is where do I get information on:
How do i structure my SQL tables...
My system sends out messages to users (email, sms, etc). It currently sends it for every event (which is only once a day at most), but I'd like to add in a form of digest to it where a user can select to have a weekly or monthly digest of their messages. I'm looking to see if there are any existing opensource solutions for this, or exist...
I will develop a WCF service. The service will get data from SQL Server.
What patterns I should use to separate access code to SQL Server and other code. In future I am planning to change access logic to SQL Server (LINQ to SQL or ADO.NET or Entity Framework).
...
Let me briefly describe the problem I'm trying to solve, and see if somebody can provide a better solution than I have.
At the bottom of it, I'm trying to craft a UI that allows the user to select a subset of a set of columns; there is a set of columns M that the user has to choose from, and they can choose 0..m of these. Additionally,...
The main goal of the Null Object Pattern is to ensure that a usable object is provided to the client. So we want to replace the following code...
void Class::SetPrivateMemberA() {
m_A = GetObject();
}
void Class::UseA() {
if (m_A != null) {
m_A.Method();
} else {
// assert or log the error
}
}
...with...
I am halfway through an OOP project in the finance industry, and I'm looking back at my design decisions. I've solved some problems using patterns, and I'm particularly proud of those, but elsewhere I seem to lack a bit of rigor. My own use cases are extremely high level, since the actual input done by the user doesn't even compare to th...
Hi
Accoring to the MVP pattern the view should contain all the UI components. Then i read about the new UiHandler introduced in the GWT 2.0. The UiHandler can be used only in the view.
Should we use UiHandler in the mvp pattern, if so where should we use it.
NOTE: i am a GWT n00b.
...
I'm studying some source codes and I'm just wondering why a class (or classes) is often implemented this way:
class EventHandler
{
...
EventDispatcher* m_Dispatcher;
virtual bool ProcEvent( EventHandler* Sender, int Task, int Event, void* Param );
...
};
class ClassA: public EventHandler
{
...
ClassA* m_Impl;
ClassA* m...
Is there any site / tool that'll let me check where I stand as a programmer?
AFAIK the development of programmer would include
Language Basics
Good coding standard (class level)
Design Patterns
Architecture
Is there a way to benchmark and check areas of weakness? For language basics, vendor certifications can help but other areas l...
In .NET architecture,there are lot of design patterns.I want to know about what is meant with observer pattern and how it is implemented
...
When some one asks you to write (do / depict) design for Connection Pool in a Java interview what would you typically write.
Do you write code for connection pool or do you depict the Class diagrams. Can somebody please explain the design of Connection pool.
...