All Questions

2
answers

What is the purpose of the "id" and "name" properties of an HTML tag?

When we create a tag in HTML we can assign values to its properties, however, the property id and name , I realize that are often used and usually the values that are assigned to them are the same, see the example below: &...
asked on 07.05.2016 / 17:51
4
answers

What is buffer overflow?

Whenever I use the gets() function the compiler returns me the following warning:    function is dangerous and should not be used Translation:    This function is dangerous and should not be used I hear a lot about the fact...
asked on 27.02.2016 / 23:49
3
answers

What is the purpose of while (0) and while (1) in C?

What is the purpose of this? While(0) or While(1). The 1 verifies that it is correct and the 0 that is wrong? Why?     
asked on 17.12.2015 / 03:40
1
answer

What is the difference between break, pass and continue in Python?

The Python documentation in Portuguese is a work in progress, and fairly confusing how can you see . I have difficulties in English and I find this site that I can not read. So, how can I use break , pass and continue...
asked on 13.12.2013 / 17:06
4
answers

How to validate CPF on client side with script?

I'm working with a CPF validation in my controller , but I need to validate when the client exits the input of the CPF and then return a message advising when the CPF is incorrect, alert or something similar. I tried to do somethin...
asked on 20.02.2015 / 01:48
2
answers

What does the "=" operator mean?

I was seeing some solutions in JavaScript and in one case I saw this command line: return args.reduce((s, v) => s + v, 0); . But I do not know what the => operator means. What's his role?     
asked on 21.02.2016 / 01:09
2
answers

What is a rubber duck and what is it for?

There is an expression used from time to time in the middle of programming that concerns working on code with a rubber duck. How does such a duck help you develop software in a better way?     
asked on 05.06.2017 / 16:34
6
answers

How to get distance given the coordinates using SQL?

I'm making a function in php , in which, given a GPS coordinate, it will search the database for registered locations, which are not necessarily fixed, within a certain distance. My question is: how do I calculate the distance between the co...
asked on 13.03.2014 / 13:19
4
answers

How useful is the Exclamation Point (!) before declaring functions in Javascript?

I was reading a manual, and was asked to start the functions like this: !function (){ }(); This exclamation point appeared. What is the purpose of it?     
asked on 06.10.2016 / 20:27
4
answers

Why is using dynamic something to be avoided?

My company works with development, it is a company practice for all codes to be reviewed by another person before they are approved in pull request . Generally my codes have only a few details to change, but this time the reviewer commented...
asked on 10.05.2017 / 18:36