Home » Developing U++ » U++ Developers corner » is there U++ coding style reference?
Re: is there U++ coding style reference? [message #27745 is a reply to message #27738] |
Sat, 31 July 2010 22:07   |
|
mdelfede wrote on Sat, 31 July 2010 00:05 |
dolik.rce wrote on Tue, 27 July 2010 00:16 |
..........
and that the code should be clean without unnecessary comments 
|
The point there is to define what's "unnecessary" and how many years you'd like to remember what your code do without having to re-examine it for a week...... I'm still thinking that over-commenting is better than under-commenting.
Same discussion in as wine development. "No unnecessary comments", than just a bunch of people (4-5, I guess, among hundreds of wine contributors) can understand what the hell is happening inside gdi core code. Bah.
Max
|
Hi Max!
Proper documentation does not have to be written as comments. Theide is actually very good at it. The topic++ system let's you describe each functions inputs, outputs and also how it works in "reference" section of documentation, which can be swiftly shown in code editor just by moving the mouse pointer to the squares on the left side gutter. Wider ideas and concepts should be in "implementation" section and end user manuals in "app" section.
I am well aware that writing documentation this way is not as simple and fast as just typing the comments into the code. But I prefer the little extra work if it keeps the code clean.
Also, well named functions and a good structured code can make wonders 
That said, I agree that non-documented code that is not understandable to anyone is useless. I just wanted to point out that there is more than one way to do it 
Best regards,
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 17:28:26 CEST 2025
Total time taken to generate the page: 0.02766 seconds
|