Home » Developing U++ » U++ Developers corner » is there U++ coding style reference?
Re: is there U++ coding style reference? [message #27780 is a reply to message #27768] |
Tue, 03 August 2010 11:24   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
dolik wrote:
Quote: |
Brackets are mostly on the same line
|
i disagree on that one . i have the impression that finding corresponding brackets is esier when they are placed on new line each. i know that Assist++ marks brackets, but it's also a visual perception of blocks, that matters, and here the new line stuff is better.
another thing:
small functions have their implementation in .h file anyway, and on same line as definition, like
Ctrl& Enabled(bool enable = true) { enabled = enable; return *this; }
rule of thumb: >3 syntactical important statements >> separate definition and implementation properly.
(syntactical important statements: real function calls and variable calculations, return values not counted, return *this is no 'important syntactical statement, only a helper.)
what about template classes?
.h / .hpp / .cpp relation and handling
did you look up my tempc class on that? any comments?
[Updated on: Tue, 03 August 2010 11:25] Report message to a moderator
|
|
|
 |
|
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 17:18:23 CEST 2025
Total time taken to generate the page: 0.03833 seconds
|