Profile

Cover photo
Chris Strom
Works at EEE Computes
Lives in Baltimore
1,022 followers|6,095,959 views
AboutPostsPhotos+1's

Stream

Chris Strom

Shared publicly  - 
 
Making a <google-map>-like element and a <google-map-marker>-like element work together in Polymer.dart. Something about this feels dirty....
Up tonight, I would like to muck around with custom, Google Map-like, Polymer.dart elements. Thanks to the custom_element_apigen, I can pull the JavaScript <google-map> element into Dart code. It also pulls in <google-map-mar...
1
Add a comment...
 
The right way to use the JavaScript <google-map> element in a Polymer.dart application... with custom_element_apigen. This tool worked much better than the last time I tried it. It was almost... easy :)

Huge thanks to +James Hurford for reminding me that the tool existed!
You could say that I've forgotten more about Polymer than most programmers will ever know. I would probably agree, but that's just because I have a crap memory. I was able to get the <google-map> JavaScript Polymer element to...
3
2
James Hurford's profile photoAllan MacDonald's profile photo
Add a comment...

Chris Strom

Shared publicly  - 
 
Supporting both link-tag-import (old) and code-import (new) in Polymer.dart elements seems a necessity. Thankfully, the solution presented in the 0.16 release notes make it easy.

BONUS: if you follow the instructions correctly, you figure out how you messed up the night before :D
Don't you hate it when code doesn't break? Now, don't get me wrong, I like working code as much as the next programmer. Working code is smashing. But when you expect code to break and it doesn't, what's left? Well, a blog pos...
2
Add a comment...

Chris Strom

Shared publicly  - 
 
Complex Polymer.dart testing seems unaffected by the preview release (0.16). I do wish I had a better handle on testing Angular.dart, which I think qualifies as making Polymer testing complex :)
I continue to evaluate Patterns in Polymer against the latest pre-release version of Polymer.dart (0.16). Last night I verified that Angular.dart solution from the book still works. Previously, I verified that simple testing ...
4
Add a comment...

Chris Strom

Shared publicly  - 
 
It's really easy to setup Polymer.dart tests. So easy that I can't believe I couldn't figure it out sooner :-\
In the development release of Dart and Polymer.dart, the simplest that I can write is still complex: group("<hello-you>", (){ setUp((){ /* Add element here... */ }); test("has a shadowRoot", (){ Polymer.onReady.then(expectAsy...
1
1
Patrice Chalin's profile photo
Add a comment...

Chris Strom

Shared publicly  - 
 
Testing Polymer.dart 0.16 seems to work just the same as testing Polymer.dart 0.15… with one minor tweak.
The latest edition of Patterns in Polymer is done save for copy edits. So of course, there is a major new release of Polymer.dart. While I await the remaining edits from my copy editor, I am poking around the edges of the boo...
5
Add a comment...
In his circles
201 people
Have him in circles
1,022 people
Susannah Pfalzer's profile photo
김시동's profile photo
Ziaul Islam's profile photo
Bean R.r's profile photo
Can Arslan's profile photo
Agus Hilman's profile photo
Adrian Puiu's profile photo
Wojciech Halicki-Piszko's profile photo
venkata harish's profile photo
 
Building a custom Polymer.dart element that uses the JavaScript <google-map> element. This is all quite pleasant :)
Thanks to the magic of custom_element_apigen, I was able to use the JavaScript <google-map> Polymer element in a Dart application last night. In the end it was, dare I say it, easy. Tonight, I would like to dynamically use <g...
4
Add a comment...
 
Well, I can get <google-map> working in the latest Polymer.dart. But it ain't pretty. 

h/t +James Hurford for a working approach
Up tonight, I would like to mess about with the Google Maps API a little. While I await the final copy edits on Patterns in Polymer, I need to keep my mind engaged with Polymer. I will have to run through changes at least one...
2
1
george oloo's profile photo
Add a comment...

Chris Strom

Shared publicly  - 
 
I like importing Polymer.dart code with regular #dartlang  imports instead of link-tag imports. It'll take some getting used to (especially since JS Polymer does not use this approach). But it seems a winner in Dart-land :)
Doing away with <link> imports in Polymer.dart 0.16 is pretty darn cool. It could also present me with a challenge in Patterns in Polymer. Hopefully I can make it work without too much effort, especially with the 1.2 edition ...
2
Add a comment...

Chris Strom

Shared publicly  - 
 
The latest Angluar.dart and Polymer.dart together! They still require some effort to get started, but less than in the past. And they still seem to get along swimmingly!
3
1
Start Polymer's profile photo
Add a comment...

Chris Strom

Shared publicly  - 
 
Dangnabit. I found my Polymer.dart 0.16 headless testing problem. When I was forced to use Polymer.onReady yesterday, my tests became asynchronous. You'd think that wouldn't make that much of a difference...

Thankfully, the fix isn't too bad.
I have this test. It's not even really a test. It's not making assertions about my very simple <hello-you> element. It just verifies that Polymer.dart is working correctly. It even works when run in Dartium: Buy my very simp...
1
Add a comment...

Chris Strom

Shared publicly  - 
 
There are more timeouts than I can count, but I can test Polymer code on IE10 and IE11 with karma-webdriver-launcher. In other words, no copying code and installing dependencies on Windows. Yay!

Here's hoping your 2015 will be free of testing woes on Windows. Or at least coding with WordPad...
I coded in WordPad yesterday. 15 years of successfully repressing that sensation and now I fear I may never recover. Still, I successfully got Karma & Jasmine to test Polymer code with Internet Explorer yesterday. So it was w...
1
Add a comment...
People
In his circles
201 people
Have him in circles
1,022 people
Susannah Pfalzer's profile photo
김시동's profile photo
Ziaul Islam's profile photo
Bean R.r's profile photo
Can Arslan's profile photo
Agus Hilman's profile photo
Adrian Puiu's profile photo
Wojciech Halicki-Piszko's profile photo
venkata harish's profile photo
Work
Occupation
Programmer
Employment
  • EEE Computes
    Consultant / Author, present
  • mdlogix
    Programmer
Basic Information
Gender
Male
Other names
eee_c, eee-c
Story
Tagline
Author, programmer, speaker.
Introduction
You could fill a book with what I don't know. Which is rather the point. Author of 3D Game Programming for Kids, Patterns in Polymer,  Dart for Hipsters and The SPDY Book. Co-author of Recipes with Backbone. Big into chains
Bragging rights
Blogged for more days in a row than anyone ever.
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Baltimore
Previously
Connecticut - New York - Indiana - Maryland
Chris Strom's +1's are the things they like, agree with, or want to recommend.
SPDY Book
spdybook.com

Early Access. Beta copies of SPDY Book are now available! Add to Cart. Buying now guarantees you access to the final copy of SPDY Book at no

The new Chromebook, for everyone
chrome.blogspot.com

As a kid growing up in India, I was fascinated with computers and the endless possibilities they presented. I had to wait until college to f

Chrome Experiments - "Code Editor" by Mr.doob
www.chromeexperiments.com

Little online (and offline) code editor for messing around. Needed an editor so I could code on ChromeOS during some days and this did the t

Seth Ladd's Blog: This is this in Dart
blog.sethladd.com

One of the things that&#39;s always confused me about JavaScript is the changing definition of this. This post will show how Dart avoids the