ePrivacy and GPDR Cookie Consent by CookieConsent.com
menu

An introduction to dart programming language

Dart is an open-source general-purpose programming language that is developed by tech giant Google. Dart comes with Dart SDK named Dart VM and includes a feature called Dart2Js which transpiles dart code into javascript.  

Dart history

Dart programming language was developed by Lars Bak and Kasper Lund. The first-time dart was open for the public in Oct 2011 at the GOTO conference in Arthus, Denmark. 

introduction to dart programming language
Lars back and Kasper Lund (source: Google)

There is an interesting story of the release of dart programming language initially, the dart language was developed for Web you can say it was developed to replace the javascript from the web but People criticized this because all the web was written in Javascript.  People thought google launched this language to kill JS. 

But no...

In the post-release of Dart-lang google cleared that he is not going to include Dart virtual machine in Browser but building Dart2Js compiler. 

 In May 2017 Google released Flutter alpha which is backed with Dart and it is a cross-platform mobile app builder framework that means one code to run your app in Android and iOS. Then dart became a hero language and in future dart will be the fastest adopting technology as Google, Alibaba, Tencent, and many companies and startups are using it. 

Dart Releases

Dart release dates infograph

  1. Dart 1.0: This was released on Nov 14, 2013. This was the initial release that tried to fix the bug but failed.                                                                                                                                                         
  2. Dart 2.0: Dart 2.0 implemented a new sound type system. Before Dart 2.0, types weren’t fully sound, and Dart relied heavily on runtime type checking. Dart 1.x code had to be migrated to Dart 2.                                                                                                                                                            
  3. Dart 2.6: This version was released on Nov 5th, 2019. This release contains a new extension called Dart2Native. With this feature, the dart code can be converted to .exe files so that it can run on any platform without installing Dart SDK.

Prerequisites to learn Dart:

Our tutorials are very Beginner-friendly so there is not any prerequisites to learn Dart. And if you know Javascript or Java then our tutorials will be very easy to grasp.  


How hard it is to learn Dart:


Ummm ...  This is a very controversial question but don't worry I am not going to say "It Depends". Today I am going to tell you Is it easy or hard for you to learn dart programming language. There are two conditions : 
  1. For IT beginners: This may be a little bit difficult as it is your first programming language but it is like a kid who is willing to learn cycling but fails in the early days but after some time it becomes Habitual, Dart fits in this example
  2. For It Person: This means a person who is in the IT field and knows object-oriented programming language like Java, C#, C++, Javascript, etc Then it is easy for them to work with. because dart is also an object-oriented programming language. But Dart is not more like Haskell, Scala, Python. 

Dart Features

As dart is developed by tech giant Google so there are many chances that it will be a quality product. Let's talk about the features of Dart language If you are a beginner then some things you might hear the first time but don't worry we will cover all the things in our further tutorials. Dart features are the following: 

  1. Open Source
  2. OOP based
  3. Cross-platform
  4. Stand Alone
  5. Browser Support
  6. Type safety
  7. Code reusability
  8. Java, Js like syntax
  9.  Libraries 
  10. Community

Open Source

Dart is an open-source language developed by Google. Dart is available with BSD license packed with compiler and other codes. Dart is an open-source, scalable programming language with robust libraries and runtimes, for building web, server, and mobile apps


OOP based 

Like Java, C#, Javascript Dart is also an object-oriented programming language which supports polymorphism, abstraction, inheritance, Encapsulation. Dart also supports mixins, interfaces, static typing, and many more things.

Cross-Platform

Dart language is supported over all the major operating systems. There is a dart compiler in Dart VM which allows running dart programs to every operating system.

Stand Alone

Dart SDK comes with stand-alone VM which allows dart code to run into the command line interface. Most of the Dart SDK tools are written in Dart. These tools include the dart2js compiler and a package manager called pub. dart ships a complete standard library allowing users to write fully working system apps, such as custom web servers.

Browser Support

Dart code can be trans compiled to Javascript. Dart2js is a tool that converts Dart code to javascript code which supports all the major browsers.

Type Safety

The Dart is a type-safe programming language. Dart uses a combination of static type checking and runtime checks to ensure that a variable’s value always matches the variable’s static type. Although Dart is strongly typed, type annotations are optional because of type inference.


Code Reusability 

Dart code can be compiled to javascript code using Dart2Js which can run on both the platforms mobile APP and WEB app. It is said that 70% of dart code can be reused between mobile APP and Web apps.

Java, Js Like Sentence

Dart syntax is very similar to Java, Javascript, and other Object-oriented programming languages like C++, C#, and others. But it does not mean you have to learn one of these languages first, You can start Dart as your first programming language.

Libraries

Dart has many inbuilt libraries like Math, Async, Convert, Etc. Dart also allows you to install third-party libraries to make your Coding easy.

Community

Dart is new in the market so there is a limited community but The community is growing day by day very fastly. But at Stackoverflow you can find most of your answers. 

* Feel free to comment if any mistake happened to write this page.

Comments

  1. Hello guys if you got any mistake or want to give some advise to me then Please comment here

    ReplyDelete

Post a Comment