Questions tagged as 'design-pattern'

1
answer

How to implement the Observer pattern in practice with database?

I'm studying some design patterns, and right now I'm learning about the observer pattern . I've read books, I've seen some lessons on Youtube, I've done the examples and everything. But now I'd like to implement in practice inserting data in...
asked by 10.03.2016 / 21:26
1
answer

MVC versus MVVM

I can not differentiate between either MVC or MVVM. What really differentiates MVC from MVVM? In job interviews, they sometimes ask just that, how you differentiate one from the other.     
asked by 22.06.2017 / 15:08
1
answer

How to do multiple inheritance in javascript

I have seen several ways to do inheritance in javascript, but I do not know how to do multiple-inheritance function Transporte() { var nome; this.getNome = function () { return nome;...
asked by 25.06.2015 / 22:11
0
answers

What is atomic web design?

On the surface, I find this approach very interesting, but before going deeper I would like to know what it is exactly, too, if it is possible to use it in short-scale projects, or even in a company that does not have a team dedicated     
asked by 12.12.2017 / 18:12
2
answers

Doubt with syntax

Simple doubts. Usually I see this syntax: require('../lib/dbconnect')(config); But I do not understand why I use these parentheses in this way. (....)(....); Can anyone explain what it's all about?     
asked by 15.10.2015 / 15:06
2
answers

Is it correct in MVC to access data within the model?

In a C # MVC project, is it okay to access data within the model ? For example: public class Cliente { public int Id { get; set; } public string Nome { get; set; } //outros atributos... public void Inserir(){ Client...
asked by 26.10.2017 / 16:16
4
answers

Can I use the Repository to do the BLL part?

I was reading about Repository vs Dao and I saw the following sentence:    [...] The Repository standard is intended to support the domain model   providing persistence. Unlike DAO, which is an object of   application infrastructure and is pa...
asked by 03.07.2014 / 03:50
2
answers

What is it for {} inside the main

I came across a C situation I do not know and had never seen anyone use before. Within the main() method there are several keys, I believe to isolate the code however there is a same variable that in each block of code receives a value an...
asked by 21.08.2018 / 22:06
1
answer

Is there a pattern similar to Singleton?

It's really frustrating, a bit interesting maybe, but frustrating above all, I still figured out how and why to use the Singleton standard yesterday, and today, when I was going to finish a little improvement on a project, the true face of the...
asked by 14.11.2015 / 05:00
2
answers

MVC and DAO - Data Rules

In a CRUD where in the act of registering you should check if a certain field already exists in the bank, in order not to allow duplicate registration, this verification rule must be in the DAO class (% with% if it exists in the act of registeri...
asked by 28.09.2016 / 21:04