I don't want us to talk past one another. My only issue with parent's post is that "focusing on the effort as its own reward" is going too much to the other extreme. "Rewarding for the effort" seems to me just as misguided as "praising for being smart", that's all.
I don’t see much wrong with rewarding for outcome. That’s how adults seem to work - your boss praises you for getting stuff done, not for being bright or putting effort in. You have to avoid the trap of only praising for PERFECT outcome, rather than incremental steps towards perfection, but I know I feel best being praised for a tangible thing I achieved rather than intangible intelligence or effort.
(Well, some bosses try to praise for effort but I’ve always found it to be really patronising or a barely-disguised attempt to get you to work overtime.)