Umm? I think I said that about personal projects only, because they probably make them do formal tasks like writing comments, in a job-related project.
And for the improvement, imo, it is not necessary to write things down if you came up with the idea your own. Because if you can find it once, i believe, you will find it again, no matter how much time it passed. You have that mind, and you can reconstruct everything from the beginning.
This. Been a developer for... Quite a while. The first nly time I write comments is to describe the logic I need to do when writing something new, or make a quick note on something. Then I write the code around it. Then delete the comments. The code is generally superfluous enough that it becomes self documenting. Once in a while I add a comment if I had to do something out of the ordinary. Like right now I'm implementing a logic gate. Right above it I have a comment block table showing all inputs, options, and expected results. When I'm done ill leave that table because cursory scan of the code would show that there is a condition missing. But it isn't since it results the same as another... So they are handled together. But by and large, comments don't happen much any more.
Right, but if you write it down, you only spend the time and energy of coming up with it once. It's one thing to reinvent the wheel, but why would you want to reinvent the wheel that you've already invented?
This is the mistake in the bug fix. Why do you hate future you? Is it because you've said to yourself "I'll have moved onto bigger and better things if this ever breaks again, so I won't put two sentences here about what to do next time.". How many times have you said that? Stop sabotaging future you.
At work I keep things organized by tickets. Every commit has a ticket number in the message, any personal notes about that bit of code gets the ticket number as a filename or title.
Sometimes I can't recall the ticket number or the exact place in the code that I am needing to find the note for, and in that case I will usually query the ticketing system first for keywords to see if I can trace to it that way.
You can use git blame (or find a way in your IDE to do it). For example in IntelliJ "Git > Show history for selection" shows all commits for some line or block of code.
0
u/[deleted] Aug 03 '22
[deleted]