The full answer
How can I learn to code with little time?
Consistency beats intensity
People short on time think they need free hours. In practice, what helps most is coming back every day: habits form through repetition, and a week away from the subject erases much of what you saw.
That doesn't mean fifteen minutes replace hours. It means they take you further than the hours that never show up.
How to build a 15-minute routine
Avoid relying on motivation, which comes and goes. Tie the session to something you already do daily and write code in every one, even for a few minutes.
- A fixed trigger: after coffee, on the commute or before bed.
- A ridiculously small minimum: on a bad day, one activity counts.
- Code, not just video: completing a piece and seeing the result teaches more.
- A bad week: pick up again the next one, no guilt.
What to expect on timing
With little time per day, the calendar stretches. You can't pin down months, because it depends on each person and goal.
Match the goal to your time: instead of "become a dev in three months", agree on something small and concrete, like finishing your first full activity this month.