Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Comments

Comments

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Garg Vikas
    wrote on last edited by
    #1

    Hi All: As everybody knows comments are vary crucial part of programming. Can anybody suggest how to write more professional comments with in your code? Any guideline? :) Vikas Garg

    M G 2 Replies Last reply
    0
    • G Garg Vikas

      Hi All: As everybody knows comments are vary crucial part of programming. Can anybody suggest how to write more professional comments with in your code? Any guideline? :) Vikas Garg

      M Offline
      M Offline
      mnaveed
      wrote on last edited by
      #2

      For VS2005 or 2003 you can use the built in XML comments. for which you can get help from MSDN and you can use third part util to make documentation from these comments. like you can use NDoc util to genrate documents from XML Comments which is very handy and professional Nav.

      1 Reply Last reply
      0
      • G Garg Vikas

        Hi All: As everybody knows comments are vary crucial part of programming. Can anybody suggest how to write more professional comments with in your code? Any guideline? :) Vikas Garg

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        XML comments can be used for documentation, as mnaveed suggested. For comments in the code itself, focus on making it easy to find out what the different parts of the code does. Put yourself in the mind of someone who sees the code for the first time, has to locate a specific action in the code and find out how it's done (and what's wrong with it ;)). :: Comment what's unusual or complicated, not what is plain and simple. :: Explaining why something is done is often a more useful complement to the code than how it's done. Most of the time the code itself reveals how it's done, but seldom why. Well written code is also a form of documentation. If you choose good variable names, you don't have to write comments that explains what every variable is used for. --- b { font-weight: normal; }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups