Questions tagged as 'design-pattern'

3
answers

Project Improvement in PHP

I have a question about design pattern in php. I have a class DAO that has a selection method, well what happens is that I had to put some stylized HTML codes with bootstrap in this method, what did I do this correct? class CategoriaDao...
asked by 30.03.2015 / 02:16
1
answer

Hierarchical Object Filter

I have an asp.net MVC 4.5 C # razor screen typed by a main class: public class ClassePaiDTO { public virtual ICollection<Filho1DTO> Filho1s { get; set; } public virtual ICollection<Filho2DTO> Filho2s { get; set; } //c...
asked by 17.03.2015 / 13:57
1
answer

Model Layer with DAO classes

I work with an MVC application that can be considered large or at least average, since it involves hundreds of functionalities and more than 400 MySQL database tables. As an ORM tool we adopt Doctrine through dependency injection, and we choose...
asked by 06.11.2014 / 11:48
1
answer

Is there a design pattern for iOS to consume data from a web-service?

I'm looking for a design pattern that will help standardize the construction of an iOS app that consumes data coming from a web service. Could you tell if there is the name of this development model?     
asked by 19.09.2014 / 21:51
0
answers

Alternative to facade [closed]

I would like to know if you have some design pattern or some alternative approach to the pattern facade. I found his approach interesting in creating a "facade" for a given "subsystem" but the class that should be simplified became huge and s...
asked by 16.08.2018 / 23:47
0
answers

Can any project be appropriate to SOLID principles? What are the steps to this?

I'm trying to tailor one of my projects to SOLID standards , however, I'm not getting out of milestone . The project in question can be found at: link After a few tries the following doubts appeared: Is every project passive to confo...
asked by 17.08.2018 / 16:14
0
answers

Responsibility for service and repository

People would like to know who uses design-pattern service and repository , what would be a basic architecture structure, ie what the service can and can not do, and what are the responsibilities of the repository. I am currently using the follo...
asked by 16.03.2018 / 15:22
0
answers

How to organize UI needs in DDD

Where do I place the code that does not respect the business rule, but is it a necessity for the user to submit, such as combobox, dataTables, texboxAutoComplit ...? details: Currently working in layers (presentation, application, domain,...
asked by 05.10.2017 / 21:23
0
answers

Transformer or Converter?

I have worked on some project and I come across situations where one particular object has to be transforming another. In general, it's java classes that originate in COBOL that I convert to another type, but with clearer and more intuitive c...
asked by 18.08.2017 / 01:59
0
answers

Model - Passive or Active? (Design Patterns - MVC)

In the context of an MVC application, is the model expected to send some kind of information on its own? For example: I made a model that tells the controller every time the "ready" property changes (to true or false). In this way, the Contro...
asked by 14.06.2017 / 22:07