Most voted "pattern-design" questions
A design standard, from English design Pattern, is a general reusable solution to a problem that commonly occurs in software design.
Learn more…269 questions
Sort by count of
-
1
votes1
answer79
viewsGoogle Cloud Messaging and Synchronization Standardization
I am building a project that will use Google’s GCM, something new in my projects, and I would like to know the following. At the time the user makes his registration who will request the first data…
android web-service api pattern-design google-cloud-messagingasked 9 years, 5 months ago Giancarlo Abel Giulian 3,999 -
1
votes0
answers64
viewsHow to organize UI needs in the DDD
Where I put the code that does not concern the business rule, but is a necessity for the presentation to the user, such as filling out combobox, dataTables, texboxAutoComplit...? details: Currently…
-
1
votes1
answer165
viewsAm I abusing Strategy Pattern too much in Java?
In an application for user authentication via Radius I thought it would be interesting to use Design Patter Strategy with Enum. So the code went like this: public enum TipoAutenticacao {…
-
1
votes1
answer448
viewsApplication of the Singleton standard for small/large design
I’m building classes for an old project where I used only functions in different files. The goal is clear, to create a reusable code standard for small-scale projects with not very distinct…
-
1
votes0
answers234
viewsResponsibility of service and Repository
Folks would like to know who uses service design-Pattern and Repository, how it would be a basic architecture structure, or whatever the service may or may not do, and what are the responsibilities…
-
1
votes3
answers186
viewsUse interfaces to abstract connection type
In college we learn to use the model FACTORY for connections, but I wonder if it is possible to apply interfaces too, as in the following example: Case study I have a php application that follows…
-
1
votes0
answers50
viewsAlternative to the stabbing
I would like to know if you have any Pattern design or alternative approach to Pattern facade. I found interesting his approach in creating a "facade" for a certain "subsystem" but the class that…
-
1
votes1
answer271
viewsWhat use are the keys in the variables of Node.js
ola, I have a doubt a little amateur I’m starting with Node.js and through my learning I came across a situation and I would like to understand, in one of the codes I researched I found a variable…
-
1
votes1
answer1447
viewsDesign Patterns in Spring Boot projects
In the last 12 months I have worked and studied to learn how to create REST Apis with Spring boot, before that I worked with php MVC programming to create web systems and now in this my "migration"…
-
1
votes1
answer101
viewsWhy is the Serializable interface empty in JDK source code?
I know what serialization is and what use it is. I also know when not to use it. I’ve read item 74 of the Java Effect. My question is, what is the purpose of an empty interface, in which there is…
-
1
votes3
answers201
viewsIs making queries in a view, in the MVC standard, a bad practice?
I know that most PHP frameworks are used by default MVC. Where thing guy (theoretically) should stay in his particular place. For example, the controllers are responsible for the request and other…
-
1
votes1
answer149
viewsData access object - DAO
I’m learning project patterns and applying in a CRUD , within the DAO I can only leave these SQL related code? public class UsuarioDAO { private Connection con = ConexaoFactory.getConnection();…
-
1
votes0
answers133
viewsHow to pass parameters for a query in a repository?
I’m creating a series of classes that return listings in Java (Android). I am concerned about the format of the parameters that will be passed. My initial approach has been to pass a Map with…
-
1
votes0
answers29
viewsMediator vs CQRS vs Repository
Hello, I’m developing a migration to a new ORM, in . NET, from an application with a complex SQL database, many small tables between them. A very tight system. In order to better organize the…
-
1
votes0
answers101
viewsWhat is the correct way to register one to Many with DDD
I have studied DDD and assembled an architecture similar to the books and examples I have read. So far, when I’m gonna crud, when I record I run something like this: UI : The display layer fills an…
-
1
votes2
answers61
viewsWhat is the static method of that returns an object instance in Java
I believe this method serves to "circumvent" the nay possibility of a method builder static. But what is the function of this? public static MinhaClasse of(OutraClasse outraClasse, Departamento…
-
1
votes0
answers409
viewsWhat is the best Design Pattern for Java Logger
I would like to know which is the best choice to implement Java Loggers. Currently I have used dependency inversion as the following example: @Controller @RequestMapping("/"); public class…
-
1
votes0
answers57
viewsTransformer or Converter?
I have worked on some project and come across situations where a certain object has to be transformed into another. In general, these are java classes originated in COBOL that I convert to another…
-
1
votes1
answer597
viewsDesign Standards: Singleton Design Standards
I know that the Singleton guarantees me a single instance of a given object. I understood this. What creates doubt would be its use in practice like this. Let’s assume the code below, using…
-
1
votes2
answers456
viewsString Field List Sorting
I have a List with attributes, of which I have the field of reviews, containing: Excellent, Good, Regular, Bad, and Bad. The information for this field I get from the consumption of a REST API using…
-
1
votes1
answer208
viewsCorrect Nomenclature of User Groups of a System
I am designing a system that will have several modules. It is possible until these modules are separated into different applications. Then came a doubt I had before but I could not get the answer:…
terminology modeling pattern-design software-architectureasked 6 years, 7 months ago Please_Dont_Bully_Me_SO_Lords 516 -
1
votes1
answer45
viewsMultiple Returns Pattern Builder
I have a class Builder who is responsible for returning an object he builds: public class ObjetoBuilder { private Objeto objeto; public ObjetoBuilder() { objeto = new Objeto(); } public…
-
1
votes3
answers227
viewsWhat is the pattern represented by this class called?
I wonder what kind of class this is DaoDeAutenticacao, whose skeleton I wrote down. Despite the name I don’t think it’s a DAO (Data Access Object), however it is defined, and yes something else (a…
-
1
votes1
answer67
viewsCommand Validations - CQRS
I’m learning about CQRS and in a Hangout promoted by a Micrososft MVP he presented an implementation of Command where the model data are validated within the validation of the Command. Date…
-
1
votes0
answers125
viewsWhere do I put my classes in the MVC standard?
I am writing a MVC application in PHP and the directory structure is as follows: - root ¬ app ¬ controllers ¬ models ¬ views ¬ core ¬ config ¬ public In the "app" folder is the MVC layers. In…
-
1
votes1
answer83
viewsDependency injection and coupling - how wrong is this?
I created a project where the intention was to have a simple architecture, a rich domain and a webApi, but as soon as I started and already seeing the cagad*s, this is very bad? So come on, I…
c# asp.net-core pattern-design software-architecture dddasked 5 years, 9 months ago Márcio Sebastião 769 -
1
votes0
answers49
viewsLegacy application repository standard - ASP.NET MVC 5
I am participating in a project using ASP.NET MVC 5, I would like opinions to form a concept in which I can achieve good results with a good team productivity. What I have of interfaces: Irepository…
-
1
votes1
answer65
viewsHow to avoid too many Try/except?
I have the code below that plays values inside keys in a dictionary. However, I need several try / except so that the code works perfectly, since, in the absence of one of the fields, the code will…
-
1
votes0
answers35
viewsJava Producer and Consumer with same production and consumption rate, despite different speeds
Hello! I’m starting to use BlockingQueue and ExecutorService to implement a Producer-Consumer. Looking at the page https://is.gd/BcIIXK, I removed line 24, and changed line 38 to…
-
0
votes1
answer82
viewsDesigner Pattern for Objective-C
Guys, someone knows a good book, booklet, or blog that explains well about Designer Pattern, specialized in Objective-C/iOS, with good examples and updated?
-
0
votes1
answer139
viewsDAO layer with two tables
My doubt when working with the layer DAO next: As far as I was informed, each table would refer to an object DAO. But suppose it is necessary to make an appointment with select / JOIN that is, that…
php mysql software-architecture pattern-designasked 9 years, 8 months ago Anderson Brunel Modolon 1,111 -
0
votes1
answer110
viewsPattern design for Webapi project
I need to create a project with Webapi to consume some procedures of a remote SQL database, for example: sp_retornaProdutos(1) turning that into /produtos/1 and returning the result in JSON. I…
-
0
votes3
answers1060
viewsImplementation of generic CRUD
I have the following class CRUD that is generic: public abstract class CRUD { protected string tabela = null; protected object classe = null; public CRUD() {} public virtual void insert() { //código…
-
0
votes1
answer177
viewsWhat is the best way to hide visible JS functions when specifying HTML?
I have some Javascript functions in my pages that were previously inserted directly into jsp, within the tags <script>. I later changed them to a.js file where I just import the functions. I…
-
0
votes4
answers275
viewsAPI project with many layers
I’m studying about API. I saw a design pattern with these layers: I found the layers Appservices and Domainservices unnecessary. For me the ideal would be to create only one layer of Services where…
-
0
votes0
answers60
viewsHow to define better names for system entities?
How to define better names for entities in my system. I have a user table. And I have a reset password table where I relate information from the password reset process (id, hash, expiration…
-
0
votes0
answers55
viewsHow to Refactor a Dependency Injection Program
Could someone explain me what the Dependency Injection Pattern is and how to refactor the following code? public class Motor{ ICombustivel combustível; public Motor(){ combustível = new Gasolina();…
-
0
votes1
answer38
viewsMysql database access design
I am investigating good implementations that allow easy adaptability for connection to my db. I would like to receive feed backs and suggestions for improvements to this design. As an example: how…
-
0
votes2
answers678
viewsDDD C# - In which layer should I implement the Data export part
I am developing an application in C# and WPF, with several registrations as Customers, Suppliers, Products, etc. I am using the DDD concept and I have a question about how to implement a data export…
-
0
votes1
answer305
viewsDAO files in PHP required?
I wonder if DAO classes are required in PHP? Ex: Productodao I see many people programming without putting same DAO files on a MVC platform. I am learning Object-Oriented programming at my college,…
-
0
votes1
answer213
viewsValidating date and CPF in the GUMP
I have two fields to validate: CPF and Date of Birth. $validation = [ 'email' => 'required|valid_email', 'data_de_nascimento' => 'required|date' ]; I’m getting the date in format: 00/00/0000…
-
0
votes1
answer127
viewsDoes Command Project Standard have no Python purpose?
The Command Project Pattern provides a way to decouple two objects, one that invokes an action of the one who knows how to execute it, but my question is : In python and other languages that…
-
0
votes1
answer400
viewsSeveral CRUD in the same PHP project
Hello, I have a question about structuring a project, in case it is in PHP. Let’s say I have 3 CRUD to make, one would be products, the other customer and the last order. In that case, I would have…
php characteristic-language pattern-design crud project-organizationasked 6 years, 10 months ago Luiz Miguel 27 -
0
votes0
answers29
viewsIn java web development, what is the best practice for image storage? In a database or image folders?
In a Java web application, what better way to store images? Store in databases or image folders and in the database use paths to these images? And how would you do that? Thinking of using write in…
-
0
votes1
answer478
viewsSession issues in MVC application using Actionfilters
I have a problem in my application ASP.Net MVC, on authentication. Let’s go through steps: 1) I have my login screen /Login/Index simply log in, if found in the database MySQL, and starts the…
-
0
votes2
answers535
viewsWhat is the "right" folder structure for a PHP MVC project using Vuejs?
I know there is no absolute folder structure, but if there is a common preference, it already clears up on the way. I usually use something like: -app (arquivos .php) -model -view -control -public…
-
0
votes0
answers225
viewsWhen to use the Builder-based model object builder instead of passing parameters?
When you have a Builder for creating a template object the method build() is responsible for creating this object, in many examples and materials I have seen this creation made in two ways: Using…
-
0
votes1
answer144
viewsDoes Angular use the MVVM?
I have some doubts about the design of framework Angular The framework actually uses MVVM in full or only a few principles? Component is entirely a Viewmodel?…
-
0
votes0
answers38
viewsAre there Patterns shared between functional and object-oriented paradigm?
Desing Patterns is a subject that has strong appeal to object orientation. We can hardly see in the literature these subjects associated with another paradigm. However, in version 16.8 of React came…
oop pattern-design software-engineering functional-programmingasked 3 years, 10 months ago Paulo Sérgio Duff 1,201 -
0
votes1
answer119
viewsBest way to access Activity components - MVP
I am using the MVP standard in my Android project. In my mainactivity I have the following components: private Paciente paciente; private EditText nome, cpf, cpfTutor, telefone; private CheckBox…