The first time I tried building a mobile app, I thought it would be simple. Write some HTML, add JavaScript, bundle it up, and—voilà—an app! In reality, what I built barely opened without crashing.