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

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

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

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

                      Software Zen: delete this;

                      L Offline
                      L Offline
                      Lysander Vibar
                      wrote on last edited by
                      #36

                      // Enter comments here.

                      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
                        Steve Naidamast
                        wrote on last edited by
                        #37

                        We have some changes...

                        Steve Naidamast Black Falcon Software, Inc. blackfalconsoftware@ix.netcom.com

                        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
                          skydvr
                          wrote on last edited by
                          #38

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

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

                            A Offline
                            A Offline
                            agieseke
                            wrote on last edited by
                            #39

                            //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 1 Reply Last reply
                            0
                            • G Gary Wheeler

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

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

                              Software Zen: delete this;

                              E Offline
                              E Offline
                              englebart
                              wrote on last edited by
                              #40

                              Helpful if you intend to print it. Of course, I would expect a ////////BEGIN//////// or //////////Filename.cpp///////////////////// at the top. With the END tag, you will be able to tell if the entire document printed when the secretary delivers your hardcopy. :-D

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