Questões de Concurso
Sobre padrões de projeto (design patterns) em arquitetura de software
Foram encontradas 552 questões
Erich Hamma, Richard Helm, Ralph Johson e John Vlissdes, mais conhecidos como “Gang of Four”, coletaram originalmente 23 Design Pattems (Padrões de Projeto) e organizaram em 3 grupos denominados:
Assinale a alternativa correta.
O padrão de projetos MVC (Model-View-Controller) tem como objetivo separar lógica de negócios (Model), interface do usuário (View) e o fluxo da aplicação (Control). O padrão MVC usa em sua arquitetura diversos outros padrões de projeto para atingir seu objetivo.
Em MVC, as classes do Model não devem conhecer nada sobre as camadas de interface que exibem suas informações. O padrão de projeto utilizado pelo padrão arquitetural MVC que é responsável por fazer com que o Model informe mudanças em seu estado para as interfaces, sem conhecê-las, é o:
Para que isto ocorra será utilizado o padrão de projeto
Um Analista de Sistemas necessita utilizar alguns padrões de projeto para solucionar determinados problemas. De acordo com as Categorias de Padrões do Gang of Four− GoF, ele vai utilizar um padrão de cada uma das três categorias, pela ordem, a saber:
− Padrões de Criação
− Padrões Estruturais
− Padrões Comportamentais
Em relação a essas três categorias, os padrões são, respectivamente,
Design Patterns A design pattern is often posed as a question: how do we solve some design problem? However a design problem is, by its nature, nonspecific, and rarely has a single straight-forward answer. There might be several ways to solve the same problem, some better than others depending on the specific situation and the specific context of the problem. A design pattern is intended to share not just solutions but a better understanding of both the problem and how it might be solved.
Firstly, patterns have a well-defined structure. This consistent layout makes it easy to browse through a collection of patterns to find relevant help and then dive further into the material. The structure encourages the author of the pattern to think carefully about the knowledge they're sharing, whilst making the material more consistently accessible to a reader.
Secondly, unlike a tutorial or recipe which typically guides you through a single approach to solving a problem, patterns encourage discussion of related and complementary approaches. Design decisions are rarely clear cut, so it can be useful to understand the context in which a decision is made and the resulting trade-offs. Communicating these nuances is how we share knowledge rather than just fixes for a problem.
Consider the following sentence from the text: “Design decisions are rarely clear cut, so it can be useful to understand the context in which a decision is made and the resulting trade-offs”. Taking into consideration the underlined excerpt from the sentence, it is correct to say that design decisions are:
O catálogo denominado Padrões GoF (‘Gang of Four’) define soluções reutilizáveis para problemas frequentes em projetos de sistemas de software.
Essas soluções estão organizadas em três famílias conforme o propósito de cada solução.
Os padrões de projetos denominados Interpreter, Prototype e
Flyweight que fazem parte desse catálogo, pertencem,
respectivamente, às seguintes famílias:
O referido diagrama representa um arcabouço de classes para o padrão denominado Lista.