+ 2

What is the fastest method to recognize a programming language ?

20th May 2017, 9:28 PM
Mugfirfauzy Siregar
Mugfirfauzy Siregar - avatar
9 odpowiedzi
+ 23
You can use Fastlang algorithm: * include? - C++ * using? - C# * require? - Ruby * import? a. lots of braces and semicolons? - Java b. no semicolons, code indented? - Python * lots of lowerthans and greaterthans? - HTML * same but actually looks like a code? - PHP * many document. or window. references? - JS Works almost always ;)
20th May 2017, 10:22 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 8
by the documentation
20th May 2017, 10:10 PM
NimWing Yuan
NimWing Yuan - avatar
+ 3
another way is to look at the very language specific syntax (eg the' :' instead of { } in python. )
20th May 2017, 10:13 PM
ifl
ifl - avatar
+ 2
@Kuba Siekierzynski thanks for that post! Do you have a link to more info by any chance? ( in english). i googled but could not find anything satisfying.
21st May 2017, 5:22 AM
ifl
ifl - avatar
0
any other ? from the function or method maybe ?
20th May 2017, 10:01 PM
Mugfirfauzy Siregar
Mugfirfauzy Siregar - avatar
- 1
I am often confused between php, java and c ++ languages.. I think too much code in my head😁
20th May 2017, 10:23 PM
Mugfirfauzy Siregar
Mugfirfauzy Siregar - avatar
- 1
how about conditionals and loop ? are they same in each language ?
21st May 2017, 12:32 AM
Mugfirfauzy Siregar
Mugfirfauzy Siregar - avatar