Novanet Christmas calendar 2016 (Open sourced)

Hallstein Brøtan

Christmas is closing in, and during this last month of the year we've been running a company Christmas calendar quiz. The calendar has been a success internally, but also attracted attention from customers and colleagues from other consultant firms (who wants to join in, but are not allowed..) The purpose…

Make Selenium wait for ajax calls using AngularJS (and TypeScript)

Hallstein Brøtan

Acceptance tests for GUI are commonly regarded as painful, mainly caused by two factors: They have a long feedback loop Their stability is poor A common stability issue is dealing with asynchronous requests. Because ajax calls takes an unknown amount of time to complete, the test might do some assertion…

How many work days are there per month for a given year?

Hallstein Brøtan

True story: I got a request from our economy guy, he asked me if I knew some online service to give him the number of work days for a given month. Turned out that he was manually counting the number on his calendar (probably several times to be sure), and…

Code on the beach 2015 - Review

Hallstein Brøtan

This summer, Hans Arne and Hallstein attended the Code on the beach conference in Atlantic Beach, Florida. This is our thoughts about the Code on the beach experience, the conference that promises to "learn code with your toes in the sand." 1. The conference Code on the beach is organized…

One to one (or zero) relationship using NHibernate

Hallstein Brøtan

One-to-one (or zero) is a common relationship. It's when you want to store some optional information about something, but don't want all the columns in the same table. Still, I often find it unnecessary complicated when using an ORM like NHibernate or Entity Framework. I also see people avoiding this…