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.
  • 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
                              • G Gary Wheeler

                                As I said[^].

                                Software Zen: delete this;

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

                                chill out man, may be you did not notice the joke icon. :-O

                                Yusuf May I help you?

                                1 Reply Last reply
                                0
                                • G Gary Wheeler

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

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

                                  Software Zen: delete this;

                                  A Offline
                                  A Offline
                                  Abhinav S
                                  wrote on last edited by
                                  #31

                                  I came across one a few days ago - ////////This is a comment//////////// :doh:

                                  The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick - Silverlight *.XCP files. Visit the Hindi forum here.

                                  1 Reply Last reply
                                  0
                                  • OriginalGriffO OriginalGriff

                                    At least it's accurate.

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

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

                                    And thats what is expected on Weekend!

                                    Ravi S Coding is my birth-right and bugs are part of feature my code has! _________________________________________ Me  Facebook  Twitter

                                    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
                                      Tomz_KV
                                      wrote on last edited by
                                      #33

                                      Sometimes, when a "{" or "}" is missing, this comment can help investigate backward.

                                      TOMZ_KV

                                      1 Reply Last reply
                                      0
                                      • G Gary Wheeler

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

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

                                        Software Zen: delete this;

                                        J Offline
                                        J Offline
                                        jerryr4
                                        wrote on last edited by
                                        #34

                                        Not only worthless comments, but also funny, seen in the assembly code of DG AOS/VS (can anyone remember it?) In the code executed when one shut down the system: < some code > HALT HALT ;JUST IN CASE The HALT instruction stopped the CPU completely In the panic code - executed when there was an error which the OS couldn't handle: < some code > ; I don't know how you got here, but you're in deep s**t Jerry

                                        G 1 Reply Last reply
                                        0
                                        • J jerryr4

                                          Not only worthless comments, but also funny, seen in the assembly code of DG AOS/VS (can anyone remember it?) In the code executed when one shut down the system: < some code > HALT HALT ;JUST IN CASE The HALT instruction stopped the CPU completely In the panic code - executed when there was an error which the OS couldn't handle: < some code > ; I don't know how you got here, but you're in deep s**t Jerry

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

                                          If DG == Data General, I'm not surprised. I used a DG 'Nova 4' system one time, a very long time ago. Regarding the doubled HALT instruction, that's also not too surprising. Depending upon the interrupt architecture and when they increment the program counter, I could see a glitch between decoding the HALT instruction and its execution causing the code to continue executing.

                                          Software Zen: delete this;

                                          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