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;

    L Offline
    L Offline
    Luc Pattyn
    wrote on last edited by
    #4

    that is not worthless at all, I tend to put some END statement in all my files, be it code sources or text documents. In documents, I usually put "End Of Document" or "EOD"; in source files "// EOF" It tells you you've got all of it, nothing got lost while copying, transmitting, or whatever it is these files have to go through. I must admit I don't do it for C# files as they have a namespace with curly brackets, so you can't have a partial file and not notice, at least as long as you only put one namespace statement in a file. EOM

    Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

    Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

    G 1 Reply Last reply
    0
    • D Dalek Dave

      You have just performed floccinaucinihilipilification!

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

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

      Dalek Dave wrote:

      floccinaucinihilipilification

      If that's the answer, what was the CCC

      1 Reply Last reply
      0
      • D Dalek Dave

        You have just performed floccinaucinihilipilification!

        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

        G Offline
        G Offline
        Gary Wheeler
        wrote on last edited by
        #6

        Will my palms grow hair because of it?

        Software Zen: delete this;

        1 Reply Last reply
        0
        • L Luc Pattyn

          that is not worthless at all, I tend to put some END statement in all my files, be it code sources or text documents. In documents, I usually put "End Of Document" or "EOD"; in source files "// EOF" It tells you you've got all of it, nothing got lost while copying, transmitting, or whatever it is these files have to go through. I must admit I don't do it for C# files as they have a namespace with curly brackets, so you can't have a partial file and not notice, at least as long as you only put one namespace statement in a file. EOM

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

          G Offline
          G Offline
          Gary Wheeler
          wrote on last edited by
          #7

          That may have been a good idea in the punch card era, but I haven't worried about that sort of thing in almost 30 years. Besides, given the programmer involved, I know that wasn't the intent. I'm not sure what it was, but that wasn't it.

          Software Zen: delete this;

          L 1 Reply Last reply
          0
          • G Gary Wheeler

            That may have been a good idea in the punch card era, but I haven't worried about that sort of thing in almost 30 years. Besides, given the programmer involved, I know that wasn't the intent. I'm not sure what it was, but that wasn't it.

            Software Zen: delete this;

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

            Perverseness?

            G 1 Reply Last reply
            0
            • G Gary Wheeler

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

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

              Software Zen: delete this;

              D Offline
              D Offline
              Dave Parker
              wrote on last edited by
              #9

              hmm, I've actually used "delete this" before, in C++, is that bad? ;P

              G 1 Reply Last reply
              0
              • D Dave Parker

                hmm, I've actually used "delete this" before, in C++, is that bad? ;P

                G Offline
                G Offline
                Gary Wheeler
                wrote on last edited by
                #10

                Not if you know what you're doing.

                Software Zen: delete this;

                1 Reply Last reply
                0
                • L Lost User

                  Perverseness?

                  G Offline
                  G Offline
                  Gary Wheeler
                  wrote on last edited by
                  #11

                  That ascribes a reasoned motive for the comment.

                  Software Zen: delete this;

                  1 Reply Last reply
                  0
                  • G Gary Wheeler

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

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

                    Software Zen: delete this;

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

                    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.

                    G P OriginalGriffO L R 6 Replies 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.

                      G Offline
                      G Offline
                      Gary Wheeler
                      wrote on last edited by
                      #13

                      At least those comments describe what the code is doing.

                      Software Zen: delete this;

                      L 1 Reply Last reply
                      0
                      • G Gary Wheeler

                        At least those comments describe what the code is doing.

                        Software Zen: delete this;

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

                        Are you saying that the code isn't ending at the ////////////////END/////////////// ?

                        G 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.

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

                          Super Lloyd wrote:

                          // enumerating i from 0 to 10 (Lloyd 29 07 2010) for (int i = 0; i < 10; i++)

                          Your comments are not accurate. You are enumerating from 0 to 9!

                          Pete

                          S S 2 Replies Last reply
                          0
                          • L Lost User

                            Are you saying that the code isn't ending at the ////////////////END/////////////// ?

                            G Offline
                            G Offline
                            Gary Wheeler
                            wrote on last edited by
                            #16

                            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 1 Reply Last reply
                            0
                            • P Peter Mulholland

                              Super Lloyd wrote:

                              // enumerating i from 0 to 10 (Lloyd 29 07 2010) for (int i = 0; i < 10; i++)

                              Your comments are not accurate. You are enumerating from 0 to 9!

                              Pete

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

                              Oops! :-O

                              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.

                              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.

                                OriginalGriffO Offline
                                OriginalGriffO Offline
                                OriginalGriff
                                wrote on last edited by
                                #18

                                Super Lloyd wrote:

                                // TODO should do something more useful later (Lloyd 29 07 2010)

                                That one is actually useful - it triggers Visual Studio to add it to the Tasks List. Visual Studio Tasks List[^]

                                Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.

                                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                D 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.

                                  L Offline
                                  L Offline
                                  LloydA111
                                  wrote on last edited by
                                  #19

                                  I should really stop writing such pointless comments :-O


                                  ▬▬▬▬▬▬▬▬▬▬▬▬

                                  S 1 Reply Last reply
                                  0
                                  • D Dalek Dave

                                    You have just performed floccinaucinihilipilification!

                                    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                                    C Offline
                                    C Offline
                                    cptKoala
                                    wrote on last edited by
                                    #20

                                    somehow your post has no value to this thread :-\

                                    1 Reply Last reply
                                    0
                                    • OriginalGriffO OriginalGriff

                                      Super Lloyd wrote:

                                      // TODO should do something more useful later (Lloyd 29 07 2010)

                                      That one is actually useful - it triggers Visual Studio to add it to the Tasks List. Visual Studio Tasks List[^]

                                      Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.

                                      D Offline
                                      D Offline
                                      Dan Neely
                                      wrote on last edited by
                                      #21

                                      UNless it's changed in 2k10 I don't think the task list is particularly useful outside of VB because of non-overridable language specific behavior. In VB it shows all the TODOs in the solution. In C# it shows all the TODOs in open files. In C++ it shows all the TODOs in the file being edited. The latter two are near useless in larger projects. Instead I litter my .cs files with #warning TODO blah... lines.

                                      3x12=36 2x12=24 1x12=12 0x12=18

                                      1 Reply Last reply
                                      0
                                      • G Gary Wheeler

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

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

                                        Software Zen: delete this;

                                        S Offline
                                        S Offline
                                        Sandesh M Patil
                                        wrote on last edited by
                                        #22

                                        I think it is ok

                                        1 Reply Last reply
                                        0
                                        • G Gary Wheeler

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

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

                                          Software Zen: delete this;

                                          M Offline
                                          M Offline
                                          Mark_Wallace
                                          wrote on last edited by
                                          #23

                                          If you wait five seconds, the credits will scroll past too fast to read.

                                          I wanna be a eunuchs developer! Pass me a bread knife!

                                          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