When I had a Nokia N900, I programmed on the device all the time. Nothing especially big, of course, but the traditional-Linux environment and physical keyboard on that phone allowed you to quickly knock out a small shell or Python script if you had some task you wanted to automate.