Let's turn the page on programming robots with a flowchart. Robotics should be done with a hierarchy of state machines, best if self-modifying. I'll demonstrate how a js framework can prove the idea, on a Firefoxos phone even. It's a great place to set base camp and opens up more excursions like machine learning and genetic programming.