To be clear: Stimulants are not motivation in pill form. The motivation boost is a short-term side effect and tolerance definitely develops quickly.
I think a lot of people get the wrong idea after seeing people use stimulants to cram for finals in college. Long-term treatment won’t do anything like that. It can improve focus and reduce distractability, but you’re not going to become a code-writing machine for the next decade on stimulants.