9
I Use This!
Activity Not Available

News

Posted almost 7 years ago by Matan Lurey
Wow! I’d love to talk to you more about this!
Posted almost 7 years ago by Davy Mitchell ([email protected])
Angular Dart 3 final was released and NP8080 (simple web based text editor) has been built with the latest version. It has been a fun little project and I have found myself using it daily as a scratchpad. Not a massive amount to report - Angular ... [More] very stable since the Betas. Certainly feeling a bit more Dart-y. The most disruptive change was the deprecation of EventEmitter but as this was a thin wrapper around a standard Dart Stream it wasn't much of a loss though I had 20 occurrences... [Less]
Posted almost 7 years ago by Filip Hráček ([email protected])
AngularDart 3.0 is now available. It brings better performance and smaller generated code, while also making you more productive. Version 3.0 is an evolution: although it has some breaking changes (detailed below), it is a smooth upgrade due to ... [More] minimal public API adjustments. Most of the progress is under the hood—in code quality, stability, generated code size, performance, and developer experience.Code quality: 2731 instances of making the framework code more type safe (using sound Dart). The AngularDart framework code size... [Less]
Posted almost 7 years ago by Matan Lurey
As an example of how to build FRP (functional-reactive program[s]) in Dart, I decided to try building an FPS counter — that is, an utility to determine what the frame rate of a running application is.The end result after building package:fps.I ... [More] decided I’d like to have a few goals: The library, hereby package:fps, should be platform agnostic. That is, I didn’t want to require the use of the browser (requestAnimationFrame) — it should work also in the standalone command-line VM and Flutter. I wanted it to be extensible — it should be relatively trivial to get the average FPS over a duration of time... [Less]
Posted almost 7 years ago by Matan Lurey
As far as I know it’s still maintained — though the author(s) are currently working on the DartDevCompiler and addressing bugs might not have been a huge priority.
Posted almost 7 years ago by Davy Mitchell ([email protected])
The forest fire cellular automata was a lot of fun to work on and watch. It has now been updated thanks to a welcome pull request which adds a Speed slider to the UI.I extended it further to add some simple procedurally generated mountains and lochs ... [More] (lakes). One challenge here was to keep the time down (it takes a lot of recursion). A quick way to get some speed was to reduce the resolution so each cell... [Less]
Posted almost 7 years ago by Matan Lurey
One of the most common questions I get for Dart, even within Google, is “how do I make my code more reusable?”. We work on large projects like AdWords, AdSense, and Google’s internal CRM, Greentea — which are all written in Dart.Reusable bags are ... [More] sort of like reusable code, right?I was working with an engineer who was iterating on a new API for the AngularDart router, where we are modeling route changes as immutable state changes:A question was asked while developing this, though:A [large] customer says that the default behavior of stripping the... [Less]
Posted almost 7 years ago by Matan Lurey
We’re constantly talking on the Dart team about how to improve the language (like non-nullable types), and one of the features that has come up informally a few times is function overloading:In some programming languages, function overloading or ... [More] method overloading is the ability to create multiple methods of the same name with different implementations. Calls to an overloaded function will run a specific implementation of that function appropriate to the context of the call, allowing one function call to perform different tasks depending on context.In short, this means you can write code like this (here’s a... [Less]
Posted almost 7 years ago by Matan Lurey
Well, no. Dart has a single thread, or event-loop, of execution. However, commonly you’ll see a code using Future have a comment something to the effect of “// Avoid race conditions: Check for …”. What does that mean? New to futures? Read ... [More] asynchronous programming: Futures on the Dart site.While Dart has a single thread of execution, it can interact with other code (Dart or otherwise, such as server-side) that runs in a separate thread. What Future as an API means is simply “get a value, T, at a future point in time”. That time? It could be at the end of the... [Less]
Posted almost 7 years ago by Matan Lurey
Yup, that’d be correct!