Top "Syntax" questions

Syntax refers to the actual language elements and symbols themselves.

Why avoid increment ("++") and decrement ("--") operators in JavaScript?

One of the tips for jslint tool is: ++ and -- The ++ (increment) and -- (decrement) operators have been known to …

javascript syntax jslint postfix-operator prefix-operator
Can someone explain __all__ in Python?

I have been using Python more and more, and I keep seeing the variable __all__ set in different __init__.py …

python syntax namespaces
Add a property to a JavaScript object using a variable as the name?

I'm pulling items out of the DOM with jQuery and want to set a property on an object using the …

javascript jquery object syntax
Commenting in a Bash script inside a multiline command

How can I comment on each line of the following lines from a script? cat ${MYSQLDUMP} | \ sed '1d' | \ tr ",;" "\…

bash syntax comments
What Does This Mean in PHP -> or =>

Possible Duplicate: where we use object operator “->” in php Reference - What does this symbol mean in PHP? …

php syntax
Java switch statement multiple cases

Just trying to figure out how to use many multiple cases for a Java switch statement. Here's an example of …

java syntax switch-statement
Nested JSON objects - do I have to use arrays for everything?

Is there any way to have nested objects in JSON so I don't have to make arrays out of everything? …

javascript jquery json syntax parsing
What is the C# Using block and why should I use it?

What is the purpose of the Using block in C#? How is it different from a local variable?

c# .net syntax using using-statement
What does %>% function mean in R?

I have seen the use of %>% (percent greater than percent) function in some packages like dplyr and rvest. What …

r syntax dplyr magrittr r-faq
Get the first element of each tuple in a list in Python

An SQL query gives me a list of tuples, like this: [(elt1, elt2), (elt1, elt2), (elt1, elt2), (elt1, elt2), (elt1, …

python python-2.7 syntax