Friday, 09 May 2008

  • Code comments are archaic

    codecomment

    Comments in code today are so archaic.  I just realized this when I thought about migrating this little sketch into some code I was writing.  I could do it, and it wouldn't be the first time I turned a simple diagram into either some overly verbose English description or some time-consuming ASCII art, like ...

    /*
    Here's a bad ASCII art diagram that poorly explains
    the code below.

    [  ][  ][  ]
    [  ][  ][  ]
    [  ][  ][  ] [  ][  ]
             [  ][  ][  ]
             [  ][  ][  ]
    */

    Wouldn't it be great if we could just annotate something with a tablet pen?  The annotation could be stored as a compressed base64 string at the bottom of the same code file.  It could be visually anchored to a marker within existing code or comments.  Visual Studio could just collapse this block and render the inked annotation instead.

    Does anything like this already exist?

Comments (4)

  • Choose Identity

  • Give eProps (?)

  • New! You can now edit your comments for 15 minutes after submitting.

About this Entry

Who recommended?

Who gave the eProps?

2 eProps from: