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
-
0
votes0
answers57
viewsobjects sharing the same copy of a variable
The goal is to put into practice the contained concepts that I am learning in MALA GUPTA, 2015. So the way I’ve found to contribute is to ask the community to actually implement the concepts. So who…
-
0
votes0
answers28
viewsBest way to build a class to run an SQL package
I am building a layer of access to the database and I need to access the functions inside a package on the oracle server. Orm already connects to the database and accesses tables and procedures…
-
0
votes1
answer550
viewsProblems with PDO class not found
I am studying a book in which I have to make some queryes through a Pattern Tabledatagateway design but I am getting the following error message: Fatal error: Uncaught Error: Class 'classes tgd PDO'…
-
0
votes1
answer56
viewsDúvidas Abstract Factory
I have this exercise to do but I’m not able to do the implementation Using the Abstract Factory Standard, deploy Java clients from Process Manager and Memory Manager products to Linux, Mac, and…
-
0
votes1
answer295
viewsEnum returns null from the database
Hello, I’m implementing a DAO and doing some tests, I’m having some problems in enums. When running the test class the Enum Size returns null, but in the database I have records filled correctly.…
-
0
votes1
answer38
viewsRelate disciplines and students of a pre-registration system
I’m doing a pre-registration system, and I came across a problem that bothers me a little bit: As you can see in the picture, Curso has Disciplinas and Estudantes, only that each student needs to…
-
0
votes1
answer275
viewsIs it recommended to use a global variable for a PDO object?
Below I will pass an example of how I use today the PDO connection to access my databases. I would like to see with you, if it is a good practice this way, or if it is recommended a safer and more…
-
0
votes0
answers52
viewsSingleton and Prototype Standard
I am developing a project where I came across the following situation: There are two families of algorithms that use a given object in different ways: the first just read the data and do a…
-
0
votes1
answer81
viewsDatabase connection object: Should I only have one for the whole system or one instance per class?
What is the best practice: to have only one point (Singleton) that returns the connections to the database or to create an instance of the connection for each object? My system accesses several…
-
0
votes1
answer86
viewsDefinition of Publisher-Subscriber and Observer standards
Today I was evaluating a article (English) concerning the differences between the Observer and Publisher-Subscriber standards, I had until then the view that both were the same thing! Even quoting…
-
0
votes1
answer24
viewsWhy this Reference Error
The method _validaFunção is in the same context as the create method, so why create returns a Uncaught ReferenceError: validaFuncao is not defined? class ProxyFactory { static _validaFuncao(funcao)…
-
0
votes1
answer62
viewsParameters for business rules registered in the database
Good night, Recently I came across a situation that left me very in doubt, is a module of a system that calculates the value to be paid for a service and for this all rules are expressed in a table…
-
0
votes1
answer57
viewsIs there any Pattern related to the typing or not of values in the return of JSON in API’s?
I wonder if there is any problem involved in passing the values of the keys in JSON all as string or if there is any justification to always keep the original types of data? My question is based on…
-
0
votes0
answers39
viewsIs there an implementation standard that better organizes classes of business rules?
I’m part of a Spring Boot development team and the project is getting bigger and bigger. Our problem is that even separating methods according to their related entity, the service classes become…
spring spring-boot spring-mvc pattern-design optimizingasked 3 years, 8 months ago Marcos Vinícius Carvalho 9 -
0
votes0
answers18
viewsUsing a domain class as input model is bad?
my first question here. Well my question is more related to code design. Let’s say you developed a c# Rest API using . net core and you have in your domain a class called Pessoa and you have a…
-
-1
votes1
answer39
viewsWhat does the context class do for the Strategy design standard?
If Strategy uses its abstract class as a means of instantiating concrete implementations, what is the function of the context? In certain materials it was cited that this patter design would be…
-
-1
votes1
answer38
viewsHow to handle dynamic payloads in Node.js?
Hello, I would like to know what would be the best way to model the receipt of payloads with dynamic data, IE, I can sometimes receive a request with 3 fields, other, with 5, etc. For example, in…
-
-2
votes1
answer143
viewsChange matrix structure
How to change the structure of an array? It can be using excel or via programming. I have already made my solution with Java but it was a lot :). Also not generic enough. Is there a Pattern design,…
-
-4
votes1
answer119
viewsStructure of Java projects
I’m having doubts where I work, there are many projects with many different classes, and they use patterns that I didn’t learn in college. Patterns like: DTO, Canonico, Entity. Within these…