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.
  • 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
                              • L LloydA111

                                I should really stop writing such pointless comments :-O


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

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

                                Hehe, yes you should! :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.

                                1 Reply Last reply
                                0
                                • G Gary Wheeler

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

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

                                  Software Zen: delete this;

                                  P Offline
                                  P Offline
                                  PIEBALDconsult
                                  wrote on last edited by
                                  #25

                                  That makes sense when printing... especially on fan-fold paper. :~

                                  G 1 Reply Last reply
                                  0
                                  • P PIEBALDconsult

                                    That makes sense when printing... especially on fan-fold paper. :~

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

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

                                    Software Zen: delete this;

                                    P E 2 Replies 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;

                                      P Offline
                                      P Offline
                                      PIEBALDconsult
                                      wrote on last edited by
                                      #27

                                      1992-08-02 (or thereabouts), but I still print my code occasionally. Nowadays I use Word and I have a header that indicates the filename and pages.

                                      1 Reply Last reply
                                      0
                                      • G Gary Wheeler

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

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

                                        Software Zen: delete this;

                                        Y Offline
                                        Y Offline
                                        Yusuf
                                        wrote on last edited by
                                        #28

                                        hey, that was not suppose to be viewable. That is how VS knows when it reaches EOF.

                                        Yusuf May I help you?

                                        G 1 Reply Last reply
                                        0
                                        • Y Yusuf

                                          hey, that was not suppose to be viewable. That is how VS knows when it reaches EOF.

                                          Yusuf May I help you?

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

                                          As I said[^].

                                          Software Zen: delete this;

                                          Y 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