Profile cover photo
Profile photo
Duncan Booth
1,458 followers
1,458 followers
About
Duncan's posts

Doh moment of the day: discovering (again) that in ES6 classes don't hoist.

Context: writing an angular 1.5 component and trying to use a controller defined as a class, you have to define the class before calling angular's .component() method otherwise it gets past all the lint checks but passes undefined as the controller.

This isn't a problem with angular directives because their structure means that even if you refer to the controller class before it's defined it will have been defined by the time the directive options are evaluated.

Of course eslint should be telling me about this, but for some reason it has that error disabled by default. Now entering the murky world of updating all my node modules to the latest version so I can get the one where the no-use-before-define option matches the online documentation. I see to have been about a hundred releases out of date.

Post has attachment

Post has attachment

Post has attachment
Saw this interesting looking device at Milton Park. Not come across one of these before.
Photo

Post has attachment
Help! I'm lost. Can someone please tell me where I am? Here are some screenshots of Google maps from my tablet over the last few minutes to help.
Google Now is recommending me lots of Chinese restaurants...
PhotoPhotoPhoto
08/02/2017
3 Photos - View album

Post has attachment
Added photos to Cardiff Mission Day.

Post has shared content
We're in the picture.
#IngressMissionDay is rocking Cardiff! And look Cardiff has its own XM Detection vehicle! Thanks to +Jonas Smith for sharing the picture with us!
Photo

Post has attachment
Canna beat a good poem.

My Nexus 5X died today and it looks like it will have to be a warranty claim. :-(

Meanwhile in other news I dug out my Nexus 5 and it is currently applying the 2016-09 security update. This could be a long evening.

Post has attachment
Completely bizarre Twitter thread about BMW i3 app: for some reason #BMW seem to think that the local dealers are responsible for fixing the broken app.

https://twitter.com/Iscarider/status/824550855533875200


Photo
Wait while more posts are being loaded