Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [facade]

The tag has no usage guidance.

-1
votes
1answer
137 views

What is the C++ equivalent of a logging facade in Java?

I'm currently writing a library in C++ and was wondering if I should log from within it. Googling the issue I came across this question but it makes reference to a logging facade. Is there anything ...
0
votes
1answer
121 views

Decorator or Facade

I face an issue if to use a decorator or facade pattern to accomplish my needs. Imagine a client wants to play a video. He can use the interface public interface IVideoPlayer { // Prepares ...
2
votes
1answer
309 views

Multiple Facade Classes must be combined in 1 Facade Class

Is this some rule that if I have multiple Facade classes they must be combined in 1 Facade Class? For example, I have a Hospital System with different classes, like Appointment, Patient, Doctor, ...
1
vote
2answers
360 views

Is it okay to put all your error handling on facade layer?

I am doing a Java Spring-Boot backend project and I am implementing a controller-facade-service pattern on my structure. So is it best to put all my error handling on the facade layer, while the ...
0
votes
1answer
276 views

Should Facade handle all exceptions or throw

I am trying to abstract the elasticsearch python client. I have a method index document def index(self, body, id=None): """ Inserts one document into elasticsaerch. If id is ...
0
votes
2answers
73 views

Using typeless maps on api boundaries

What do you think about passing typeless maps to APIs (packages, systems, adapters) outer to Core Domain as in 1st Way below? Strongly-typed objects are inside Domain API, and business rules are ...
1
vote
5answers
525 views

Facade pattern or just expose child objects?

Wondering about pros and cons around a facade pattern implementation (or perhaps there is a better pattern I should consider), versus simply exposing a dependent object to a caller. Consider the ...
-6
votes
1answer
939 views

C# Console application - Is the main method Facade [closed]

Currently I am making a console application. Is that right that the Main method of a .net console application is a facade? Is any console application entry method is a facade?
-3
votes
1answer
120 views

How can interface work, if there is no code inside its abstract methods?

Interface is used to implement more than one class but it doesn't have any code inside its methods... however the method that is called works with its respective function. Also, it gets very confusing ...
-1
votes
1answer
938 views

What if Facade contains business logic?

Consider that the Facade has inside it lots of sub-components but it done not pass messages from one sub-component to the other but also has some business logic in it. Is it still Facade pattern?