Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I think I normally do:
whatEver() {
// The thing
}
*note camelCase and that Tab is set to 4 spaces -
Oddly enough i have noticed i have a preference as follows:
conditional/itterator
{
}
function/decleration {
}
And frankly i havent a clue as to why -
I personally like to use camelCase and the first one, but most company code use the second one ... so I usually follow along for the sake of uniformity. 😣
Btw, this question always end in tears. People take these kind of preferences seriously. -
Depends on the programming language in Java I use the second but in C++ I use the first.
Related Rants
what does devRant prefer?
controlstructure
{
//something
}
or
controlstructure {
//something
}
undefined
lines
intendation
break