News for hackers. Stuff that matters.
Re:TODOs Aren't for Doing by 1980phipsi on Tuesday July 22, 2025 @12:19PM (#44649248)
I think the key point is that if you put a TODO comment in the code, it should be resolved before merging. If it's important enough to leave in there, it should be an issue. I only use them as something to grep for and so that I don't lose my train of that as in "oh I need to fix that but I'm working on something else at the moment, write the TODO, finish what I'm working on, then go back to the TODO".
Re:TODOs Aren't for Doing by hinkley on Tuesday July 22, 2025 @12:54PM (#44649906)
If the todo is code you’re working on, yes.

If it’s a WTF about code that is next to the code you worked on, no. Boost the WTF ratio of code that deserves it.

Re:TODOs Aren't for Doing by johnfn on Wednesday July 23, 2025 @12:49AM (#44655798)
What if you're working on something, and you see some code that should be marked with TODO, entirely unrelated to your code? I think it's unrealistic to expect to be able to fix every issue you see.
Re:TODOs Aren't for Doing by moi2388 on Wednesday July 23, 2025 @02:06AM (#44656123)
Then I create a ticket and we refine it to see if it indeed needs to be addressed
Re:TODOs Aren't for Doing by RandallBrown on Wednesday July 23, 2025 @01:22AM (#44655945)
This is how I use TODO as well. If it shows up in a pull request, it should be a red flag that the work isn't done.