|
-
February 28th, 2012, 09:30 AM
#6
Re: My very first C program (Windows - console)
 Originally Posted by GCDEF
That's definitely not somebody's first program, but I'll comment anyway.
I find all those comments really distracting and annoying. Give your functions and variables meaningful names so that you don't have to explain them with comments.
Stop commenting the end of functions, loops, if statements, etc. If you use proper indentation and alignment, that's really easy to see just by looking at the code. //end function completely unnecessary.
Understood. But with structured languages like this, you can get lost even with correct indenting. At least I can..... Do mean more verbose variable and function names?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|