Have you ever said:
"I don't have the time to code today"
Let me tell you the truth, If you rely on motivation.. You will FAIL!!
If you're relying on motivation to succeed as a developer you're not going to succeed at all.
In order to become a better programmer you need to implement coding into your lifestyle. That may require sacrificing those lounging breaks on the weekend.
Those days where you lack motivation become wasted days that put you one step behind.
If you truly want to learn how to code, you don't need motivation, You need a lifestyle change.
Set a time during the day that you can dedicate towards coding.