If that was true it would be the only example of that in skill acquisition ever found. Distributed practice beats massed practice for the same time expenditure.
If you program for 30 minutes you spend first 15 minutes filling your short-term memory with all the relevant details to do 15 minutes of work and throw it away.
I think it is understood that there's a lower total bound for it to be useful, like it's pointless comparing ten seconds of daily fitness with 70 seconds of one time weekly fitness
Sports https://sportscienceinsider.com/massed-vs-distributed-practi...
Study https://en.wikipedia.org/wiki/Distributed_practice