Click here to Skip to main content
6,630,289 members and growing! (22,675 online)
Email Password   helpLost your password?
Announcements
* Bold indicates new messages since 11:31 21 Nov '09
BullFrog Power
 
Search    
Add to IE Search

Welcome to the Lounge! RSS Feed     


The Lounge is a place where you can discuss anything that takes your fancy. If you just want to laze about and discuss things that don't quite fit elsewhere, then this is the place.

Posting Guidelines: The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Please do not post programming questions here. If you have a programming question then click here!.


You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page  Date Filter 
 Msgs 2,905 to 2,929 of 980,569 (Total in Forum: 980,569) (Refresh)FirstPrevNext
GeneralRe: So yet another programming language... PinmemberKevin McFarlane7:22 11 Nov '09  
GeneralRe: So yet another programming language... PinmemberDalek Dave4:14 11 Nov '09  
GeneralRe: So yet another programming language... PinassociateJim Crafton4:19 11 Nov '09  
GeneralRe: So yet another programming language... PinmvpPete O'Hanlon4:42 11 Nov '09  
GeneralRe: So yet another programming language... PinmemberAlan Balkany6:38 12 Nov '09  
GeneralRe: So yet another programming language... PinmemberRavi Bhavnani7:18 12 Nov '09  
GeneralCommentaries - above or below the code? PinmemberJacek Gajek2:47 11 Nov '09  
A programmingcommenting question.

I have been writing commentaries above a related line of code, like this:
// The Init() method we call here initializes an array of points
Init();

However, I have seen a big sample of code written by one of my professors recently. The commentaries was placed below a line.
Init();
// The Init() method we call here initializes an array of points

Sincerely, I have found it very clear and understable. Did anybody encounter such approach to commenting code? Is it recommended?

Greetings - Jacek

Sign In·View Thread·PermaLink2.75/5 (3 votes)
GeneralRe: Commentaries - above or below the code? PinsitebuilderNishant Sivakumar2:49 11 Nov '09  
GeneralRe: Commentaries - above or below the code? PingroupNorm .net3:38 11 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmemberElectron Shepherd3:46 11 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmemberRichardM114:13 12 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmemberDuncan Edwards Jones2:51 11 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmvpRajesh R Subramanian2:52 11 Nov '09  
GeneralRe: Commentaries - above or below the code? Pinmember1.21 Gigawatts2:58 11 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmemberMedia2r3:10 11 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmemberRichardM114:14 12 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmembercrudeCodeYogi3:09 11 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmemberAman Bhullar3:28 11 Nov '09  
GeneralRe: Commentaries - above or below the code? Pinsupporterpeterchen3:35 11 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmemberOriginalGriff3:54 11 Nov '09  
GeneralRe: Commentaries - above or below the code? [modified] Pinmemberdmpthekiller1:37 12 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmembergisTimmy5:31 12 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmemberSterlingCamden6:49 12 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmemberRichardM114:15 12 Nov '09  
GeneralRe: Commentaries - above or below the code? PinmemberDalek Dave4:09 11 Nov '09  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Last Updated 21 Nov 2009
Web22 | 2.2.0175 | Advertise | Privacy
Copyright © CodeProject, 1999-2009
All Rights Reserved. Terms of Use