Apache Cordova vs Dart: What are the differences?
What is Apache Cordova? Platform for building native mobile applications using HTML, CSS and JavaScript. Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript. Combined with a UI framework such as jQuery Mobile or Dojo Mobile or Sencha Touch, this allows a smartphone app to be developed with just HTML, CSS, and JavaScript.
What is Dart? A new web programming language with libraries, a virtual machine, and tools. Dart is a cohesive, scalable platform for building apps that run on the web (where you can use Polymer) or on servers (such as with Google Cloud Platform). Use the Dart language, libraries, and tools to write anything from simple scripts to full-featured apps.
Apache Cordova belongs to "Cross-Platform Mobile Development" category of the tech stack, while Dart can be primarily classified under "Languages".
Some of the features offered by Apache Cordova are:
- Cross-platform (CLI) workflow
- Platform-centered workflow
- Hundreds of plugins
On the other hand, Dart provides the following key features:
- Dart’s comprehensive libraries give you lots of choices
- Compilation to JavaScript lets you deploy Dart apps now
- Pub package manager
"Lots of plugins" is the primary reason why developers consider Apache Cordova over the competitors, whereas "Backed by Google" was stated as the key factor in picking Dart.
Apache Cordova is an open source tool with 766 GitHub stars and 327 GitHub forks. Here's a link to Apache Cordova's open source repository on GitHub.
According to the StackShare community, Apache Cordova has a broader approval, being mentioned in 96 company stacks & 45 developers stacks; compared to Dart, which is listed in 19 company stacks and 78 developer stacks.