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
-
xewl41267ypretty ( arg ) {
return arg;
}
I also tend to do shit like
if (
statement
|| (
statement
&& statement
)
) {
....
} -
So don't look at any C# project.... They're all filled with ugliness 🤣
On a side note: Is this going to be our new tabs vs spaces war?? -
Root797707yParentheses: attached
Args: spaced
Curlies: attached
Indent: 2/3/4 spaces
Ternaries: enclosed
Related code: grouped
Guards: up! -
Just
void Compromise() //{
{
//I am the ultimate genius :v
}
Or
void Compromise() {
//{
//Undecided :v
} -
Well my goal is more the readability, so I prefer the "ugly" one. It's more readable and you have a fast idea of where start you bracket without highlight nor thinking.
public void myFunction()
{
println("Hello");
}
And also, I think it's better because spaces equality 😋
And no, I'm not someone who likes having 150 visibles lines in my screen. I prefer have only 30-40 lines but be able to focus on current part of code easily and separate everything in my mind.
Related Rants
There is two types of people:
pretty(){
}
ugly()
{
}
rant
two types of people
syntax