Auto Trader Engineering Blog

  • Meaningful Code Using Types

    Crafting meaningful code is vital to the long term success of a project. Here I'll discuss how we can use types to help us to acheive this goal. I'll also go through a few helpful IntelliJ refactors that help introduce our types.

    Read more…

  • Configurable custom dimensions for AngularJS apps

    As part of the work on one of our new AngularJS apps we had to look at how we were going to integrate Google Analytics page and event tracking. One of the key points to cover was that it had to be configurable by a range of users across the business. Often config like this would be held in a spreadsheet and converted by hand by the development team into code. Keen to avoid this we tried to come up with a JSON based config that would be both human readable and directly used by the analytics module. The config ended up being split into three main parts; describing custom dimensions, pages, and global events.

    Read more…

  • Stubbr - a NodeJS HTTP stubbing server

    When it comes to writing integration tests, constructing a test sandbox that abstracts away every HTTP service dependency lets us concentrate on testing the interactions within our own app in isolation. I’ve found mock http servers to be an invaluable tool for achieving this; this post is to discuss the mock http server that we created to serve this need in a greenfield AngularJS app integration tested with the NodeJS-based Protractor test framework.

    Read more…

  • Auto Trader Engineering Blog

    When you think about Auto Trader you probably immediately think about automotive sales—perhaps even a now out-of-print magazine with a technology function separate to the rest of the business. It’s true that selling cars is the focus of our customers, and we have been helping them do that since 1996. However, with up to 70 million page impressions a day it’s technology—not cars—that is the core of our organisation. Technology is at the heart of every decision we make and the strategy we steer by. For this reason it is critical that our engineers are at the heart of the business rather than serving in a siloed technology team. The automotive market is changing and Auto Trader needs to innovate and evolve to achieve its goal of being the most admired digital business in the UK.

    Read more…