Dart Introduction
Dart is a class-based, garbage-collected, client-optimized, Object-oriented programming (OOP) language for creating fast apps. It can be run on any platform. If you are familiar with an OOP language such as Java you might find many similarities with Dart language.
Dart is designed for client development, such as for the web and mobile applications. It is developed by Google and can also be used to build server and desktop applications.
Supported platforms :
Dart language is a very flexible language. It possessed a warm environment in which it can lives. The source code has been written and tested can be deployed in many different ways. For example:
- Stand-alone
- AOT compiled
- Web
- Desktop/Mobile
All the above criteria are discussed in short to make one easy to understand. Firstly, have a look on stand-alone feature what it provides.
Stand-alone: A Java program can’t be run without the Java Virtual Machine (JVM), In the same way as a stand-alone Dart program can’t be executed without the Dart Virtual Machine (DVM). There is a need to download and install the DVM. To execute Dart in a command-line environment DVM is needed. The software development kit (SDK), other than the compiler and the libraries, also offers a series of other development tools, such as:
- the pub package manager.
- dart2js: It is used to compiles Dart code to deployable JavaScript.
- dartdoc: It is the Dart documentation generator.
- dartfmt: This is a code formatter that follows the official style guidelines.
In other words, with the stand-alone way you are creating a Dart program that can only run if the DVM is installed.
AOT compilation is very powerful because it natively brings Dart to mobile desktop. The ahead of time compilation is the act of translating a high-level programming language. Like as Dart programing language into native machine code. Basically, starting from the Dart source code you can obtain a single binary file that can execute natively on a certain operating system. With AOT there is NO need to have the DVM installed because at the end you get a single binary file such as an .apk or .aab for Android, an .ipa for iOS, an .exe for Windows. These file can be executed. You’ll end up having a single native binary which doesn’t require a DVM to be installed on the client in order to run the application.
The Just In Time (JIT) technique can be seen as a “real time trans- lation” . The reason for JIT is the compilation happens while the program is executing. It’s a sort of “dynamic compilation” which happens while the program is being used. JIT compilation is combined with the DVM (JIT + VM in the picture). It allows the dispatch of the code dynamically without considering the user’s machine architecture. In this way it is possible to smoothly run and debug the code everywhere. Even though without having to mess up with the underlying architecture.
The draftsbook article with content list are mention here:
- JAVA : Dart is similar feature with JAVA language. Java Classes and objects are the two main aspects of object-oriented programming. The Principles of OOP content are:
- Data Structure: A data structure is a several way of organizing data in a computer system. In C language different algorithm paradigm with implementation discus in the blog.
- Android : Android software development apps can be written using Kotlin, Java, and C++ languages” using the Android software development kit (SDK). This blog contains android feature Navigation drawer implementation and its usage are mention.
- IELTS : IELTS Four module with strategies are written hereby
- Problem Solving : Problem solution on various online platform tips and solution are given here following platform.