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