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. What is your best code comment this year?

What is your best code comment this year?

Scheduled Pinned Locked Moved The Lounge
questiondatabase
44 Posts 35 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.
  • B Brady Kelly

    Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.

    C Offline
    C Offline
    CPallini
    wrote on last edited by
    #6

    // to do: handle error

    :)

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
    [My articles]

    P J 2 Replies Last reply
    0
    • C CPallini

      // to do: handle error

      :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      P Offline
      P Offline
      peterchen
      wrote on last edited by
      #7

      That one is so common, IDE's should come with a preconfigured keyboard shortcut for that!

      Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel]
      | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server

      C 1 Reply Last reply
      0
      • P peterchen

        That one is so common, IDE's should come with a preconfigured keyboard shortcut for that!

        Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel]
        | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #8

        A real IDE should handle itself the error... BTW real programmers don't use IDEs (they use ideas, maybe). :-D

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        0 1 Reply Last reply
        0
        • C CPallini

          A real IDE should handle itself the error... BTW real programmers don't use IDEs (they use ideas, maybe). :-D

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          0 Offline
          0 Offline
          0x3c0
          wrote on last edited by
          #9

          CPallini wrote:

          real programmers don't use IDEs

          Pfft. You're not a real programmer until you've built your own compiler.

          OSDev :)

          C R F 3 Replies Last reply
          0
          • 0 0x3c0

            CPallini wrote:

            real programmers don't use IDEs

            Pfft. You're not a real programmer until you've built your own compiler.

            OSDev :)

            C Offline
            C Offline
            CPallini
            wrote on last edited by
            #10

            Real programmers don't need a compiler.

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            0 P 2 Replies Last reply
            0
            • C CPallini

              Real programmers don't need a compiler.

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              0 Offline
              0 Offline
              0x3c0
              wrote on last edited by
              #11

              Real programmers don't need to program. They just manipulate the EM field generated by their brain so as to cause electrical anomalies which translate to hexadecimal instructions and machine code inside the processor.

              OSDev :)

              K J F F T 7 Replies Last reply
              0
              • C CPallini

                // to do: handle error

                :)

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                [My articles]

                J Offline
                J Offline
                Jorgen Sigvardsson
                wrote on last edited by
                #12

                I tend to comment those like this in C++: assert(!"TODO: Handle error!"); or System.Diagnostics.Debug.Assert(false, "TODO: Handle error!"); in C#.

                -- Kein Mitleid Für Die Mehrheit

                1 Reply Last reply
                0
                • 0 0x3c0

                  CPallini wrote:

                  real programmers don't use IDEs

                  Pfft. You're not a real programmer until you've built your own compiler.

                  OSDev :)

                  R Offline
                  R Offline
                  Roger Wright
                  wrote on last edited by
                  #13

                  Hmph.. I did that 34 years ago, and I still can't program worth a damn. :doh:

                  "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                  1 Reply Last reply
                  0
                  • B Brady Kelly

                    Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.

                    R Offline
                    R Offline
                    Roger Wright
                    wrote on last edited by
                    #14

                    "Why the phuque doesn't this thing work???? I copied it from MSDN!!!! Grrrrr!!!!" I'm going to program that into a key macro, just to save some time this year.

                    "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                    1 Reply Last reply
                    0
                    • 0 0x3c0

                      Real programmers don't need to program. They just manipulate the EM field generated by their brain so as to cause electrical anomalies which translate to hexadecimal instructions and machine code inside the processor.

                      OSDev :)

                      K Offline
                      K Offline
                      Kerrash
                      wrote on last edited by
                      #15

                      I thought real programmers used butterflies? :laugh:

                      1 Reply Last reply
                      0
                      • 0 0x3c0

                        Real programmers don't need to program. They just manipulate the EM field generated by their brain so as to cause electrical anomalies which translate to hexadecimal instructions and machine code inside the processor.

                        OSDev :)

                        J Offline
                        J Offline
                        John Oxley
                        wrote on last edited by
                        #16

                        You can do that with Emacs you know...

                        1 Reply Last reply
                        0
                        • B Brady Kelly

                          Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.

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

                          one in signature :laugh:

                          Ravie Busie Coding is my birth-right and bugs are part of feature my code has!

                          1 Reply Last reply
                          0
                          • B Brady Kelly

                            Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.

                            D Offline
                            D Offline
                            dazfuller
                            wrote on last edited by
                            #18

                            // If we got here then we are really in trouble That and the numerous "Doing this to work around a Microsoft Bug" comments littered through the code

                            1 Reply Last reply
                            0
                            • B Brady Kelly

                              Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.

                              N Offline
                              N Offline
                              novice__geek
                              wrote on last edited by
                              #19

                              //Write comment for the method below I usually feel very lazy to write comments (I know its a bad practice)... I wrote the above once for a C# application I was writing.

                              1 Reply Last reply
                              0
                              • B Brady Kelly

                                Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.

                                D Offline
                                D Offline
                                descenterace
                                wrote on last edited by
                                #20

                                In the middle of a 1700-line JS file: // <magic type='black'> [... 150-line Javascript function, returning a factory function to create and track state for a UI widget which, strictly speaking, should not work ...] // </magic> Some time ago, that same file started with a comment along the lines of: // abandon hope all ye who enter here I think I may have to restore that comment.

                                F 1 Reply Last reply
                                0
                                • B Brady Kelly

                                  Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.

                                  F Offline
                                  F Offline
                                  franky1987
                                  wrote on last edited by
                                  #21

                                  // I don't know what this method does ... but it works !!

                                  1 Reply Last reply
                                  0
                                  • B Brady Kelly

                                    Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.

                                    M Offline
                                    M Offline
                                    Member 4593559
                                    wrote on last edited by
                                    #22

                                    Not my comment, but it is one of my all time favourites :

                                    static const double c_PI = 3.14159265358979323846; //mmmmmmm PI

                                    F 1 Reply Last reply
                                    0
                                    • B Brady Kelly

                                      Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.

                                      R Offline
                                      R Offline
                                      RedZombie125
                                      wrote on last edited by
                                      #23

                                      Mine's /*       This is the main file; it does almost nothing except start up       the application and keep the main message loop going. It's pretty       important despite that last sentence. That's why it's labeled       "main" and not something like "coconut" or "unimportant, delete on sight" */ :-O <---- What is this thing? :confused:

                                      1 Reply Last reply
                                      0
                                      • B Brady Kelly

                                        Mine is, "// TODO Still a big f*****g mystery why Category object in KpiAggregateCriteria has null UnitOfMeasure and DisplayFormat." It is in fact because EF doesn't load association sets automatically, unless they are explicitly projected in your query.

                                        W Offline
                                        W Offline
                                        Warren Hales
                                        wrote on last edited by
                                        #24

                                        Found this one around a task list on a web page ... // It's my tasklist and I will cry if I want too ...

                                        1 Reply Last reply
                                        0
                                        • 0 0x3c0

                                          Real programmers don't need to program. They just manipulate the EM field generated by their brain so as to cause electrical anomalies which translate to hexadecimal instructions and machine code inside the processor.

                                          OSDev :)

                                          F Offline
                                          F Offline
                                          Fabio Franco
                                          wrote on last edited by
                                          #25

                                          That would be electric pulses generated by induction produced by variable EM field of the brain.

                                          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