Questions tagged as 'sintaxe'

5
answers

Difference between single and double quotation marks in PHP

What is the difference between single quotes and double quotation marks in PHP? Yesterday I was working with a JSON string from google calendar I used explode('\n', .. to separate a string. When I used the explode in "Mon Jul 7,...
asked by 06.02.2014 / 20:24
1
answer

What is the difference between SASS and SCSS

I've been reading about SASS for quite some time and it provides a powerful set of functionality for CSS like variables, mixins, and the like. And at the same time I see the term SCSS. What's the difference between the two? Are they the same...
asked by 15.03.2015 / 23:34
4
answers

Getters and Setters are obligatory or facilitators?

Lately I have read some Java books, but there is a part that makes me confused in this kind of accessor methods - gettters and setters. The question is: I'm forced to write in this type of methods, for example, getName () or just have to w...
asked by 24.09.2014 / 15:49
1
answer

How decorators work in Python?

@Elizeu Santos asked in the Portuguese Python group of facebook the following:    "Talk to people, I'm studying python and something I'm not understanding   are the decorators. I faced them doing the flask tuition, they can   make me clear up...
asked by 06.07.2014 / 05:39
6
answers

Do not use "{}" keys in IF in PHP can generate problems?

Generally for checks that modify only one line I have avoided the use of keys, since PHP accepts this method, but I rarely see codes from other programmers like this ... Examples My method if($thumb->SaveInDB('imagens','img')) $ok =...
asked by 11.07.2014 / 19:34
2
answers

In HTML5 should nulls be enclosed with "" or with "/"?

In HTML 5, there is a series of null elements, which according to # and data examples (English) by W3C, they are closed using only > : Null Elements area, base, br, col, embed, hr, img, input, keygen, link, menuitem, meta, pa...
asked by 05.01.2014 / 20:55
2
answers

What is the difference between die, exit and __halt_compiler?

What are the main differences between die , exit and __halt_compiler ?     
asked by 02.07.2015 / 17:46
2
answers

For with a ";" at the beginning of the loop, which means

I got a code with a for: for (; indField > 0 && indMask > 0; ) What does this ";" mean at the beginning and end of the command?     
asked by 29.12.2016 / 16:17
4
answers

Contest question: logic error and semantic error?

I participated in a contest and fell the following question:    33 - Analyze the algorithm and tick the correct option for this algorithm. Calculation_Media Algorithm: Var N1, N2, MEDIA: Inteiro Início Leia N1, N2 MEDIA ← (N1 + N2)...
asked by 18.01.2016 / 16:51
3
answers

In PHP the correct is else if or elseif?

In PHP, is correct else if or elseif ? What's the difference between them? The language allows you to write everything together and separate, and apparently the results are identical     
asked by 10.04.2015 / 20:50