Keon and Peak: Two Firefox OS smartphones tested
Not Quite Local
As a result, the software feels like a local program, but appearances can be deceptive. Under certain circumstances, the browser continues to load the entire application code every time you start a server from the Internet. Apps installed in this way are not necessarily packaged apps that Firefox OS has unpacked on the local filesystem. Purely on the basis of the starter icon, the user cannot currently distinguish local apps from Internet services.
The browser run time in which the application runs remains an Internet browser: It opens links to HTML pages without any notification that it is leaving the local filesystem. Only time will tell whether users feel comfortable with this blurring of the boundaries between online and offline content, and this approach could potentially create new security problems.
Web developers need to learn very few new tricks to develop an app for Firefox OS: The same basic techniques are used as for normal web applications. Developers can implement programs in JavaScript on both the server and client sides.
The first specific challenge is the small screen. At this point, the apps do not greatly differ from the long-established mobile versions of larger websites. The only requirement for the installation of an app is the manifest [9], a simple JSON file. Of course, the user will prefer client-side apps, which can also be used offline thanks to cache management or local installation.
JavaScript Is Mature
The art of client-side programming in JavaScript has long reached a certain level of maturity: JavaScript is now as powerful as many of the classic scripting languages. The browsers come with a debugger, and IDEs [13] [14] support the language well. A wide selection of libraries and frameworks are present that often follow the model-view-controller paradigm (Table 3).
Table 3
Frameworks and Libraries
Frameworks | URL |
---|---|
High-level frameworks |
|
Marionette.js |
|
Thorax |
|
Low-level frameworks |
|
Backbone.js |
|
jQuery (DOM abstraction) |
|
User interface |
|
jQuery UI |
|
Sencha Touch |
|
SproutCore |
Light and Shadow
Many animation effects, but also functional features of a user-friendly GUI, are definitely easier to implement in HTML5 and CSS3 than in native graphical toolkits. One advantage of Firefox OS, however, is that there are more potential programmers around than for Android or iOS: Virtually any web developer can get started, with no major barriers to entry, although there are some undeniable drawbacks: JavaScript as a scripting language is inevitably slower than Java or C++, which has an effect on battery life.
In terms of security, browsers do not have good reputations. Although JavaScript is better than many C++ or Java developers might think, it still has inherent defects, such as the 64-bit limitation for floating point numbers. Additionally, whether users will be comfortable with the blurring of the online-offline boundary is not yet known.
Infos
- Boot to Gecko wiki: https://wiki.mozilla.org/B2G
- Firefox OS simulator as a plugin: https://addons.mozilla.org/de/firefox/addon/firefox-os-simulator/
- Geeksphone:http://www.geeksphone.com
- Ubuntu Touch: https://wiki.ubuntu.com/Touch/
- Palm (HP) WebOS: http://en.wikipedia.org/wiki/WebOS
- B2G on GitHub: https://github.com/mozilla-b2g/
- Geolocation API: https://developer.mozilla.org/en-US/docs/WebAPI/Using_geolocation
- WebAPI: http://wiki.mozilla.org/WebAPI
- App manifest: https://developer.mozilla.org/en-US/docs/Web/Apps/Manifest
- Permissions: https://developer.mozilla.org/en-US/docs/Web/Apps/App_permissions
- Open Web Apps: https://developer.mozilla.org/en-US/docs/Web/Apps
- App installation: https://developer.mozilla.org/en-US/docs/Web/Apps/JavaScript_API
- NetBeans for HTML5: https://netbeans.org/features/html5/
- Eclipse for JavaScript: http://www.eclipse.org/downloads/packages/eclipse-ide-javascript-web-developers/heliosrc2
« Previous 1 2 3 4 5
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.