Coding on a smartphone

So I’m gonna have to bus for 3-4 hours a day starting in a few days, and I want to utilize this time to do something productive. I’ve always wanted a smartphone, and I thought it’d be great if I could code on it during my long rides. Is this feasible? I’m thinking of getting an Android phone (Samsung i7500: 3.2 inches, touch screen keyboard), and basically SSH into my home computer and code in the terminal since I’m used to that.

My concern is, is typing on a mini keyboard like that fast/slow? I’ve never done it for a long time, and is it gonna be terrible looking at such a small screen for such a long time?