Monday, 29 July 2013

This Week In Dart #6

The Dart Editor SDK updated to R25388. This little snippet caught my eye '2,000 additional editor tests added to build (now at 5,000)'. The analysis engine has also had some fixes and expansion.
For those interested in polymer, check out Seth Ladd's examples on GitHub. In particular the Simple Custom Element example is very handy when getting started or when troubleshooting something more complicated.
Two interesting package updates - the self explanatory gifencoder and an isometric 3D library StageXL_Isometric.

Sorry to end on a sad note, but this week we had to bid a final farewell to Ginger the chicken who posed for my profile picture on GitHub. You were a chicken of great personality - so long and thanks for all the eggs!

Sunday, 28 July 2013

A Binary Clock In Dart

Binary Clocks - simple stuff, just the time in binary right? Well, it turns out that is not the case. Some transfer the 4 digits of the time into 4 binary numbers. Critics have pointed out that this binary coded decimal is not pure enough and scientifically insufficiently geeky.

Of course, this is all just a bit of fun. They are rather impractical! I liked it colourful for this blog so that was my main aim when I set about the task of writing my own (as a Dart WebUI Component - I guess it will be polymer.dart soon). The Dart libs have and easy method to get milliseconds since epoch. To get seconds we can simply round to 1000. For display, I chose 24 bits and decided to show previous times. This means our binary number updates at the LSB more often (right hand side of our string of 1's and 0's. The clock would look rather static other than at the right edge so I mirrored the display which gives some pleasing patterns. This gives time for around 200 days - so on some planet, this could be quite useful! Code as always on Github.

Thursday, 25 July 2013

Deprecation and the Dart Editor

It took me a while to find out why some methods in the Dart Editor were being shown like this - this means the method or property is deprecated.

Turns out work is going on to improve this - they will appear as build warnings too and not just in the Editor. I was looking at bit of code using Path and the tool tip stated that Path was deprecated and the exact day it would be removed in August. (No screenshot sorry!). As the libraries progress, most developers will appreciate this feature especially on larger projects.

Sunday, 21 July 2013

This Week In Dart #5

This week in Dart, the Dart Editor/SDK was updated to build 25017. Thanks to the Dart team for all their hard work.

Developers have not been slow to get started on polymer.dart (the successor to WebUI). There's some useful notes on converting existing WebUI apps that could save you a lot of time!

I was surprised to learn Dart has posters available and they look great! Grab PDF's for lexical scope and isolates.

Finally, for a different Dart weekly update, try the excellent Dart Weekly email newsletter which also has good coverage of the updates of the community Dart packages.

Saturday, 20 July 2013

Fractal Trees In Dart

I do love a good fractal - a titchy bit of code to produce a wonderful landscape or snowflake or, in this case, a tree. For the background see this clear article

You can try out the tree maker here and get/view the code here on GitHub.

Originally, this bit of code was part of a game produced during a jam. It was tidied up and put in a JS page. Conversion to Dart was straightforward.

Saturday, 13 July 2013

This Week In Dart #4

The Dart Editor and SDK was updated to version R24898 and gained the BETA tag:

The big news this week was announcement of polymer.dart - the Dart version of Polymer. This will eventually replace the WebUI library. The good news is the impact on existing code is fairly small - modification to some syntax. Eventually this should lead to the removal of the 'build' step. Full details were announced in this blog post.

Two framework updates this week:

  • bootjack - "Bootjack is a porting of Twitter Bootstrap in Dart.".
  • dart-decouple - "Decouple library for Dart, includes: IoC Container and Event Aggregator (Pub/Sub Pattern)"

Finally an older demo of dart that I stumbled across today that looks rather cool :-) Have a good Dart week!

Sunday, 7 July 2013

This Week In Dart #3

Yes I skipped a week with this little feature of the blog. It a quiet week the previous week probably due to the time of year.

A couple of non-English language Dart videos have popped up. For the Spanish speaking:

For the Italian Speaking:

More visuals were provided by Peter Schonefeld's SVG and Box2D demo.

Finally, time is almost always an issue so why not Learn Dart In 15 Minutes

Have a good week and do something great with Dart!