Home » Developing U++ » U++ Developers corner » is there U++ coding style reference?
Re: is there U++ coding style reference? [message #27789 is a reply to message #27788] |
Tue, 03 August 2010 13:39   |
|
I totally agree with mrjt and his reasoning.Morover, I am using 5 levels of color coded backgrounds (with quite sharp colors), that gives much better idea about blocks than looking forbrackets.
As I said before, the only exception to have bracket on separate line is the first bracket in function definition. I don't like that too much as well, but there I can see the reason - if you set the function name apart from the rest of text, it makes it easier to find the function when "scanning" through long file.
But I would never do this with if, while, etc. Actually I often make the block on the same line, if it contains just a short code:
if(condition){int a = 213;}
for(int i = 0; i < 123; i++){abs += i;} But that is my personal style, definitely not official U++ 
Honza
|
|
|
 |
|
is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
By: mrjt on Tue, 27 July 2010 12:02
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
By: koldo on Thu, 29 July 2010 10:10
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
By: mrjt on Thu, 29 July 2010 14:10
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
By: kohait00 on Mon, 02 August 2010 09:06
|
 |
|
Re: is there U++ coding style reference?
By: mrjt on Mon, 02 August 2010 11:21
|
 |
|
Re: is there U++ coding style reference?
By: kohait00 on Mon, 02 August 2010 11:39
|
 |
|
Re: is there U++ coding style reference?
By: koldo on Mon, 02 August 2010 14:59
|
 |
|
Re: is there U++ coding style reference?
By: kohait00 on Mon, 02 August 2010 15:34
|
 |
|
Re: is there U++ coding style reference?
By: kohait00 on Tue, 03 August 2010 11:24
|
 |
|
Re: is there U++ coding style reference?
By: mrjt on Tue, 03 August 2010 12:40
|
 |
|
Re: is there U++ coding style reference?
By: kohait00 on Tue, 03 August 2010 12:50
|
 |
|
Re: is there U++ coding style reference?
By: mirek on Thu, 05 August 2010 12:50
|
 |
|
Re: is there U++ coding style reference?
By: kohait00 on Thu, 05 August 2010 12:53
|
 |
|
Re: is there U++ coding style reference?
By: mr_ped on Tue, 03 August 2010 13:05
|
 |
|
Re: is there U++ coding style reference?
|
 |
|
Re: is there U++ coding style reference?
By: kohait00 on Tue, 03 August 2010 15:58
|
 |
|
Re: is there U++ coding style reference?
By: mr_ped on Tue, 03 August 2010 17:28
|
 |
|
Re: is there U++ coding style reference?
By: kohait00 on Tue, 03 August 2010 17:34
|
Goto Forum:
Current Time: Wed May 14 20:39:04 CEST 2025
Total time taken to generate the page: 0.02964 seconds
|