Meteor and the 'Uncaught SyntaxError: Unexpected token Y' error

Right now my head is spinning from the awesomeness that is Meteor. I am somewhere in between “This is too much magic to really believe…” and “Wow - why have I ever built anything with anything else before!”. Just a short little post about an error that have caused me problems. Here’s the error, that most likely pops up in your browser console: Uncaught SyntaxError: Unexpected token Y TL;DR - Reload your browser This is a Javascript parsing error, when trying to parse a very helpful error message from Meteor. Just reload the page and you’ll see the message. Longer … but still short and sweet The background Meteor is super helpful in many ways. Creating an app is just three small steps: meteor create myPrecious cd myPrecious meteor That last one is very special. That starts the application and live reloads the page for every change you make. So...
Read More

New PluralSight Course: io.js ... (or is it?)

For the last couple of months I have used io.js to run all my Node applications. I’m not going back. The transition has been very smooth, with a few minor things that you need to think about. And as always; I improved my existing skills by just moving outside the comfort zone a little bit. I thought that my journey could be an interesting PluralSight course. So did they. I’m happy to release this as my second course on PluralSight, Koa Js being the first. Here’s the link to the course A very interesting challenge presented itself at the end of the production as well. Tell you soon. The course is in three parts (and a summary): What is io.js - in this module I introduce what io.js is (and what’s it’s really called) and how to install it using nvm. Now that’s even simpler with nvm-latest Running Node apps...
Read More

Make a command to count my files

This is a very hands-on post, since I thought the last couple of ones (including the one I just threw away) was a bit high flying. Here we go - I have grown into a bit of a statistics maniac, especially when it comes to my blog. I’m not getting better and I like it. :) I now found myself in a situation where I simply wanted to count the number of files in my posts directory. In the terminal of my Mac. Count’em First I found a nice little combination of commands that did exactly that: ls -1 | wc -l Yeah, exactly. That doesn’t look to hard. And yes - I would never remember that either. My memory is excellent but very short. Remember it Luckily there’s a very simple little tool that can make commands like that easier to remember. You can create an alias with a...
Read More

50 quick ideas to improve your tests - a review

They’ve done it again. Gojko Adzic, David Evans and, in this book, Tom Roden has written another 50 quick ideas book. And this one is equally good as the previous book on user stories. If not even better. From the looks of it there’s a whole concept around these quick ideas and, fingers crossed, we can expect much more goodness like this. This is my review after reading the book in the worst possible manner. I’ll tell you why. But even doing so I got so much out of this book and my tool belt expanded significantly. I really like the approach of these short, focus, one-topic books, starting with Gojoks book on impact mapping. They don’t promise to be deep dives and total coverage but rather to give you ideas (well… that’s in the title even), be challenged and investigate further. In this book, on testing, they have divided...
Read More

YOW West 2015 - some thoughts

I’m at the airport waiting to go back to Indonesia after great Yow West 2015 conference. As always the mind is filled with impressions and memories. And as always when you think back is mostly the great people you met that sticks in your head. I just realize that there’s like an “agile culture” that I’ve now seen all over the world. I met a lot of people that I’ve never seen or interacted with but still, since we have read, thought about and worked around the same things the connection was immediate and I felt right at home directly. The agile community in Australia is really vibrant and filled with awesome people championing conferences like YOW and Agile Australia. Standing a big risk of forgetting someone I had such a great time meeting Dave Thomas, Craig Smith and Nigel Dalton that was running the conference in Perth. One thing...
Read More

No #No - more #Less

Twitter is a wonderful forum and I owe much of my knowledge and progress from sparks found in tweets and from following interesting people and threads. But according Spiderman wisdom it, like all thing powerful; yada yada yada ... great responsibility I have seen many of my good friends being bashed, or they themselves lashing out towards people on Twitter. A couple of times I have been hit by just a small portion of that and it hurts. I’ve considered quitting it altogether a couple time. As many of my colleagues has done. In this post I wanted to examine a Twitter phenomena and see what I can learn about how I communicate. Please join me. Someone said: The best thing with Twitter is that it's only 140 chars. The worst thing with Twitter is that it's only 140 chars. This is very true. And I think this is the...
Read More

Meta is not the most important thing

I had a couple of great conversations yesterday that gave me a small epiphany. Here’s the small thing that I came up with: Meta is not the most important thing. By definition. Well… it’s not much now that I see it. But maybe you’ll care to join in my reasoning. Anyway that what’s the rest of the post is about. I am completely absorbed by the Reinventing Organizations book. I’ve already written about it on this blog and will not dive deeper into the actual book again. But one thing that stand out for all of the organizations that is researched is that the people in these teal organizations are not in the organizations because they are teal. They are there because they like the way they work. I’m betting that in FAVI there’s not many people that are aware that they work in a teal organization. That’s just meta-information....
Read More

Waste and why I rather talk about something else

The other day I commented on a tweet from Paul Klipp. A man I highly respect around all things Lean and Agile. Here’s the tweet and my response: @duarte_vasco @paulklipp true, but only chasing waste is too simple :) "Value trumps flow, flow trumps waste reduction" @DReinertsen— Marcus Hammarberg (@marcusoftnet) May 9, 2015 All the elements to have an argument are in there: the word “waste” is used (see below) the tag #NoEstimates is mention (which in itself has caused a lot of anger) and finally the tweet is a bit provokative. However, since I know that “waste” is a concept that many people have many different ideas about (I promise I will explain) I wrote the comment above. After that I found myself in a discussion on twitter made up of some the names that I respect the most in the Lean / Agile world. And they seemed angry...
Read More

How to get Google Analytics to work for your Single Page Application

One of the things that gets increasingly fascinating the older I get is the new stuff you pick up as you “do things for real”. Right now we have been building a site for my current organisation. We built a little CMS to drive content and the whole page is a Single Page Application (SPA). As we approached being finished we of course wanted to add Google Analytics to the site. Dead simple. Or not maybe … in this post I’ll describe how we got it to work for our Single Page Application. Google Analytics default was is not built for that. And many descriptions you will find out there is written based with a client-side framework in mind, like Backbone.js. What I write about below only requires jQuery, and that’s mostly for convience. As with most things I learn it’s based on others knowledge that I just tweak and...
Read More

Supertest: Verify database after request

One thing that I often find myself want to do is to check the database after I have created a resource. For example: Post some data to /user Verify that I get 201 Created back Check that the data in the database looks ok I have had such a hard time finding a stable way to do this. I know that I have a little bit of a special tool chain but still… it should not be this hard. But last night, after weeks searching for this, I got it to work. I’m so excited to share this with you. Tools I’m using the following tools: Koa as my web framework of choice. Of course. And with comes a desire to use generators and yield where ever I can, because callbacks make me tired. supertest for testing co-monk for generator friendly database access mocha for testing should for assertions If...
Read More