Questions tagged as 'buenas-practicas'

3
answers

static? What is it? and what is it for?

I have been programming desktop applications for a short time in C # , and I do not understand the difference between using static in my created variables or functions, that is: private static String nombre_variable{get;set} // cual es la d...
asked by 03.04.2018 / 21:25
2
answers

DATE () vs DATE_FORMAT () in MySQL

The doubt came to me by answering a question here on Stackoverflow. The aim was to obtain only the date (without the time) of a column DATETIME , to compare it using BETWEEN . Obtaining that date can be done: Using DATE...
asked by 25.10.2017 / 12:49
2
answers

Is it necessary to use two types of validations in laravel?

I will present a topic that you may know, but for me it is not entirely clear ( for the amount of time I've been using the Laravel framework ), I hope this topic can be explained here: It turns out that I am developing a sitio web (admi...
asked by 11.04.2018 / 16:48
1
answer

Cognitive complexity in Factory class

I have a question about how to correctly create a factory class without increasing the cognitive complexity. The class consists of a static method that returns an implementation based on a name. Being a large application, there are many implemen...
asked by 08.10.2018 / 14:31
1
answer

How the parameters received in a method should be treated

Cordial greeting. I am a student of development, I am developing a program and in a class I have a method with several parameters, the question that arises is that within the method as I should treat those parameters, should I assign them to...
asked by 25.03.2018 / 17:53
0
answers

Very simple query about JS or Vue

The following in itself is not a problem, rather it is that I am a Junior developer and I am learning Vue in depth, and I want to learn it in the best way following the steps of people from people who already know. So I expose an image of the...
asked by 14.12.2018 / 20:57
0
answers

Return of models in Spring + GraphQL

In most of the examples I have consulted about Spring with GraphQL, the resolvers communicate directly with the DAOs to obtain models. Is it good practice to return the models directly in the resolvers, or should DTOs be returned? Does the...
asked by 12.11.2018 / 22:46
1
answer

Return position of an arrangement, best practice

I have come across two ways to return a position in an arrangement, in an autoincremental function and I wanted to know which one would be considered better and why 1.- public Object returnObject() { objectIndex++; return objeto[obj...
asked by 13.04.2018 / 18:20
1
answer

it is advisable to pass many parameters [closed]

Cordial greeting. I am making an application in c # use the program in three layers but I have the doubt that if it is advisable to pass many parameters to a method, if not, what can I do? Is there a design pattern to solve this? example: Publ...
asked by 30.03.2018 / 03:59
3
answers

Authentication recommendations in Angular 2+

I'm looking at the issue of angular authentication, either logging in, or registering using APIs such as Google or Facebook. I am currently using the latest version of Angular 5, and I am in doubt about what kind of authentication should be d...
asked by 18.02.2018 / 02:16