Questions tagged as 'design-pattern'

1
answer

jQuery ajax, asynchronous encapsulation

I like encapsulation because it greatly reduces the source code, I have done the following regarding ajax: custom.ajax=function(obj,funcao,view){ // FUNÇÃO AJAX var data = {'obj':obj,'func...
asked by 08.07.2015 / 20:53
3
answers

DELPHI MVC (ECB)

I would like to know if anyone knows how to implement the MVC (ECB) pattern in Delphi. I use DelphiXE5 and would like to make it as scalable as possible, and I know one of the solutions is to make it an MVC application. Any suggestion? Source? E...
asked by 11.07.2014 / 16:35
3
answers

Use interfaces to abstract connection type

In college we learn to use the FACTORY template for connections, but I wonder if it is possible to apply interfaces as well, as in the following example: Case study I have an application in php that follows as closely as possible th...
asked by 26.11.2015 / 11:18
1
answer

Inheritance with Repository Pattern

I'm studying and trying to implement the Repository Pattern in C # but I'm having some difficulty solving certain inheritance problems between my Repository classes >, for example the inheritance between Pessoa , PessoaFisica...
asked by 03.12.2014 / 15:30
1
answer

Doubts about implementation of Lazy Load and Dependency Injection

The scenario is simple, it has a PersonPass class that has linked to it a list of Contacts (instances of physical persons), Telephones (instances of a Phone entity), and a list of Addresses (instances of an Address entity) / p> I have in the c...
asked by 01.05.2015 / 17:35
1
answer

What design pattern should be used to save objects that have similar save shapes?

I'm wondering if I'm not mistaken, I've read, seen, or even implemented something like this but I can not remember it, it's the following: I have here an EJB project with several entities, some of them have very similar ways of saving, for ex...
asked by 26.07.2014 / 05:24
1
answer

Proper Naming of User Groups in a System

I'm designing a system that will have multiple modules. It is possible until these modules are separated into different applications. Then I had a question that I had previously but could not get the answer: What names should I give to differ...
asked by 27.06.2018 / 17:38
1
answer

Strategy Pattern with Spring Boot

I've been looking for strategy pattern solutions with spring boot, but nothing I've found so far seems performative or even functional. I have an interface like: public interface UserService { User getById(Integer id); } And I have t...
asked by 23.05.2018 / 19:09
1
answer

Implementation of Abstract Factory, Factory Method and Adapter standards

I have read the following sentence:    AbstractFactory defines an interface for creating a family of related or dependent products without having to explicitly specify classes. Consider the following adapter: Adapter.php      names...
asked by 28.02.2017 / 21:43
1
answer

What to test / implement in a viewmodel?

I'm trying to implement an MVVM (Model - View - Viewmodel) pattern that is related to MVP. Home Since ViewModel, for my understanding, is responsible for "passing" the data from the View layer to the Model, it was the responsibility of doing thi...
asked by 04.07.2016 / 19:11