Do you declare functions with a camelCase or PascalCase?
Also:
void Name()
{
// comment
}
or
void Name() {
// comment
}
?
Do you declare functions with a camelCase or PascalCase?
Also:
void Name()
{
// comment
}
or
void Name() {
// comment
}
?
People that doesn't have their curly brackets on a line of their own are pure cancer.
whatever is the convection for the language, so snake_case for C/C++ and python and camelCase for most other things
curly on newline only for functions/methods and classes
I am not aware that a language has their own convention, I thought companies make their own.
>using nouns to name functions
>not using 1TBS or K&R bracing style
disgust.jpg
>convection
python has PEP8 and the C/C++ standard libraries use snake_case, this is what i meant by convention
curly on newline for functions is K&R style
>t. * le 1337 h4x0r
I follow either the language's guidelines if there are any, or the project's guidelines. If I get to choose I like snake_case
/thread
I used Name as a placeholder for the name of the function fuck off
You could've said "to name" is a verb too, though.
I like your sentiment, even though you are a smartass
i prefer camelToe
it was a matter of time
flow-matic-case
Why is the camelCase image in PascalCase?
camelCase
and
void Name() {
// comment
}
if I can choose lisp-style
otherwise snake_case
for functions( I program mostly in C)
int
main(int argc, char *argv[])
{
if(expression)
//code
if(expression) {
//line one
//line two
}
}
>not putting brackets for one line if block
i hate you
camelCase, Allman style.
snakecase.
Hello fellow rustaceans!
First one is vastly superior, the braces are just to encapsulate content, so you should keep them away from declarations.
The Prophets K&R are cancer?
the-best-case
I follow the convention of the language, but in terms of personal preference I like camelCase and open brackets on the same line.
i do
void camel_case(void)
{
//stuff
}
which is the only sensible method
This
In c++ I use snake_case variables, camelCase functions and PascalCase types. In Lisp everything is kebab-case.
Fucking this
kebab-case
get a loads of this dumb apple programmer
void Name()
// comment
{
}
it depends on the language i'm writing on, but usually for me my functions are camel case, class names are pascal case, variables are always snake case and functions have the curly brace on its own line, but not control structures
now, what I think we can all agree is that indenting with spaces is retarded and people who advocate for that deserve ballsack cancer
After using mainly this_shit I've come to truly despise camel case, it just looks so retarded to me
void functionName(){
}
The only acceptable way.
>>using nouns to name functions
And the problem is?
depend on the language, you shithead.
camel case whenever possible, reaching up to the underscore key is annoying.
I use different types in the same file just to piss people off and yes i am very close to killing myself