Mozilla Labs recently unveiled Bespin (which appears to be pronounced “Beh-spin” rather than “Bee-spin”). Bespin will provide a fully-functioning code editor that’s integrated directly into your web browser.
Mozilla’s goal is to create a fast, easy-to-use editor that’s not intimidating, and is accessible from anywhere. The system will offer an extensible API to encourage third-party extensions and Ubiqity-like natural language commands for full control over the editor and its interface.
However, Bespin’s most interesting feature is likely to be real-time collaboration. You and your coding colleagues will be able to work on the same files at the same time and see each other’s changes as they happen. That will certainly appeal to all keyboard-sharing programmers using agile development methods.
Online code editors are not a new idea. However, most projects are quite basic and usually implement an enhanced version of an HTML
<textarea> with line numbering and colour-coding. Even at this stage, Bespin implements functionality that is more advanced than any of its competitors.
The most interesting aspect about Bespin is the technology behind the editor itself. Mozilla have used a single HTML5
canvas in this way is a novel idea, and I suspect it will influence many other projects.
Bespin is possibly a little ahead of its time. It will be handy for quick web site updates or perhaps live online presentations, but it has a long way to go before developers abandon their favourite desktop-based editor.
Would you trust your code with online code editors such as Bespin? Could it ever offer the speed, features, security, and flexibility of your current IDE? Real-time collaboration is useful, but would you need it every day?
Craig is a freelance UK web consultant who built his first page for IE2.0 in 1995. Since that time he's been advocating standards, accessibility, and best-practice HTML5 techniques. He's created enterprise specifications, websites and online applications for companies and organisations including the UK Parliament, the European Parliament, the Department of Energy & Climate Change, Microsoft, and more. He's written more than 1,000 articles for SitePoint and you can find him @craigbuckler.
Your First Year in Code
Visual Studio Code: End-to-End Editing and Debugging Tools for Web Developers
Jump Start Git, 2nd Edition