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. // TODO: fix

// TODO: fix

Scheduled Pinned Locked Moved The Lounge
helpquestion
23 Posts 16 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.
  • J Offline
    J Offline
    Jacquers
    wrote on last edited by
    #1

    Don't you just love it when you leave yourself a note like this in the code, but without an explanation of what's wrong / needs to be fixed? Especially if it's not something obvious :doh:

    Greg UtasG Mike HankeyM J A S 10 Replies Last reply
    0
    • J Jacquers

      Don't you just love it when you leave yourself a note like this in the code, but without an explanation of what's wrong / needs to be fixed? Especially if it's not something obvious :doh:

      Greg UtasG Offline
      Greg UtasG Offline
      Greg Utas
      wrote on last edited by
      #2

      Even worse: I've actually made some notes about the problem, but they still don't help!

      Robust Services Core | Software Techniques for Lemmings | Articles
      The fox knows many things, but the hedgehog knows one big thing.

      <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
      <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

      C 1 Reply Last reply
      0
      • J Jacquers

        Don't you just love it when you leave yourself a note like this in the code, but without an explanation of what's wrong / needs to be fixed? Especially if it's not something obvious :doh:

        Mike HankeyM Offline
        Mike HankeyM Offline
        Mike Hankey
        wrote on last edited by
        #3

        Sometimes in my code I'll put // Finish and if I don't do it within a short time and go back I sometimes wonder what it was I was supposed to finish. Especially when I did finish and didn't remove the comment.

        The less you need, the more you have. Even a blind squirrel gets a nut...occasionally. JaxCoder.com

        1 Reply Last reply
        0
        • J Jacquers

          Don't you just love it when you leave yourself a note like this in the code, but without an explanation of what's wrong / needs to be fixed? Especially if it's not something obvious :doh:

          J Offline
          J Offline
          Jorgen Andersson
          wrote on last edited by
          #4

          Or //Hack: Needs refactoring And when you go back to fix it, it looks fine. :doh:

          Wrong is evil and must be defeated. - Jeff Ello

          1 Reply Last reply
          0
          • J Jacquers

            Don't you just love it when you leave yourself a note like this in the code, but without an explanation of what's wrong / needs to be fixed? Especially if it's not something obvious :doh:

            A Offline
            A Offline
            Amarnath S
            wrote on last edited by
            #5

            Or just // TODO

            1 Reply Last reply
            0
            • J Jacquers

              Don't you just love it when you leave yourself a note like this in the code, but without an explanation of what's wrong / needs to be fixed? Especially if it's not something obvious :doh:

              S Offline
              S Offline
              snorkie
              wrote on last edited by
              #6

              TODO is the ultimate tool of the social procrastinator. Its me telling others that I"ll never come back to this. Lately, I've been an anti-social procrastinator not even bothering with the TODO because its work to even add it :laugh:

              Hogan

              1 Reply Last reply
              0
              • J Jacquers

                Don't you just love it when you leave yourself a note like this in the code, but without an explanation of what's wrong / needs to be fixed? Especially if it's not something obvious :doh:

                M Offline
                M Offline
                Maximilien
                wrote on last edited by
                #7

                just looked at my code, there's about 50 TODO, half of them are auto generated MFC code, half are probably at least 10 years old each. Too lazy to create a ticket and branch and Pull-Request to take them out.

                CI/CD = Continuous Impediment/Continuous Despair

                E 1 Reply Last reply
                0
                • J Jacquers

                  Don't you just love it when you leave yourself a note like this in the code, but without an explanation of what's wrong / needs to be fixed? Especially if it's not something obvious :doh:

                  S Offline
                  S Offline
                  Slacker007
                  wrote on last edited by
                  #8

                  I am usually a lot harder on myself with the fix it todo comments. Lots of f words and referring to myself as a mentally challenged crayon eater. :laugh: The icing on the cake is that I forget to remove some of these wonderful comments prior to code reviews. the other devs get a kick out of it. :doh:

                  1 Reply Last reply
                  0
                  • J Jacquers

                    Don't you just love it when you leave yourself a note like this in the code, but without an explanation of what's wrong / needs to be fixed? Especially if it's not something obvious :doh:

                    T Offline
                    T Offline
                    trønderen
                    wrote on last edited by
                    #9

                    I never liked 'TODO' comments in the code. I rather keep a plain text file in the project directory listing all the things that should be remembered and considered. Then I can be sure that I don't overlook a fix because I didn't open that source file. I can more easily sort out a group of related fixes and do them in one cleanup. And I can put in a reminder about planned/desired functionality that doesn't yet have any definite place in the source code of already implemented functionality. In my text files, the entries are not necessarily limited to strict coding actions. They may e.g. state the defined order of method parameters for this project, or identify the standards to be followed. Sometimes it grows to require a splitting into sections. Some of that information later goes into the system documentation.

                    Greg UtasG J S D StarNamer workS 5 Replies Last reply
                    0
                    • T trønderen

                      I never liked 'TODO' comments in the code. I rather keep a plain text file in the project directory listing all the things that should be remembered and considered. Then I can be sure that I don't overlook a fix because I didn't open that source file. I can more easily sort out a group of related fixes and do them in one cleanup. And I can put in a reminder about planned/desired functionality that doesn't yet have any definite place in the source code of already implemented functionality. In my text files, the entries are not necessarily limited to strict coding actions. They may e.g. state the defined order of method parameters for this project, or identify the standards to be followed. Sometimes it grows to require a splitting into sections. Some of that information later goes into the system documentation.

                      Greg UtasG Offline
                      Greg UtasG Offline
                      Greg Utas
                      wrote on last edited by
                      #10

                      That's also how I keep track of enhancements. But a non-trivial bug calls for a comment in the code to notify others who may be looking at it.

                      Robust Services Core | Software Techniques for Lemmings | Articles
                      The fox knows many things, but the hedgehog knows one big thing.

                      <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
                      <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

                      T J 2 Replies Last reply
                      0
                      • Greg UtasG Greg Utas

                        That's also how I keep track of enhancements. But a non-trivial bug calls for a comment in the code to notify others who may be looking at it.

                        Robust Services Core | Software Techniques for Lemmings | Articles
                        The fox knows many things, but the hedgehog knows one big thing.

                        T Offline
                        T Offline
                        trønderen
                        wrote on last edited by
                        #11

                        Good point.

                        1 Reply Last reply
                        0
                        • T trønderen

                          I never liked 'TODO' comments in the code. I rather keep a plain text file in the project directory listing all the things that should be remembered and considered. Then I can be sure that I don't overlook a fix because I didn't open that source file. I can more easily sort out a group of related fixes and do them in one cleanup. And I can put in a reminder about planned/desired functionality that doesn't yet have any definite place in the source code of already implemented functionality. In my text files, the entries are not necessarily limited to strict coding actions. They may e.g. state the defined order of method parameters for this project, or identify the standards to be followed. Sometimes it grows to require a splitting into sections. Some of that information later goes into the system documentation.

                          J Offline
                          J Offline
                          Jacquers
                          wrote on last edited by
                          #12

                          [Use the Task List - Visual Studio (Windows) | Microsoft Docs](https://docs.microsoft.com/en-us/visualstudio/ide/using-the-task-list?view=vs-2022)

                          D 1 Reply Last reply
                          0
                          • Greg UtasG Greg Utas

                            That's also how I keep track of enhancements. But a non-trivial bug calls for a comment in the code to notify others who may be looking at it.

                            Robust Services Core | Software Techniques for Lemmings | Articles
                            The fox knows many things, but the hedgehog knows one big thing.

                            J Offline
                            J Offline
                            Jacquers
                            wrote on last edited by
                            #13

                            [Use the Task List - Visual Studio (Windows) | Microsoft Docs](https://docs.microsoft.com/en-us/visualstudio/ide/using-the-task-list?view=vs-2022)

                            Greg UtasG 1 Reply Last reply
                            0
                            • J Jacquers

                              [Use the Task List - Visual Studio (Windows) | Microsoft Docs](https://docs.microsoft.com/en-us/visualstudio/ide/using-the-task-list?view=vs-2022)

                              Greg UtasG Offline
                              Greg UtasG Offline
                              Greg Utas
                              wrote on last edited by
                              #14

                              Thanks, I'll look into this. What I currently do is tag some comments with special characters:

                              //* Something to be implemented before commit.
                              //x Something to delete before commit.
                              //c Enhancement to code analysis software.

                              And so on.

                              Robust Services Core | Software Techniques for Lemmings | Articles
                              The fox knows many things, but the hedgehog knows one big thing.

                              <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
                              <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

                              1 Reply Last reply
                              0
                              • T trønderen

                                I never liked 'TODO' comments in the code. I rather keep a plain text file in the project directory listing all the things that should be remembered and considered. Then I can be sure that I don't overlook a fix because I didn't open that source file. I can more easily sort out a group of related fixes and do them in one cleanup. And I can put in a reminder about planned/desired functionality that doesn't yet have any definite place in the source code of already implemented functionality. In my text files, the entries are not necessarily limited to strict coding actions. They may e.g. state the defined order of method parameters for this project, or identify the standards to be followed. Sometimes it grows to require a splitting into sections. Some of that information later goes into the system documentation.

                                S Offline
                                S Offline
                                Slacker007
                                wrote on last edited by
                                #15

                                you can search for all TODO's in a solution. that's what I do. it works perfectly for me. I do feel that TODOs can get out of hand a lot of times, and so, I try to use them sparingly. There is also a window that is for using and managing TODOs, etc.

                                1 Reply Last reply
                                0
                                • Greg UtasG Greg Utas

                                  Even worse: I've actually made some notes about the problem, but they still don't help!

                                  Robust Services Core | Software Techniques for Lemmings | Articles
                                  The fox knows many things, but the hedgehog knows one big thing.

                                  C Offline
                                  C Offline
                                  Chris Maunder
                                  wrote on last edited by
                                  #16

                                  I do that all the time. :doh:

                                  cheers Chris Maunder

                                  O 1 Reply Last reply
                                  0
                                  • M Maximilien

                                    just looked at my code, there's about 50 TODO, half of them are auto generated MFC code, half are probably at least 10 years old each. Too lazy to create a ticket and branch and Pull-Request to take them out.

                                    CI/CD = Continuous Impediment/Continuous Despair

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

                                    And then you need the testing proof for the change. I love to review user acceptance tests for “delete unreferenced methods” commits.

                                    1 Reply Last reply
                                    0
                                    • T trønderen

                                      I never liked 'TODO' comments in the code. I rather keep a plain text file in the project directory listing all the things that should be remembered and considered. Then I can be sure that I don't overlook a fix because I didn't open that source file. I can more easily sort out a group of related fixes and do them in one cleanup. And I can put in a reminder about planned/desired functionality that doesn't yet have any definite place in the source code of already implemented functionality. In my text files, the entries are not necessarily limited to strict coding actions. They may e.g. state the defined order of method parameters for this project, or identify the standards to be followed. Sometimes it grows to require a splitting into sections. Some of that information later goes into the system documentation.

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

                                      I do the same, luckily I developed this way of working very early in my career so now I am quite efficient with it.

                                      GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

                                      1 Reply Last reply
                                      0
                                      • J Jacquers

                                        [Use the Task List - Visual Studio (Windows) | Microsoft Docs](https://docs.microsoft.com/en-us/visualstudio/ide/using-the-task-list?view=vs-2022)

                                        D Offline
                                        D Offline
                                        den2k88
                                        wrote on last edited by
                                        #19

                                        If you use VS.

                                        GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

                                        1 Reply Last reply
                                        0
                                        • J Jacquers

                                          Don't you just love it when you leave yourself a note like this in the code, but without an explanation of what's wrong / needs to be fixed? Especially if it's not something obvious :doh:

                                          C Offline
                                          C Offline
                                          Cpichols
                                          wrote on last edited by
                                          #20

                                          The very last thing I do before adding to a commit is to git diff, going line by line getting rid of spare spaces and comments like these, as well as taking notes on lines changed. I do, however, find old notes from past coders very like this, but with dates and initials added. Some are 5 years old - might not be important to fix that, eh? :wtf:

                                          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