The full answer
Can you learn coding on a phone?
What works well on a phone
The fundamentals are small by nature: what a variable is, how an `if` picks between two paths, how to change a color. Each idea is learned with a few lines, and that fits on a phone screen.
The device is always at hand, so a ten-minute lesson in a queue or before bed helps consistency, which matters more than studying a lot once in a while.
Where a phone falls short
Big projects, several open files, a terminal and installing tools call for a computer. Anyone who wants to be hired as a dev will need those skills later.
The phone covers the first stage: understanding what you're doing and building the habit. A borrowed or second-hand computer solves a lot afterwards.
How to build a phone-only routine
Pick a fixed time, even a short one, and tie the lesson to something you already do daily. Prefer activities where you write code instead of just watching.
- A time that repeats: commute, lunch or before bed.
- Real code: completing pieces sticks better than watching videos.
- Instant feedback: you know right away if you got it.
- Stuck? Stop and come back tomorrow; errors are part of the process.