Tuesday, 29 September 2015

'Dart By Example' Book Is Available!

I am delighted to say that 'Dart By Example' is out now! You can find it on Packt, Amazon USA and Amazon UK.

Who This Book Is For
If you are a front- or back-end web developer who is looking to build complex full-featured web applications without the quagmire of disconnected JavaScript frameworks, this book is a practical walkthrough of substantial applications that will have you and your team coding Dart in a productive manner.
This book will give you a compiled, optional typed, scalable environment to rapidly develop applications. As Dart was designed to be familiar, any developer with even a small amount of knowledge of JavaScript or another programming language will be at home with the language immediately and will be coding quickly.

Friday, 25 September 2015

Introduction To Dart In 8 Minutes

"In this video, Faisal, Dart GDE will answer most common questions of Dart, like what is Dart for and how hard it is. Then he will show you the easy way to get stared with Dart."

Tuesday, 22 September 2015

Dart POW - ( Package Of The Week) #11 : colorful

Who is ready for another - Dart POW? A weekly look at an interesting Package on pub.dartlang.org

colorful is a package that helps creates 'a List of equally distant random colors'. Handy if you need a palette and you know I like some colour on this blog!


  var output = querySelector('#output');
  WarmPalette wp = new WarmPalette(10);
  List cl = wp.colors();

  cl.forEach((HexColor color) {
    var line = new HeadingElement.h1();
    line
      ..text = 'Dart is Awesome!'
      ..style.color = '#ffffff'
      ..style.backgroundColor = color.toCssString()
      ..style.margin = '15px'
      ..style.padding = '2px';
    output.append(line);
  });

Feel free to leave a comment with suggestions for the next Dart POW post! Don't be too shy to suggest your own package :-)

Saturday, 12 September 2015

Dart POW - ( Package Of The Week) #10 : irc

Who is ready for another - Dart POW? A weekly look at an interesting Package on pub.dartlang.org

The irc package is a 'one-stop shop for all your irc needs in Dart'. IRC (Internet Relay Chat) has been around a long time and is still a great way to connect. There are a number of IRC packages on pub so be sure to check them all out.

This example is taken straight from the irc docs:

import "package:irc/client.dart";

// This stores our configuration for this client
var config = new Configuration(host: "irc.esper.net", port: 6667, nickname: "DartBot", username: "DartBot");
// "Primary" IRC class
var client = new Client(config);

main() {
  // Register an onReady event handler
  client.onReady.listen((event) {
    // Join a channel
    event.join("#directcode");
  });

  // Register an onMessage event handler    
  client.onMessage.listen((event) {
    // Log any message events to the console
    print("<${event.target.name}><${event.from.name}> ${event.message}");
  });

  // Connect to the server
  client.connect();
}

Feel free to leave a comment with suggestions for the next Dart POW post! Don't be too shy to suggest your own package :-)

Thursday, 10 September 2015

Learn Dart In One Video - YouTube Link

Derek Banas has done a great job on this video. Good to see the Dart Chocolatey packages in action too!

Wednesday, 9 September 2015

Dart SDK and Dartium 1.12.1 Chocolatey Packages for Windows

Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface.

Chocolatey still has a large moderation backlog - however you can install unmoderated versions by specifiying the install version during installation.

Command line installation:

choco uninstall dart-sdk

choco install -y dart-sdk  -version 1.12.1
To verify you have the right version on your path.
dart --version

Dart VM version: 1.12.1 (Tue Sep 08 04:22:07 2015) on "windows_x64"

Command line installation:

choco uninstall dartium

choco install -y dartium  -version 1.12.1

Tuesday, 1 September 2015

Dart SDK and Dartium 1.12.0 Chocolatey Packages for Windows

Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface.

Chocolatey still has a large moderation backlog - however you can install unmoderated versions by specifiying the install version during installation.

Command line installation:

choco uninstall dart-sdk

choco install -y dart-sdk  -version 1.12.0
To verify you have the right version on your path.
dart --version

Dart VM version: 1.12.0 (Mon Aug 31 03:21:50 2015) on "windows_x64"

Command line installation:

choco uninstall dartium

choco install -y dartium  -version 1.12.0