+ 1

Whats ur style of coding ????

a.) function FuntionName{ body } b.) function FunctionName { body } c.) function FunctionName{ body }

6th Apr 2017, 4:55 PM
Glynes Dsouza
Glynes Dsouza - avatar
21 Answers
+ 17
a or all in one line, if only one line is in the function.
6th Apr 2017, 6:56 PM
Tashi N
Tashi N - avatar
+ 15
b.)
6th Apr 2017, 4:55 PM
Dev
Dev - avatar
+ 11
a.)
7th Apr 2017, 7:18 AM
Agus Mei
Agus Mei - avatar
+ 9
b) ~easy to understand at a glance.
6th Apr 2017, 4:57 PM
Pixie
Pixie - avatar
+ 9
Varies
6th Apr 2017, 5:06 PM
Cory Gutierrez🔹
Cory Gutierrez🔹 - avatar
+ 7
a.)
6th Apr 2017, 5:05 PM
Sachin Artani
Sachin Artani - avatar
+ 4
b
6th Apr 2017, 7:06 PM
Sahaj Bamba
Sahaj Bamba - avatar
+ 3
a.)
6th Apr 2017, 5:12 PM
onekpsc
+ 3
b
6th Apr 2017, 6:19 PM
Saumya
Saumya - avatar
+ 3
b
7th Apr 2017, 3:39 AM
Camille
Camille - avatar
+ 3
I prefer "a"
7th Apr 2017, 6:57 AM
Naeem Rind
Naeem Rind - avatar
+ 2
b looks neat
6th Apr 2017, 5:47 PM
Arihant Bedagkar
Arihant Bedagkar - avatar
+ 2
a.)
6th Apr 2017, 6:08 PM
iBrandon
iBrandon - avatar
+ 2
b...no actually I use both a and b although I try to be consistent within the same project
6th Apr 2017, 8:32 PM
Shane
+ 2
a is best sintax code for php
6th Apr 2017, 10:05 PM
afgprogrammer
afgprogrammer - avatar
+ 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?
7th Apr 2017, 12:16 AM
stefan hall
stefan hall - avatar
+ 1
since it all began with java for me ..... i use option " a.) "
6th Apr 2017, 4:57 PM
Glynes Dsouza
Glynes Dsouza - avatar
+ 1
java
6th Apr 2017, 5:53 PM
saurav singh
saurav singh - avatar
+ 1
'a' is commonly used.
7th Apr 2017, 12:03 AM
Jesse de la Cruz
Jesse de la Cruz - avatar
+ 1
For me its (b) most of the times. But sometimes (a) also.
7th Apr 2017, 8:44 AM
Tanmay Maiti
Tanmay Maiti - avatar