Questions tagged as 'design-pattern'

1
answer

Aggregation and composition in various relationships

Given a class A, let's say that the relation between this class A and a class B is composition, where A is the class "all" and B is the class "part". Given a third class C, can there be another composition between B and C, so that in this new re...
asked by 11.01.2016 / 21:40
1
answer

Dependency Injection MVC C # - MongoDB 2.0

I'm starting a project using MVC 4 with Driver 2.0 MongoDB . I'm used to using Ninject with EF6 and would like to know if there is something like MongoDB or some example architecture pattern to implement it....
asked by 13.01.2016 / 18:37
1
answer

Implement a CRUD class

I have a CRUD class that has the following methods: GetConnection () Insert ($ object) Update ($ object) Delete ($ object) Select (object) Taking into account the SRP (Principle of Single Responsibility) that says:...
asked by 23.08.2015 / 18:08
1
answer

For an unordered set of Listeners what is the best java.util.Set implementation to use?

I'm developing a Handle for a stream of data, where events will be periodically released that should be captured by a small set of Listeners from 1 to 5 listeners . This set of listeners does not need to be triggere...
asked by 11.08.2015 / 01:50
1
answer

What relationship between MVC and Project Standards?

We know that the Model View Controller (MVC) is not a Design Pattern, but architecture standard. It is also not a layered pattern, as this tells you how to group components while MVC tells you how components interact. MVC uses some standards....
asked by 03.06.2015 / 15:50
1
answer

How does the Object Linked to Other Objects pattern work?

What is the OLOO pattern? How does it work? What's your difference to Prototype Pattern? What is the advantage of using each one?     
asked by 30.03.2017 / 15:43
1
answer

How could I implement Command (Design Pattern) in this work?

I'm doing a work in Java where we should implement 3 Design Patterns from the software we created earlier. Home The software I created is basically a CRUD for movies. In a tab, you add (insert) and change (update) the records and in the other ta...
asked by 12.06.2015 / 01:48
1
answer

Return string search in table

Data and database queries have a very special place in the universe of computers. The popularization of the internet was due to the agility of searches implemented by the Enginner Search Web mechanisms. Simply searching for a string using sql...
asked by 05.04.2018 / 19:23
1
answer

Dealing with nested objects (nesting) using an ORM

Let's assume that in a system for a bus company I have entities: Line, car and travel. Each has three classes: The entity itself, class Linha extends Model { protected $id; // outras propriedades. public function getId() {...
asked by 08.09.2016 / 05:15
1
answer

Is it advantageous to use the MVC standard in small applications? [closed]

I have read several articles related to MVC, its advantages in maintaining reusability codes and everything. But the question is, in small applications it is worth using this standard, as far as I understand it, you have to have an entire pla...
asked by 07.08.2014 / 21:45