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. The Lounge
  3. The most worthless comment ever

The most worthless comment ever

Scheduled Pinned Locked Moved The Lounge
52 Posts 29 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 Gary Wheeler

    ///////////////////////////////End/////////////////////////////

    Found at the end of a source file :sigh:.

    Software Zen: delete this;

    E Offline
    E Offline
    Elroy Dsilva
    wrote on last edited by
    #41

    ----some code here---- // 19-03-2009 ----some code here----

    Judge a man by his questions rather than his answers. - Voltaire

    Blogial

    1 Reply Last reply
    0
    • S Super Lloyd

      how about?

      // enumerating i from 0 to 10 (Lloyd 29 07 2010)
      for (int i = 0; i < 10; i++)
      {
      // printing i to the console (Lloyd 29 07 2010)
      Console.WriteLine(i);
      // TODO should do something more useful later (Lloyd 29 07 2010)
      }

      A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

      R Offline
      R Offline
      richard_k
      wrote on last edited by
      #42

      A fantastic example. Comments are for programmers, and presumably the programmers know how to form console output and for loops, making the comments fairly pointless. This code breaks two good coding rules.. 1) comments are about WHY, not WHAT.. WHY are we enumerating 100 times? 2) use of really cryptic variable names, such as 'i'. Yechh.

      S 1 Reply Last reply
      0
      • A agieseke

        //IOTEMCO This acronym was the brain child of a consultant working on our project. Its meaning: Intuitivly Obvious To Even the Most Casual Observer. This was somehow helpful in his mind.

        T Offline
        T Offline
        Tim Yen
        wrote on last edited by
        #43

        Please publish this idiots name so everyone can make sure they never hire this turkey.

        1 Reply Last reply
        0
        • R richard_k

          A fantastic example. Comments are for programmers, and presumably the programmers know how to form console output and for loops, making the comments fairly pointless. This code breaks two good coding rules.. 1) comments are about WHY, not WHAT.. WHY are we enumerating 100 times? 2) use of really cryptic variable names, such as 'i'. Yechh.

          S Offline
          S Offline
          Super Lloyd
          wrote on last edited by
          #44

          Glad that someone was able to get the depth of worthlessness of my comments! :laugh:

          A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

          R 1 Reply Last reply
          0
          • S Super Lloyd

            Glad that someone was able to get the depth of worthlessness of my comments! :laugh:

            A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

            R Offline
            R Offline
            richard_k
            wrote on last edited by
            #45

            Heh heh.. glad you have a sense of humor. I have none of the code I wrote 35 years ago.. otherwise I'm sure I could display similar.

            1 Reply Last reply
            0
            • G Gary Wheeler

              ///////////////////////////////End/////////////////////////////

              Found at the end of a source file :sigh:.

              Software Zen: delete this;

              T Offline
              T Offline
              ThornPhlaunting
              wrote on last edited by
              #46

              // no comment

              Thorn

              1 Reply Last reply
              0
              • S Super Lloyd

                how about?

                // enumerating i from 0 to 10 (Lloyd 29 07 2010)
                for (int i = 0; i < 10; i++)
                {
                // printing i to the console (Lloyd 29 07 2010)
                Console.WriteLine(i);
                // TODO should do something more useful later (Lloyd 29 07 2010)
                }

                A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                A Offline
                A Offline
                Al_Brown
                wrote on last edited by
                #47

                Surely it should be "enumerating i from 0 to 9"?

                S 1 Reply Last reply
                0
                • A Al_Brown

                  Surely it should be "enumerating i from 0 to 9"?

                  S Offline
                  S Offline
                  Super Lloyd
                  wrote on last edited by
                  #48

                  I'm not sure whether I should confess an inattention mistake, or boast a brilliant example of terrible comment!?

                  A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                  A 1 Reply Last reply
                  0
                  • S Super Lloyd

                    I'm not sure whether I should confess an inattention mistake, or boast a brilliant example of terrible comment!?

                    A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                    A Offline
                    A Offline
                    Al_Brown
                    wrote on last edited by
                    #49

                    I'd go for both :thumbsup:

                    1 Reply Last reply
                    0
                    • S skydvr

                      If he only enumerated from 0 to 9, the loop would never exit...

                      P Offline
                      P Offline
                      Peter Mulholland
                      wrote on last edited by
                      #50

                      Enumerate[^] to mention separately as if in counting; name one by one; specify, as in a list He's not really looking to count or name '10' so he's enumerating from 0-9

                      Pete

                      1 Reply Last reply
                      0
                      • G Gary Wheeler

                        I personally don't find it necessary to worry that my editor is going to somehow 'fall off the end' of a file, and mark that end with a comment. That's like wearing a seat belt in your desk chair, because you're worried that the Earth's gravity might fail.

                        Software Zen: delete this;

                        E Offline
                        E Offline
                        Earl Truss
                        wrote on last edited by
                        #51

                        Kinda like wearing mountain boots in the Midwest. Really! i = i + 1 ' add one to i

                        1 Reply Last reply
                        0
                        • G Gary Wheeler

                          When was the last time you loaded a box of green-bar in a line printer?

                          Software Zen: delete this;

                          E Offline
                          E Offline
                          Earl Truss
                          wrote on last edited by
                          #52

                          Loading green-bar into a line printer ... about 15 years ago. Using fan-fold paper - about 5 years ago. We still used fan-fold multi-part government forms and a nine-pin printer that recently.

                          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