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

                            P Offline
                            P Offline
                            Paul Sanders the other one
                            wrote on last edited by
                            #21

                            #pragma message

                            Paul Sanders http://www.alpinesoft.co.uk

                            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.

                              StarNamer workS Offline
                              StarNamer workS Offline
                              StarNamer work
                              wrote on last edited by
                              #22

                              Visual Studio has a Task List view which brings them all together which I think is better than having a separate file which may or may not get updated when then 'TODO' is done.

                              1 Reply Last reply
                              0
                              • C Chris Maunder

                                I do that all the time. :doh:

                                cheers Chris Maunder

                                O Offline
                                O Offline
                                obermd
                                wrote on last edited by
                                #23

                                Chris Maunder wrote:

                                I TOdo that all the time. :doh:

                                FIFY

                                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