This is in contrast to the article which makes the good/bad distinction from a more Stoic perspective: "The pleasures of the mind are good; the pleasures of the body, not so much". And as the article goes on to explain, this idea gained traction with Christians through the ideas of Kant and others, who thought the pursuit of pleasure in doing good was not noble in itself. But this is countered by more recent 20th century writers like C.S. Lewis and more recently John Piper who make a point that the pursuit of joy in doing good is noble (see Christian Hedonism: https://www.desiringgod.org/articles/christian-hedonism )
But back to the time dimension of seeking what is pleasurable in the short vs. long-term. I've come to the realisation that most good things are the result of pursuing what is pleasurable in the long-term. Short-term vs long-term thinking. Think one-night stand vs lifelong marriage. Or the pleasure of enjoying junk food snacks in the short-term, vs self-discipline to savor desserts only after a meal. Or an example more from the realm of the mind, think watching sitcoms or playing video games vs finding pleasure in the discipline of self-study to pursue a long-term productive project. I see some of these ideas expressed in culture today through fasting apps and similar tools to help people control short-term pleasure impulses and instead pursue better long-term goals that are more beneficial.
Edit - I would just add that I see this more in terms of an economic calculation - people do what is in their best interest, and if you factor in a long-term approach to pleasure, it can help explain the benefits of choosing altruistic behavior over a short-term decision to do something that only pleases oneself. What is best for others usually turns out to be best for oneself in the long-term. A lot of cultural ideas like 'what comes around goes around' or karma, etc all stem from this concept.