Do you know a good quick reference guide for a number of programming languages?

In the course of my work, I support code in several programming languages ​​(see below). Since I have not mastered most of them, I continue to forget about the differences in syntax between them. Is there a good link that covers (preferably for all of them on the A4 side, in the table) the main features of the language, for example.

  • conditional statements (if (something) {} or not?)
  • Comparison operators (is it =, == or sometimes ===? Is it <> or! =)
  • Are variables case sensitive?
  • How do you concatenate strings? (. or or +?)

I would like to do this for:

  • Python
  • Php
  • Perl
  • Javascript
  • ASP
+7
reference programming-languages
source share
9 answers

http://rigaux.org/language-study/syntax-across-languages/ has more languages ​​than you want, but at least it's syntax oriented. There are no pages.

+1
source share

Dzone has a lot.

+5
source share

Please feel free to.

                            Python PHP Perl JavaScript VBScript    

 Conditional statements

 Comparison operators
   basic == == == == =
                            <>! =! =! = <>
   typesafe n / a === n / a === n / a
                            n / a! == n / a! (===) n / a

 Variables case sensitive?  yes yes yes yes no

 Concatenate strings with +., (,).  + &
                            string.join join "a", "b"
+4
source share
+3
source share

I would start by looking for program sheets. Here is one pretty good choice .

+3
source share

gotapi is a nice place

http://www.gotapi.com/html

I would definitely look at him

you should also visit dzone refcardz

http://refcardz.dzone.com/

they have many useful reference cards ...

like this

http://refcardz.dzone.com/announcements/php

+2
source share
+2
source share

PHP:

Conditional statements

  • if ($ cond)
  • $ cond? $ value_if_true: $ value_if_false;

Comparison operators

PHP supports the following basic comparison operators:

  • ==
  • ! =

It also contains operators like:

  • ===
  • ! ==

Expressions can be canceled using unary! operator.

Boolean operators

Basic Boolean operators:

  • & & / and
  • || / or

Case sensitivity

PHP variables are case sensitive. They are also associative arrays.

String concatenation

. (period) is used to concatenate strings in PHP.

+1
source share

asp classic:

Conditional statements

if (cond) then

still

end if

Comparison operators

ASP classic supports the following basic comparison operators:

=

! =

Expressions can be canceled using unary! Operator.

Boolean operators

Basic Boolean operators:

and

or

not

Case sensitivity

Classic ASP variables are not case sensitive.

String concatenation

& (ampersand) is used to concatenate strings, you can also use "+".

+1
source share

All Articles