+ 1
Whats ur style of coding ????
a.) function FuntionName{ body } b.) function FunctionName { body } c.) function FunctionName{ body }
21 Respostas
+ 17
a or all in one line, if only one line is in the function.
+ 15
b.)
+ 11
a.)
+ 9
b) ~easy to understand at a glance.
+ 9
Varies
+ 7
a.)
+ 4
b
+ 3
a.)
+ 3
b
+ 3
b
+ 3
I prefer "a"
+ 2
b looks neat
+ 2
a.)
+ 2
b...no actually I use both a and b although I try to be consistent within the same project
+ 2
a is best sintax code for php
+ 2
a.) by default after BaSh, Python, JavaScript, and some C. One question re: the portability of code, shouldn't the 'FunctionName' be enclosed in parentheses or is that only relative in the few languages I mentioned?
+ 1
since it all began with java for me ..... i use option " a.) "
+ 1
java
+ 1
'a' is commonly used.
+ 1
For me its (b) most of the times. But sometimes (a) also.