Comedy code comment misdirection
-
' Mark the Command as a SPROC
cmd.CommandType = CommandType.Text...no comment... :doh:
-
' Mark the Command as a SPROC
cmd.CommandType = CommandType.Text...no comment... :doh:
Duncan Edwards Jones wrote:
...no comment...
... would have been preferable.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
' Mark the Command as a SPROC
cmd.CommandType = CommandType.Text...no comment... :doh:
-
' Mark the Command as a SPROC
cmd.CommandType = CommandType.Text...no comment... :doh:
-
That is evil!
-
' Mark the Command as a SPROC
cmd.CommandType = CommandType.Text...no comment... :doh:
That's exactly why I hate comments. I've seen this type of comments A LOT...
' Save the customer
product.Save()' A helper variable
Dim helper As StringThat kind of stuff. And yes, I've seen it in C# too! I've even written a tip about proper commenting, which 99.9% of the time is not commenting X|
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
-
That's exactly why I hate comments. I've seen this type of comments A LOT...
' Save the customer
product.Save()' A helper variable
Dim helper As StringThat kind of stuff. And yes, I've seen it in C# too! I've even written a tip about proper commenting, which 99.9% of the time is not commenting X|
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
-
Eddy Vluggen wrote:
"Save the customer" saves a product..?
And that's nothing yet :laugh:
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
-
That's exactly why I hate comments. I've seen this type of comments A LOT...
' Save the customer
product.Save()' A helper variable
Dim helper As StringThat kind of stuff. And yes, I've seen it in C# too! I've even written a tip about proper commenting, which 99.9% of the time is not commenting X|
Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Regards, Sander
Think bigger:
whales.Save();
If you're having a bad day, stare at your feet and smile.