You know, I'm fairly sure that there is more than just procrastination at play. This feels like some human mal-adaptation where we do anything (or nothing) to avoid dealing with That One Terrible Thing, whatever it may be.
Throughout my career I've had this feeling or state of thinking multiple times, whether I had to work with legacy code, uncooperative individuals, or just a week ago, work with a bad DB schema and write complex queries against it.
In my case, procrastination was just a consequence of wanting to do something but I very clearly also remember just sitting and staring at the task at hand, doing absolutely nothing, because I couldn't stomach how bad everything about the task that needed to be done was - bunches of redundant tables, illogical linking of data, lots of overcomplication, no documentation and no examples of helpful queries whatsoever.
> If you're not just making slow progress but literally unable to make a single bit of progress, my goto strategy is similar to what writers call a vomit draft.
In the end, just forcing myself to get started, writing out the dozen of different things I needed as a part of the query and then working backwards through everything, was what worked. It took hours of uninterrupted work, I felt miserable throughout it, but I got things done in the end, all because of that decision to actually work on it and deal with the pain and suffering, very much how someone would need to make the leap to dive into legacy code, or an issue for a project that doesn't have monitoring or instrumentation, or writing a thesis.
I think that's why techniques like Pomodoro also get recommended, because if you trick yourself into saying that you'll only do a bit of suffering (work on the horrible thing) now and will take a break later, it's more tolerable: https://todoist.com/productivity-methods/pomodoro-technique
I'm just writing this because to me it feels different from how people commonly view procrastination: just getting distracted and wanting dopamine, as opposed to being able to stare at the computer for an hour without doing anything, just because doing the thing would be horrible. The latter feeling makes you want to quit your academical program (which seems like what the author is dealing with a little bit), or maybe draft your resignation and leave the job market for a bit instead of dealing with the codebase or whatever (which I did, albeit for different and less negative reasons in my case).