Questions tagged as 'design-pattern'

0
answers

WPF and the MVVM standard, doubts

I'm studying C # and am having to develop a WPF application with the default MVVM. A question I have about this pattern is in relation to events, I have read in some places that it is not recommended to use events and also that we can not access...
asked by 19.06.2018 / 18:05
1
answer

Aggregations and DDD

I'm developing a project by applying the principles of DDD , I created an aggregation class ( Conta ) it will contain the classes ( Agencia ) and ( Agente ) which as ( Conta ) have tables in the database. My questio...
asked by 11.01.2017 / 10:38
1
answer

Singleton - What is its function and definition? [duplicate]

I gave a researched on, until I saw some videos but, I did not quite understand the function or even how it works within Java programming. I'm working on a project and a friend recommended me to understand about Singleton to make the login scr...
asked by 21.06.2017 / 13:12
0
answers

ASP.NET MVC - Alternative to DDD [closed]

I'm going to start building an application let's say small, initially about 5 CRUDs and only 1 Core (this is a bit more complex in terms of business), but the goal is for it to grow with the passage of time, using .NET Framework 4.5.1 and Entity...
asked by 12.01.2016 / 11:31
0
answers

Dependency Injection Composition and Injection [closed]

I was studying Design Patterns and came up with a question: Does the Concept Composition (OOP) inflict on the pattern "Injection Dependency"?     
asked by 09.10.2015 / 18:54
2
answers

How to instantiate Strategy objects

Consider the basic implementation of the Strategy pattern. public class Context{ private Strategy strategy; } public interface Strategy{ void algoritmo(); } public class ConcreteStrategyA implements Strategy{ void algoritmo(){ //...
asked by 14.12.2018 / 16:12
1
answer

Data access object - DAO

I am learning design patterns and applying on a CRUD, within DAO can I just leave these code for SQL? public class UsuarioDAO { private Connection con = ConexaoFactory.getConnection(); public void cadastrar(Usuario usuario) {...
asked by 28.03.2016 / 20:25
1
answer

What are the Android design patterns? [closed]

Hello, I would like to know if there are design patterns for Android (Java), coding, etc and their similarities, differences, which is the most used, since I am wanting to know more about the subject and have not seen a question that encompasses...
asked by 17.06.2015 / 20:26
2
answers

Prevent classes from modifying the state of objects

How to prevent classes from modifying the state of objects in a class, both Within equal and separate packages? Assuming there is a pattern for designing a java class design that may or may not affect the state of objects.     
asked by 30.03.2017 / 23:41
2
answers

MVC and dynamic language change

I have a MVC myself that I implement in my projects in PHP . This supports multiple languages and by default they get the active / initial language from the browser. However, there are projects that require the language modificat...
asked by 29.05.2015 / 11:52