Questions tagged as 'design-pattern'

1
answer

Several CRUDs in the same PHP project

Hello, I have a question about structuring a project, in case it is in PHP. Let's say that I have 3 CRUDs to do, one would be a product, another a customer, and the last one to order. In this case, I would have to structure the project som...
asked by 03.04.2018 / 01:07
1
answer

Validating date and CPF in 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 the format: 00/00/0000 and the CPF :...
asked by 04.03.2018 / 02:56
2
answers

DDD C # - On which layer should I implement the data export part

I am developing an application in C # and WPF, with several registers such as Customers, Suppliers, Products, etc. I am using the DDD concept and am having a question about how to implement a data export module. I will need to export data and th...
asked by 08.07.2017 / 17:01
1
answer

Access design to MySql database [closed]

I've been investigating good implementations that allow easy adaptability to my db connection. I would like to receive feed backs and suggestions about improvements to this design. For example: how would you implement more than one database in...
asked by 09.07.2015 / 12:47
1
answer

Designer Pattern for Objective-C

Well, does anyone know of a good book, book, or blog that explains well about Designer Pattern, specialized in Objective-C / iOS, with good examples and updated?     
asked by 12.08.2014 / 22:28
1
answer

Bank connection object: should I have only 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 multiple banks and so I created a AcessoBanco cla...
asked by 23.11.2018 / 20:23
0
answers

Standard Singleton and Prototype

I'm 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 processing, the second one modifies the object. My pro...
asked by 27.09.2018 / 13:55
1
answer

Is it recommended to use a global variable for a PDO object?

Below I'll give you an example of how I use the PDO connection today to access my databases. I would like to see with you, whether it is a good practice this way, or whether it is recommended a safer and more efficient way. For example: <...
asked by 14.09.2018 / 16:33
0
answers

Doubt AngularJS - DDD - Graphics

Good evening guys. I am developing a finance control application with revenue, expenses, transfers between accounts, reports and graphics in angularjs + webapi + ddd + automapper + injection of dependencies to study new technologies, as I cur...
asked by 06.06.2018 / 03:52
0
answers

Error starting Vraptor 4

Uploading the application by Tomcat 7 triggers the following stacktrace : mai 25, 2018 3:42:43 PM org.apache.catalina.core.StandardContext filterStart GRAVE: Exception starting filter vraptor javax.enterprise.event.ObserverExcepti...
asked by 25.05.2018 / 21:21