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

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.

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.

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.

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...

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.

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.

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:

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...

Read More

How to Get Google Analytics to Work for Your Single Page Application

One of the things that becomes increasingly fascinating as I get older is the new knowledge acquired while “doing things for real”. Currently, we have been building a site for my current organization.

We built a little CMS to drive content, and the whole page is a Single Page Application (SPA). As we approached completion, we naturally wanted to add Google Analytics to the site. Sounds simple enough.

Or maybe not… in this post, I’ll describe how we got it to work for our Single Page Application. Google Analytics default setup is not built for that. And many descriptions you find out there are written with a client-side framework in mind, like Backbone.js.

What I write about below only requires jQuery, and that’s mostly for convenience.

As with most things I learn, it’s based on others’ knowledge that I tweak. In this case, I found a...

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.

Read More