Answer the question
In order to leave comments, you need to log in
How to quickly plunge back into your own code?
Suppose you take a vacation for a month and for a month you don’t sit down at the computer at all and don’t write a project.
How, after a month, to quickly join your own code again, if there is a lot of it? It happens that you have to sit for an hour and a half and parse your own code. Reveal "ends", etc.
How do you solve such a problem? How to pause development correctly so as not to get confused after a month in your own code?
Answer the question
In order to leave comments, you need to log in
"I'm in a month of vacation" - the same as "another, new developer in the project."
I look at my code, as if another developer will finish it tomorrow, while I'm out of access.
I try to adhere to generally accepted patterns, comment on points that require clarification. Commit once a day or more often on completed microtasks, with reasonable commit comments.
To what has already been said, Sergey Gornostaev should add that it is necessary to divide the work into parts that must be completed. If you have unfinished parts, then in a few days, even if you have documentation, you will forget about them
I use OOP to build a "tree" of dependencies and a "sheet" for data work-flow.
I comment on the sections responsible for the data flow processing logic and various implicit operations that rarely occur, if any (for example, specific complex conditions or whatnots for returning objects).
There is no point in commenting libraries or classes.
I store all the top-level logic in one file and start browsing from it: everything immediately "looms" in my head in terms of what is happening with the data: dependencies, calls / calls, etc.
If I haven’t finished writing something and it needs to be postponed for a long time: I put either a compilation error with a comment above it, or I raise / interrupt and display the message for myself.
I always write in texts what I want to do, what I have already done, well, I leave comments in the code, for me this is enough.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question