Click here to Skip to main content
15,890,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: changing final result of compiling Pin
Abhijit Jana13-Apr-09 21:00
professionalAbhijit Jana13-Apr-09 21:00 
GeneralRe: changing final result of compiling Pin
Tom Deketelaere13-Apr-09 21:02
professionalTom Deketelaere13-Apr-09 21:02 
AnswerRe: changing final result of compiling Pin
Pedram Behroozi13-Apr-09 20:22
Pedram Behroozi13-Apr-09 20:22 
GeneralRe: changing final result of compiling Pin
ariyanna13-Apr-09 23:29
ariyanna13-Apr-09 23:29 
QuestionDataGridView Pin
Marla Sukesh13-Apr-09 19:35
professional Marla Sukesh13-Apr-09 19:35 
AnswerRe: DataGridView Pin
Mbah Dhaim13-Apr-09 20:17
Mbah Dhaim13-Apr-09 20:17 
QuestionFacade... Pin
Illegal Operation13-Apr-09 19:24
Illegal Operation13-Apr-09 19:24 
AnswerRe: Facade... PinPopular
Colin Angus Mackay13-Apr-09 21:50
Colin Angus Mackay13-Apr-09 21:50 
Illegal Operation wrote:
I mean I have checked it out and it's an excellent pattern


If you checked it out and decided it is an excellent pattern, surely you must have read where and why you would use it?


Illegal Operation wrote:
if you have say 10 classes and each class has 1000 methods


Then you have a bigger problem that the Façade pattern will solve.


Illegal Operation wrote:
It seems to me that you are literally creating a single point of failure for your application.


I don't understand what you are meaning by that. How is the Façade pattern a single point of failure?

There are various areas where you might use the Façade pattern. Most likely is that you have a large and unweildy interface into some subsystem and you want to create an easy interface to that system that hides some/most of the detail.

For example, a DAL (Data Access Layer) could implement the Façade pattern to hide the detail of ADO.NET operations. To the outside application you have a method that returns, say, customers. Behind the scenes the Façade is creating connections and SQL commands and so on. Now your main application doesn't have to deal with that detail any more. This makes your application cleaner to use and easier to maintain. And there is always the option to change what is behind the Façade without disturbing what is using the Façade (e.g. some time some decides that you really don't need SQL Server and that a bunch of XML files would be much better - Just think of all the code you'd have to change without the Façade. Now you change code in one place and everything else stays the same)


AnswerSo, what was wrong with my reply? Pin
Colin Angus Mackay13-Apr-09 22:21
Colin Angus Mackay13-Apr-09 22:21 
AnswerRe: Facade... Pin
Pete O'Hanlon13-Apr-09 23:51
mvePete O'Hanlon13-Apr-09 23:51 
Questionproblem with DateTime objects Pin
cppwxwidgetsss13-Apr-09 19:14
cppwxwidgetsss13-Apr-09 19:14 
AnswerRe: problem with DateTime objects Pin
Mycroft Holmes13-Apr-09 19:26
professionalMycroft Holmes13-Apr-09 19:26 
AnswerRe: problem with DateTime objects Pin
Juan1R13-Apr-09 21:49
Juan1R13-Apr-09 21:49 
AnswerRe: problem with DateTime objects Pin
DaveyM6913-Apr-09 21:55
professionalDaveyM6913-Apr-09 21:55 
AnswerRe: problem with DateTime objects Pin
Vikram A Punathambekar13-Apr-09 22:09
Vikram A Punathambekar13-Apr-09 22:09 
QuestionConverting pcl format to pdf format Pin
MarcoDF8913-Apr-09 19:02
MarcoDF8913-Apr-09 19:02 
QuestionHow i check the Ans of objective question using Radio Button Pin
Ravindra Bisen13-Apr-09 19:00
Ravindra Bisen13-Apr-09 19:00 
AnswerRe: How i check the Ans of objective question using Radio Button Pin
Mycroft Holmes13-Apr-09 19:20
professionalMycroft Holmes13-Apr-09 19:20 
AnswerRe: How i check the Ans of objective question using Radio Button Pin
Pedram Behroozi13-Apr-09 20:06
Pedram Behroozi13-Apr-09 20:06 
QuestionProblem in executing Stored Procedure through ODBC Pin
Renukapadhamanaban13-Apr-09 18:11
Renukapadhamanaban13-Apr-09 18:11 
AnswerRe: Problem in executing Stored Procedure through ODBC Pin
Vikram A Punathambekar13-Apr-09 18:16
Vikram A Punathambekar13-Apr-09 18:16 
AnswerRe: Problem in executing Stored Procedure through ODBC Pin
Anubhava Dimri13-Apr-09 18:33
Anubhava Dimri13-Apr-09 18:33 
GeneralRe: Problem in executing Stored Procedure through ODBC Pin
Renukapadhamanaban13-Apr-09 19:34
Renukapadhamanaban13-Apr-09 19:34 
QuestionComponent for comparing VB codes in c# program Pin
Surya Ayyagari13-Apr-09 17:39
Surya Ayyagari13-Apr-09 17:39 
AnswerRe: Component for comparing VB codes in c# program Pin
Mark Churchill13-Apr-09 18:04
Mark Churchill13-Apr-09 18:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.