All Questions

2
answers

strcpy is merging numeric format with other chars

I do not know if I could make myself understood in the title, but when I use strcpy() to copy a char* to another when I put a format so "teste" it works normally, but when I put a string format 3 letters (digits in case),...
asked on 02.06.2018 / 23:47
2
answers

Check if the previous day is a holiday and / or Sunday

I'm having trouble developing a date validation logic. The variable dataFecha is called with -1 day to already validate the previous day. But when I test the validations, he did not subtract (-1) day in the variable, to validate the Sa...
asked on 13.12.2017 / 12:43
2
answers

Where to create a Helpers layer?

I need to create a Helpers layer that will contain classes that will be made available for the entire project. These classes will contain functions like calculations, string cleaners, in short, those functions we use all the time ......
asked on 28.02.2018 / 10:59
1
answer

Am I using the design pattern Bridge correctly?

I am studying project patterns and would like to know if the following approach is correct for the bridge pattern and if you can improve it:     
asked on 19.03.2018 / 02:00
1
answer

What are false positives in programming?

Once upon a time I see this term related to programming and, in order to understand it better, I went to Google search but only found issues related to health and computer virus. In programming I have a very superficial notion on the subject,...
asked on 17.12.2018 / 18:22
1
answer

Memory addresses

My architecture is 32-bit so my memory addresses are 32-bit? because it was using a debug by looking at assembly tags and arrived in a part where it had loop , and it was getting byte by byte from < and each character in the string had an...
asked on 15.10.2015 / 23:50
3
answers

When should I use empty or isset?

I noticed that some people have doubts about the use of these two functions, or if they have no doubts, they seem to unnecessarily apply one of these functions, and in some cases the other functions better. For example, to verify that a value...
asked on 07.10.2015 / 21:53
2
answers

How to separate characters from a string in R?

I have values a string containing a date "01/01/2000" I want to separate the day, month and year. #Data #01/01/2000 #Dia Mês Ano #01 01 2000 How do I do this in R?     
asked on 15.09.2015 / 13:35
1
answer

Number of columns influence performance?

When we model a database, can the number of columns interfere with performance? Ex: Tabela1 possui 2 campos, 1 int pk e 1 nvarchar(50) Tabela2 possui 50 campos, 1 int pk e 49 nvarchar(50) Select used for both tables, regardless o...
asked on 27.10.2015 / 13:01
2
answers

get_called_class or new static?

I do not remember which library in PHP I saw this, but there was a code snippet where, to get a new instance of the current class, the get_called_class function was used. However PHP has the keyword static , which refers to late...
asked on 03.10.2015 / 18:58