All Questions

1
answer

What is the difference between using return false, event.stopPropagation () and event.preventDefault ()?

In a jQuery event handler, you can use return false , event.stopPropagation() and event.preventDefault() (or combinations thereof) to "cancel the action" of the event. I know it has a difference in their behavior, but hone...
asked on 12.12.2013 / 12:02
1
answer

What is the meaning of the "??"

I was looking at some codes and I came across the ?? operator: static int? GetNullableInt() { return null; } int y = x ?? -1; What's the difference between the first code and the second one?     
asked on 16.12.2014 / 17:17
3
answers

How can I simplify URLs for a website?

To access a particular area of the site, I have to indicate one to three parameters in the URL: Normal URL: # aceder a um módulo http://www.meusite.com/index.php?mod=john # aceder a um sub-módulo: http://www.meusite.com/index.php?mod=joh...
asked on 28.12.2013 / 10:37
3
answers

Operator + = Java

I've always found that the += operator only worked as a shorter form for the traditional increment, for example: i += j; Instead of: i = i + j; But when performing the following experiment: int i = 3; long j = 7; So when I...
asked on 11.01.2014 / 19:28
2
answers

How to actually learn how to use promises in javascript?

I've been trying to learn how to use promises and asynchronous programming in javascript for a while, but so far I have not had much success with it. I have already understood that there are functions that return such promises and that a callbac...
asked on 24.05.2014 / 02:28
2
answers

What is the "important" statement for?

What is the !important statement in CSS? body { font-size: 12.5px !important; }     
asked on 14.07.2014 / 15:03
6
answers

What's the difference between declaring an array with "array ()" and "[]" in JavaScript?

In JavaScript we can declare an array in two ways: var matriz = new Array(); and var matriz = []; What is the difference between the two and what are their consequences? This question is being posed for the purpose of documenting...
asked on 04.03.2014 / 21:48
3
answers

What is the impact of changing the default behavior of an HTML element?

Recently there was a question here in Stack Overflow about changing the default behavior of checkbox to act on the page as a radio , that is, when selecting an item, the others should be deselected, keeping the selection unique. Res...
asked on 12.06.2017 / 19:59
1
answer

What is and what is JWT for?

I saw in some comment here on the site, in some question, talking about JWT to solve an authentication problem. I had seen the term loosely before and I thought it was something Java (hehehe). However, by looking at jwt.io , I realize...
asked on 26.09.2016 / 18:24
5
answers

Receive an expression and compute in C

I'm developing this program that should receive an expression from the user and do the calculation. Ex:    Enter an expression       3 * 5-1       14 My problem is how to handle the expression sent by the user. It was recommended to...
asked on 18.02.2014 / 20:22