Skip to content

Grinding Gears

Tales of code crunching from the FreeAgent Engineering team

  • Development
  • Data & ML
  • Infrastructure
  • Mobile
  • Tooling
  • Security
  • Culture
  • Careers

We're hiring! Check out our vacancies šŸ‘ˆ

Timecop vs Rails TimeHelpers

Posted by Matt Bearman on 25 March 2021

TL;DR - You probably can’t replace Timecop with Rails' built in TimeHelpers, as TimeHelpers only recreates Timecop’s freeze method, and can’t handle nested travelling. Timecop is the go-to gem for testing time-dependent code, as it allows you to manipulate the current time during test runs. This is important because without control over the time, flakey tests can emerge in your codebase. A very simple example is testing the created_at attribute… Continue reading

āž¼ Read other posts about ruby or ruby on rails or testing or timecop

We’re Gonna Need a Bigger Boat

Posted by Richard Grey on 9 March 2021

Earlier this year, the FreeAgent marketing website www.freeagent.com was the target of a volumetric Distributed Denial of Service (DDoS) HTTP flood attack. This was a relatively unsophisticated attack in that it targeted a particular static endpoint of our website with a massive number of HTTP GET requests from multiple remote IP addresses around the globe, as visualised on the map below. Predominantly serving the UK small business base, FreeAgent wouldn’t… Continue reading

āž¼ Read other posts about security

Exciting Python code on screen

Managing Python dependencies across multiple Data Science projects with Poetry

Posted by David Edwards on 5 March 2021

Python is the programming language of choice for running analysis, building models and running machine learning services in production for the Data Science team at FreeAgent. A key reason we chose Python is the great ecosystem of packages available: NumPy, pandas, SciPy and scikit-learn, deep learning frameworks like TensorFlow and more bespoke options for specific tasks like Click for developing CLIs. This wealth of options is a great strength of… Continue reading

āž¼ Read other posts about data science or python

We're hiring! Check out our vacancies šŸ‘ˆ

Unpacking Amazon ECS

Posted by Paul Barber on 22 February 2021

The following post is a high-level description of Amazon Web Services’ Elastic Container Service (ECS), the relationship between its components, and how they can be used to deploy a web application. ECS is a fully managed container service. It is akin to Kubernetes, but ultimately it is simpler and has fewer moving parts. ECS offers the security, reliability and scalability that is customary with AWS. The Fargate engine provides a… Continue reading

āž¼ Read other posts about AWS or cloud or containers or ECS or fargate

The Mobile Apps and the Tester

Posted by Jessica Yong on 19 January 2021

The replatforming of our hybrid mobile app to separate iOS and Android native apps was already well under way when I arrived at FreeAgent as a test engineer for the mobile team. Since then we have carved out processes that the whole team can contribute to, giving us confidence that for each release our apps are in good shape. Here are a few things we are doing to ensure this.… Continue reading

āž¼ Read other posts about mobile or testing

Six years of data science and analytics interns at FreeAgent

Posted by Dave Evans on 7 January 2021

It’s hard to believe we’ve been running internships in our data teams for six years now, and we’re about to start recruitment for the seventh time. Things have changed a little since our first intern started, as last year saw more than four times as many staff in the wider team and our first remote internship during the coronavirus pandemic. I’ve always tended to think of our internships as a… Continue reading

āž¼ Read other posts about analytics or data science or internship

Dog working at a computer

Testing Child Processes in Ruby

Posted by Andy Stabler on 6 January 2021

I was recently writing a piece of code that we wanted to act as a supervisor of child processes. We wanted to ask this supervisor the following ā€œHello there, would you mind running this task in a child process? Thanks!ā€. From here the supervisor would create a process, keep track of it so we can stop it if necessary, and run the given piece of code in it. This supervisor… Continue reading

āž¼ Read other posts about process management or ruby or testing

Moving 100,000 customers from co-lo data centres to the cloud. With zero downtime.

Posted by Olly Headey on 21 December 2020

Running a SaaS app in AWS in 2020 is, in itself, not a particularly remarkable thing. Migrating a complex Rails app that is used daily by over 100,000 customers to an entirely different infrastructure, introducing a new underlying architecture, and doing so without customer downtime, really is something special.  In this article we take a look behind the curtain to see how we achieved this recently at FreeAgent. It's almost… Continue reading

Answering bigger questions with BigQuery

Posted by Jack Gladas on 1 December 2020

Over the past few weeks, we’ve configured BigQuery to enable us to combine our Google Analytics (GA) front-end data with our internal back-end data. In this post I’m going to talk about why we needed to do this, how we went about it and what we are hoping to achieve as a result. What’s the problem? Historically, two separate systems have been used at FreeAgent to track, store and analyse… Continue reading

āž¼ Read other posts about analytics or bi or bigquery or data or GA or redshift

Empowering our practices: Take 2

Posted by Lea Whitelaw on 30 October 2020

ā€˜How can we use our data to understand and empower our accountancy practice partners?’ This is the question that I posed in my previous blog about delivering practice insights last summer. This question was the foundation for my project last year and is the one I came back to continue answering this year. To recap how the project was left at the end of last summer; I had created three… Continue reading

āž¼ Read other posts about accountancy practice or analytics or bi or insights or internship or looker

Posts navigation

Ā« Older posts
Newer posts Ā»

We're totally hiring!

See our current engineering vacancies

Built with ā¤ļø by the FreeAgent team.