LifeMichael

LifeMichael

Haim Michael Blog

LifeMichael RSS Feed
 
 
 
 

Archive for Dart

Debugging Code in Dart PRO

The Dart Editor together with the Dartium web browser allow us to use breakpoints in order to debug step by step. We can execute our code in the dartium web browser and track it step by step using breakpoints in the Dart Editor.

Hello World (Command Line) in Dart PRO

We can use the dart utility in order to compile and execute code we write in Dart when using the command line. main() { print(“hello world!”); } The following video clip shows the execution of this simple code sample. The video clip shows how to use this command when working on Mac. On other operating [...]

The Bright Future of Dart BIZ

It is very difficult to forcast when it comes to technologies. Nevertheless, as of today I have every reason to believe that Dart might become one of the most popular programming languages in the world. In this post I will try to explain this bombastic conclusion. It is fairly clear that more and more applications [...]

Hello World (Web Browser) in Dart PRO

The code we develop in Dart can be executed in a web browser. It can be a web browser that already includes a Dart VM, such as the Chromium, or a simple web browser. When the web browser doesn’t include a Dart VM the code we wrote in Dart will be compiled into JavaScript. The [...]

Concurrency with Isolates in Dart PRO

Dart is a single threaded programming language. Each isolate is a unit of work. It has its own memory allocation. Sharing memory between isolates is not possible. Each isolate can pass over messages to the others. When an isolate receives a message it processes it in a way similar to events handling. import “dart:isolate”; var [...]

Function as First Class Objects PRO

Similarly to JavaScript, we can pass over functions as objects. We can pass a function as a argument to a another function and we can store a function in a variable. The possibility to define anonymous functions and pass them over as arguments to other functions simplifies the code. goodMorning(str) => print(“Good Morning $str”); goodEvening(str) [...]

Factory Constructors in Dart PRO

Appart of having a constructors mechanism similarly to Java and C#, Dart supports the concept of factory constructors. We can define a base class (can also be an abstract class) and provide a factory constructor to be used when a default concrete instance is required. abstract class IRobot { String talk(String str); factory IRobot() { [...]

Class Based OOP in Dart PRO

The Dart programming language uses classes and interfaces similarly to Java, C# and PHP. Dart supports single inheritance similarly to Java, C# and PHP. Dart supports multiple interfaces implementation similarly to Java, C# and PHP. As in Java and in C# every class inherits (by default) from the Object class. The classes can have public [...]

There is no + Strings Concatenator in Dart PRO

Dart doesn’t provide us with the + operator for concatenating strings. If we want to connect few strings into a new big one we can just place them side by side. void main() { var a = “hello”; var b = “students”; var str = “hello ” “students”; print(str); } The following video clips overviews [...]

Ignoring String Interpolation in Dart PRO

Prefixing the string with ‘r’ will cancel any string interpolation within that string. The following code sample shows that. void main() { var numA = 3; var numB = 4; print(r”$numA + $numB = ${numA+numB}”); } The following video clip shows the execution of this code sample, overviews it and explains it.

Facebook Page

Life Youtube

Categories

Communities


Certifications




Tags

Speaker Wiki

My Facebook

Technorati

Add to Technorati Favorites

Recommend

Archives

Countries I Visited


visited 17 states (7.55%)
Create Your Own Map!

ClustrMaps

Recent Searches

FeedJIT

Google Page Rank

Alexa Stats

Courses I Teach


 

My Free Lectures


 

 

 

My Free eBooks


 

 

 

 

 

 

 

 

 

 

 

 

 

 

Courses 1996

Courses 1997

Courses 1998

Courses 1999

Courses 2000

Courses 2001

Courses 2002

Courses 2003

Courses 2004

Courses 2005

Courses 2006

Courses 2007

Courses 2008

Courses 2009

Courses 2010

Courses 2011

Courses 2012

Courses 2013