Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 928  / 1 Year ago, fri, april 28, 2023, 10:41:54

I saw the rules on how to type code for UNITY project or GNU software in general.
Why do they write code in such an ugly form? Is there a particular reason why they don't put brackets the way (from what I know) most people do?



Why like this:



for (i = 0; i < 5; i++)
{
//do something
}


and not like this:



for (i = 0; i < 5; i++)
{
//Do something
}


or this:



for(i = 0; i < 5l i++) {
//Do Something
}


???


More From » programming

 Answers
0

I shouldn't even ask this question. The nature of the question was about an actual reason and not just taste. I guess GNU guys just want to be different and that's what they did by putting the brackets in a way that I consider ugly. As for an answer (if I want change, then bring it on) I don't want change cause I use a style that most people do. It makes it easy for me to read their code and easy for them to read mine. When it comes to change I would prefer if possible to bring it in essential stuff and not change how people write code just because.



I guess it all boils down to taste. I can't accept any answer cause no answer was an actual answer.



I guess there's no reason for it, just taste.


[#34343] Sunday, April 30, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ettorina

Total Points: 439
Total Questions: 99
Total Answers: 131

Location: Vanuatu
Member since Wed, Oct 14, 2020
4 Years ago
ettorina questions
Thu, Sep 1, 22, 15:28, 2 Years ago
Mon, Mar 14, 22, 06:04, 2 Years ago
Sun, Jul 24, 22, 13:31, 2 Years ago
;