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. Other Discussions
  3. The Weird and The Wonderful
  4. Comedy code comment misdirection

Comedy code comment misdirection

Scheduled Pinned Locked Moved The Weird and The Wonderful
10 Posts 7 Posters 1 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.
  • D Offline
    D Offline
    Duncan Edwards Jones
    wrote on last edited by
    #1

    ' Mark the Command as a SPROC
    cmd.CommandType = CommandType.Text

    ...no comment... :doh:

    Richard DeemingR P L Sander RosselS 4 Replies Last reply
    0
    • D Duncan Edwards Jones

      ' Mark the Command as a SPROC
      cmd.CommandType = CommandType.Text

      ...no comment... :doh:

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      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

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      • D Duncan Edwards Jones

        ' Mark the Command as a SPROC
        cmd.CommandType = CommandType.Text

        ...no comment... :doh:

        P Offline
        P Offline
        phil o
        wrote on last edited by
        #3

        This one is epic :doh:

        while (true) {
        continue;
        }

        K 1 Reply Last reply
        0
        • D Duncan Edwards Jones

          ' Mark the Command as a SPROC
          cmd.CommandType = CommandType.Text

          ...no comment... :doh:

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          internal static class CommandType
          {
          internal static System.Data.CommandType Text = System.Data.CommandType.StoredProcedure;
          }

          simple fix :cool:

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

          D 1 Reply Last reply
          0
          • L Lost User

            internal static class CommandType
            {
            internal static System.Data.CommandType Text = System.Data.CommandType.StoredProcedure;
            }

            simple fix :cool:

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

            D Offline
            D Offline
            Duncan Edwards Jones
            wrote on last edited by
            #5

            That is evil!

            1 Reply Last reply
            0
            • P phil o

              This one is epic :doh:

              while (true) {
              continue;
              }

              K Online
              K Online
              kmoorevs
              wrote on last edited by
              #6

              What's wrong with that? I ran a test on that code an hour ago...still waiting on it to finish though! :laugh:

              "Go forth into the source" - Neal Morse

              1 Reply Last reply
              0
              • D Duncan Edwards Jones

                ' Mark the Command as a SPROC
                cmd.CommandType = CommandType.Text

                ...no comment... :doh:

                Sander RosselS Offline
                Sander RosselS Offline
                Sander Rossel
                wrote on last edited by
                #7

                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 String

                That 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

                L P 2 Replies Last reply
                0
                • Sander RosselS Sander Rossel

                  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 String

                  That 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

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  "Save the customer" saves a product..? Apply kerosine liberally and inject a spark of hope :)

                  Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                  Sander RosselS 1 Reply Last reply
                  0
                  • L Lost User

                    "Save the customer" saves a product..? Apply kerosine liberally and inject a spark of hope :)

                    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                    Sander RosselS Offline
                    Sander RosselS Offline
                    Sander Rossel
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    • Sander RosselS Sander Rossel

                      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 String

                      That 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

                      P Offline
                      P Offline
                      Power Puff Boy
                      wrote on last edited by
                      #10

                      Think bigger:

                      whales.Save();

                      If you're having a bad day, stare at your feet and smile.

                      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