Top "Syntax" questions

Syntax refers to the actual language elements and symbols themselves.

Extracting specific columns in numpy array

This is an easy question but say I have an MxN matrix. All I want to do is extract specific …

python syntax numpy
What is /dev/null 2>&1?

I found this piece of code in /etc/cron.daily/apf #!/bin/bash /etc/apf/apf -f >> /dev/…

shell syntax posix io-redirection
C# Syntax - Split String into Array by Comma, Convert To Generic List, and Reverse Order

What is the correct syntax for this: IList<string> names = "Tom,Scott,Bob".Split(',').ToList<…

c# generics syntax ilist
Are (non-void) self-closing tags valid in HTML5?

The W3C validator doesn't like self-closing tags (those that end with "/>") on non-void elements. (Void elements are those …

html syntax w3c-validation
Using multiple arguments for string formatting in Python (e.g., '%s ... %s')

I have a string that looks like '%s in %s' and I want to know how to seperate the …

python string syntax
Why are hexadecimal numbers prefixed with 0x?

Why are hexadecimal numbers prefixed as 0x? I understand the usage of the prefix but I don't understand the significance …

c syntax hex
SQL left join vs multiple tables on FROM line?

Most SQL dialects accept both the following queries: SELECT a.foo, b.foo FROM a, b WHERE a.x = b.…

sql syntax join
How do I pass multiple parameters in Objective-C?

I have read several of the post about Objective-C method syntax but I guess I don't understand multiple names for …

objective-c syntax parameters methods
What's the meaning of "=>" (an arrow formed from equals & greater than) in JavaScript?

I know that the >= operator means more than or equal to, but I've seen => in some source code. …

javascript syntax ecmascript-6 arrow-functions