Questions tagged as 'sintaxe'

2
answers

What is the syntax for doing array searching as a parameter in MySQL?

What is the correct syntax, if possible, to pass an array as a parameter, using FIND_IN_SET more or less on this idea: SELECT c.cpf FROM tbl_cliente as c WHERE FIND_IN_SET(array, c.cpf);     
asked by 09.01.2014 / 14:38
2
answers

What is the advantage of using languages that compile for other languages?

We were discussing in Stackoverflow's chat about languages like Moonscript and CoffeeScript. They are two languages that compile for other languages. Moonscript for Lua and CoffeScript for Javascript. I noticed in relation to both that the...
asked by 09.12.2015 / 12:21
2
answers

How to analyze malformed HTML syntactically?

As part of a procedure, I need to extract the contents of a table present on a page. I'm using cURL to get the raw HTML data and the Simple HTML DOM Parser to parse and render HTML. <?php // (...) require_once('simple_html_dom.php'); //...
asked by 29.01.2015 / 17:57
2
answers

Declaring a class with a reserved word name is a good idea?

Generally, when we are going to define names for class and functions, there is a concern when colliding with palavras-chaves of language. The curious thing is that I noticed that in PHP it is allowed to define class and functions with...
asked by 02.03.2015 / 13:49
1
answer

What is the advantage of a semicolon in programming languages?

I know that in programming languages like Java and C #, the semicolon indicates the end of the statement, as in the example below, in C #: System.Console.WriteLine("Hello, World!"); However, there are still languages in which the semicolon...
asked by 27.02.2017 / 01:16
2
answers

Does the syntax '///' have any special meaning?

I was using notepad ++ (v 6.5) to write a file in javascript when I noticed the following: I wrote a comment line starting with /// , three instead of the usual two. In execution this line seems to be ignored, but it is not colored...
asked by 05.05.2014 / 16:55
2
answers

What is syntax sugar and how does it work?

I have seen in some blogs the use of this term and would like to know: 1) The real meaning of this expression e; 2) How does a syntax work like the example below in java ? for (Foo foo : listFoo) { //CÓDIGO AQUI }     
asked by 15.04.2014 / 03:01
2
answers

Syntax, meaning

$("#add_city_btn2").click(function() { var city = $("#add_city2").val(); $("#cities2").append($("<option>", { text: city, selected: "selected"})).change(); $("#add_city2").val(''); return false; }); What does the line...
asked by 13.10.2015 / 17:42
2
answers

Ruby - What's the difference between using two dots or double quotes in a string?

In Ruby I can write some things in two different ways: I can do this: :algo Or this: 'algo' What's the difference?     
asked by 17.04.2014 / 15:57
3
answers

What is the difference between using single quotes and double quotation marks in C #?

In PHP, when we use single quotes or double quotation marks, both forms have the function of declaring a string . There is only one small difference. I'm now starting a C # study. When I tried to declare a string with single quotation mark...
asked by 28.05.2016 / 21:33