Some cloud based IDEs provide access to personal VMs or Docker containers where you can do everything that can be done in Linux.
Another IDEs provide awesome ability to share your project with the URL or free tier for apps.
There is no need to be connected to the Internet all the time to work. Although chrome machines usually are not so powerful and they can't be used for tasks needing high computing (such as code compilation, data processing) but Crouton at least allows to work (like coding, version controlling local copies with git) completely offline.
Assuming you're sync'ing your work elsewhere, you can treat this low-cost machine as a burner and write it off if it's lost/stolen/destroyed without risk.