INTRODUCTION PROGRAMMING LANGUAGE DART Opensource Structured Flexible Developed by Google Primarly used for Web applications but with new version Dart is used even in Mobile applications and in Desktop applications ID: 933208
Download Presentation The PPT/PDF document "Compar is on of Dart and JavaScript Prog..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Presentation Transcript
Slide1
Comparison of Dart and JavaScript Programming Languages
Slide2INTRODUCTION
Slide3PROGRAMMING LANGUAGE DART
Open-source
Structured
Flexible
Developed by Google
Primarly used for Web applications, but with new version, Dart is used even in Mobile applications and in Desktop applications
Slide4PROGRAMMING LANGUAGE DART
Dart was not developed to replace JS. It was developed to offer users modern option for application development with better performances and bigger projects
New programming language with C tradition.
Object-oriented
Class-based
Optionally typed
Single-threaded
Slide5PROGRAMMING LANGUAGE DART
Applications that were developed in Dart can be run by:
Compiling Dart code to JS code
By using Web browser that directly support Dart code
Dart uses isolates
Slide6STANDARD CLIENT-SERVER REQUEST SCHEME
Slide7NEW ASYNCHRONOUS CLIENT-SERVER REQUEST
Slide8PROGRAMMING LANGUAGE JAVASCRIPT
Overwhelming majority of Websites uses JS
High-level
Dynamic
Interpreted
Well suited to object
-oriented and functional programming style
Syntax is based on java
Slide9PROGRAMMING LANGUAGE JAVASCRIPT
The core JavaScript language defines minimal API for working with numbers, text, arrays, etc. But does not include any input or output function. The main host environment for JavaScript was a Web browser and this is still most common execution for JavaScript code
Slide10POPULARITY
Comparison point
Dart
JavaScript
Popularity
Before Google announced Flutter, Dart was nowhere to be found. Since the announcement of Flutter in Google, Dart has drastic attention among mobile developers. Big companies like Google, Alibaba adopted Flutter. The popularity has raised but it is not popular as JavaScript.
At very same moment, JavaScript is everywhere. There is no device in world that does not use JavaScript. There are many companies that are using JavaScript frameworks for developing applications. Companies like eBay, Slack, Instagram, Reddit use JavaScript.
Slide11PERFORMANCE
Comparison point
Dart
JavaScript
Performance
Dart does not rely on any type of bridge communication, instead it’s graphic core Skia, better known as 2D rendering engine that was written in C++, compiles user interface (UI) to cose as the user interacts with the application.
JavaScript’s architecture requires a bridge that enables interaction between JavaScript and components of user’s interface and some of the device’s elements such as camera, sensors, bluetooth. Because of this bridge communication, JavaScript is slower than Dart
Slide12PRODUCTIVITY
Comparison point
Dart
JavaScript
Productivity
Dart has awesome documentation but developers can get confused with Dart language features. Dart’s syntax is very similar to Java’s so developers who had programming previously with Java can pick syntax easily. There is a comparatively smaller community for Dart and Flutter.
Because JavaScript has many frameworks, it boosts developers productivity by offering countless libraries, packeges and frameworks . It is easier for new developers to learn JavaScript because its faster, lightweight and dynamic language.
Slide13LEARNING CURVE
Comparison point
Dart
JavaScript
Learning Curve
Programming Language Dart can be challenging for begginers since it is not widely and commonly used programming language. There are only few courses and books that are available on Internet.
Learning JavaScript is not easy task. After learning fundamentals concepts in programming, JavaScript can be really easy for learning. There are enormous number of courses, tutorials and books on Internet.
Slide14FRONTEND VS BACKEND DEVELOPMENT
Comparison point
Dart
JavaScript
Frontend vs backend development
Dart is currently used with Flutter for developing frontend cross-platform mobile applications. It can also be used for developing Web applications. Right know Dart is not being used for backend development
JavaScript was in beginning used for frontend development with combination with HTML and CSS. Since the appearance of Node.js framework, JavaScript is now used even in server side and backend development
Slide15EASE OF USE
Comparison point
Dart
JavaScript
Ease of use
In terms of coding and syntax, Dart has similar syntax to Java, so developers with OOP knowledge can use Dart easily.
JavaScript is mature language, it is easy to use and understand, it is stable with enormous frameworks that are available for everyone.
Slide16WEB VS MOBILE DEVELOPMENT
Comparison point
Dart
JavaScript
Web vs Mobile development
Dart can be used for developing both Web and mobile applications. Dart became very popular with combination with Flutter for developing mobile applications. Dart can also develop Web applications but it is rarely used for that purpose.
JavaScript has dominated Web and mobile application development with different frameworks. With releasment of React and React Native from Facebook, JavaScript became glue for developing Web and mobile applications for business. Frameworks that are also being used for Web and mobile development are Angular, Vue.js, etc.
Slide17SAFE-TYPE
Comparison point
Dart
JavaScript
Safe-type
Dart allows strict prototyping. Since it is a compiled programming language, programming errors are discovered during compiled process. With this information, Dart is more safe-type than JavaScript
JavaScript is interpreted programming language that supports duck and dynamic typing. JavaScript is not safe-type since user can write any type of code. Errors can only be found during runtime
Slide18DEBUGGING
Comparison point
Dart
JavaScript
Debugging
In Dart, debugging is easier while using tools for support that enabled in Android Studio and in VS Code. One of many tools is Inspector. He checks visual layer of the application and questions why application is the way it looks.
In JavaScript, debugging is problematic, especially when a specific error originates in some part of user’s application. Bug can be on side of programming language JavaScript, in JavaScript’s framework or from third-party libraries. One of the tools that can help with errors is Flipper. Flipper can visualize, inspect and control applications from desktop interface.
Slide19CONCLUSION
Slide20Slide21THANK YOU