IDE poll
-
I'm going to have to ding you for poor commenting! The indeffinate article before a vowel is 'an' not 'a'!
veni bibi saltavi
-
This still doesn't solve the problem of changing requirements, changing code, etc. 1. How do you ensure that comments remain current when requirements have been added / deleted? 2. ditto when code has been modified.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
85 million years ago, we had a simple submission check tool. The rules where that every file had a comment header with mod history and every public method had one too; this is all pre XML clever type doc/comments. If they were not there, or unchanged, the change could not be submitted. Simple yet effective.
veni bibi saltavi
-
I'm pretty sure the risk is limited. It isn't a website and most teams are limited in size. You could build in a feature that seriously limits the file size per "attachment" and it will always remain more tedious to add an image than to write a comment.
V.
(MQOTD rules and previous solutions)Or just make a link that, when clicked, opens the file. Shouldn't be all that hard to do. I don't know anything about Visual Studio AddIns/Extensions/etc, though.
What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???
-
Am I the only one who wants a feature in visual studio (or any other IDE) that can have images as comments? The idea would be that you have some sort of button in the side bar (when an image was attached at that location) and if you hover over it you see the image you attached. This image could contain a use-case, a drawing or a print out of a file you read in as example, ... If we think further you could attach paragraphs of the functional/technical documentation that are relevant for this piece of code. (but that might be overdoing it too) Just thinking out loud, but I feel the plain text comment is not sufficient ;-) What do you think?
V.
(MQOTD rules and previous solutions) -
-
Am I the only one who wants a feature in visual studio (or any other IDE) that can have images as comments? The idea would be that you have some sort of button in the side bar (when an image was attached at that location) and if you hover over it you see the image you attached. This image could contain a use-case, a drawing or a print out of a file you read in as example, ... If we think further you could attach paragraphs of the functional/technical documentation that are relevant for this piece of code. (but that might be overdoing it too) Just thinking out loud, but I feel the plain text comment is not sufficient ;-) What do you think?
V.
(MQOTD rules and previous solutions)Heck, I want a 3 dimensional code editor. You have an if statement? The code branches orthogonally to the main code "vector". If-else? Same idea, but with two orthogonal branches. nested loops? Again, you can render that in 3D rather than a 2D "one inside the other" surface. It would really be quite fascinating to see code represented three dimensionally and be able to fly around it, zoom in/out, etc. Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
-
Am I the only one who wants a feature in visual studio (or any other IDE) that can have images as comments? The idea would be that you have some sort of button in the side bar (when an image was attached at that location) and if you hover over it you see the image you attached. This image could contain a use-case, a drawing or a print out of a file you read in as example, ... If we think further you could attach paragraphs of the functional/technical documentation that are relevant for this piece of code. (but that might be overdoing it too) Just thinking out loud, but I feel the plain text comment is not sufficient ;-) What do you think?
V.
(MQOTD rules and previous solutions)5 seconds after you attach an image to a line of code, the requirements change, and the image/doc/whatever is now useless. I worked on a project where we all had the spec printed out on our desk. It was 3" thick - and VERY outdated. We spent more time discussing what the spec really meant than coding it. Any spec is outdated the moment it's saved. Now imagine that attached to ever changing code. Mass confusion ensues. Terrible idea.
If it's not broken, fix it until it is
-
Heck, I want a 3 dimensional code editor. You have an if statement? The code branches orthogonally to the main code "vector". If-else? Same idea, but with two orthogonal branches. nested loops? Again, you can render that in 3D rather than a 2D "one inside the other" surface. It would really be quite fascinating to see code represented three dimensionally and be able to fly around it, zoom in/out, etc. Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
-
Am I the only one who wants a feature in visual studio (or any other IDE) that can have images as comments? The idea would be that you have some sort of button in the side bar (when an image was attached at that location) and if you hover over it you see the image you attached. This image could contain a use-case, a drawing or a print out of a file you read in as example, ... If we think further you could attach paragraphs of the functional/technical documentation that are relevant for this piece of code. (but that might be overdoing it too) Just thinking out loud, but I feel the plain text comment is not sufficient ;-) What do you think?
V.
(MQOTD rules and previous solutions) -
Am I the only one who wants a feature in visual studio (or any other IDE) that can have images as comments? The idea would be that you have some sort of button in the side bar (when an image was attached at that location) and if you hover over it you see the image you attached. This image could contain a use-case, a drawing or a print out of a file you read in as example, ... If we think further you could attach paragraphs of the functional/technical documentation that are relevant for this piece of code. (but that might be overdoing it too) Just thinking out loud, but I feel the plain text comment is not sufficient ;-) What do you think?
V.
(MQOTD rules and previous solutions)There is already an extension that does that (and a bit more...) Look for MarkdownComments in the tools/Entensions and update menu.
-
85 million years ago, we had a simple submission check tool. The rules where that every file had a comment header with mod history and every public method had one too; this is all pre XML clever type doc/comments. If they were not there, or unchanged, the change could not be submitted. Simple yet effective.
veni bibi saltavi
The tool you describe can ensure that a comment exists; it can't ensure that the comment is current. I suppose that a slightly more sophisticated tool could ensure that comments are modified along with functions, but that is not always necessary (e.g. fixing a bug would not necessarily change the description of a function). Until this problem is solved, any fancy tools that e.g. link a function to the requirement that was responsible for it are worse than useless.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill