9
I Use This!
Very High Activity

News

Analyzed 25 days ago. based on code collected over 2 years ago.
Posted almost 3 years ago by Davy Mitchell (nore...@blogger.com)
Another step in my personal 'Learn Angular 2' project... Here's some details of what made it into v0.06. I'd recommend looking at the entire project alongside this post. Let's quickly add another function to the Text processing service: String ... [More] getRepeatedString(String textToRepeat, num count) { count ??= 1; return textToRepeat * count.toInt(); } We use a null aware operator to set count to a default value and then use the string multiplication operator to do the required repeating. [Less]
Posted almost 3 years ago by Davy Mitchell (nore...@blogger.com)
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. You can install unmoderated versions by ... [More] specifiying the install version during installation.Chocolatey has also been updated with versions 1.20.1Command line installation: choco uninstall dart-sdkchoco install -y dart-sdk -version 1.20.1To verify you have the right version on your path. dart --versionDart VM version: 1.20.1 (Wed Oct 12... [Less]
Posted almost 3 years ago by Anders Thorhauge Sandholm (nore...@blogger.com)
Dart 1.20 is now available. Get it now!Back in the Dart 1.19 release we introduced support for the .package file; our replacement for the /packages/ directory often filled with hundreds of symlinks. In 1.19 this support was opt-in via passing an ... [More] option to pub get. Now that it has had time to mature, and based on favorable feedback, we have gone ahead and made it the default. If for some reason this causes issues, you can still get symlinks by using the... [Less]
Posted about 3 years ago by Filip Hráček (nore...@blogger.com)
AdSense is a free, simple way to earn money by placing ads on your website. The team just launched a completely new version of their app for publishers. Read all about it here. We asked Daniel White, the tech lead for the project, some questions ... [More] because the new UI happens to be built with Dart and Angular2.AdSense launched way back in 2003. How long is it since the last big redesign?Last big redesign was called ‘AdSense 3’ and launched... [Less]
Posted about 3 years ago by Anders Thorhauge Sandholm (nore...@blogger.com)
Earlier this year we had an ongoing thread where Googlers shared their favorite Dart feature—perhaps a less known one. We wanted to share these insights from some of our most engaged internal users more broadly. Hence this post. The names have been ... [More] changed to protect the innocent, but the contents should constitute some fine reading.Here we go: What's your favorite "less known"... [Less]
Posted about 3 years ago by Davy Mitchell (nore...@blogger.com)
Another step in my personal 'Learn Angular 2' project... Here's some details of what made it into v0.05. I'd recommend looking at the entire project alongside this post. It's time we added a proper dialog. I put off doing this as I thought it ... [More] wouldn't involve much Angular 2. Turns out it covers some very important ground! So let's plan out what we need to do. The Editor component will have a flag to show/hide the About dialog. The toolbar will have... [Less]
Posted about 3 years ago by Davy Mitchell (nore...@blogger.com)
Dart moves rather quickly with releases every 6 weeks or so. Lots of posts on this blog are for Chocolatey which is fine for Windows but I spend most of my Dart time on Linux so how do I update? There are a few methods but I decided to roll my own ... [More] Bash shell script which downloads and unzips the SDK and Dartium to the current folder. Hope someone finds this useful! P.S. The first wget download is the ARM version which I use on my Raspberry Pi. #!/bin/bashVERSION="1.19.1"wget https://storage.googleapis.com/dart-archive/channels/stable/release/$VERSION/sdk/dartsdk-linux-arm-release.zipwget https://storage.googleapis.com/dart-archive/channels/stable/release/$VERSION/sdk/dartsdk-linux-x64-release.zipwget https://storage.googleapis.com/dart-archive/channels/stable/release/$VERSION/dartium/dartium-linux-x64-release.zip [Less]
Posted about 3 years ago by Davy Mitchell (nore...@blogger.com)
Another step in my personal 'Learn Angular 2' project... Here's some details of what made it into v0.04. Services are a core part of Angular (inject-able units of functionality). They are inject-able in that the responsibility of creating the service ... [More] is the Angular frameworks and any object using it receives a fully configured service when that object is created. Okay that's a bit abstract - what does it mean for np8080? Well, there are a number of methods that process the data in the text document. Let's extract all that into... [Less]
Posted about 3 years ago by Davy Mitchell (nore...@blogger.com)
Continuing on with my personal 'Learn Angular 2' project... Here's some details of what made it into v0.03. Change of plan - we are going to look at pipes! Pipes are the renamed 'Filters' from Angular 1. They work in pretty much the same way. A last ... [More] modified DateTime object is now stored part of the TextDocument class. Let's add it onto the status component. Let's use the built-in filters to show the full date in upper case:Last modified: Notice the * before ngIf. This is critical for ng2 to... [Less]
Posted about 3 years ago by Davy Mitchell (nore...@blogger.com)
Last time we got the basic notepad off the ground. A toolbar would be a good incremental step, complete with chunky buttons. Angular 2 has a different markup for events (click) but after that it is straightforward handler writing as methods of the ... [More] component. The first button allows that text content to be downloaded as a file. The second trims trailing and leading whitespace. The third displays a crude alert text box. Next time we will look at upgrading this to a dialog. ... [Less]