Apple’s declarative visual design framework SwiftUI, introduced in 2019, ushered in a very different way of thinking for those of us used to building user interfaces in Xcode’s Interface Builder.
While those differences can take a while to get used to, experience in building web components with a framework like ReactJS can be hugely beneficial to understanding how SwiftUI components composite together to create larger views.
For a project I’m currently working on, I wanted a view that showed how far along in a series of steps a particular project has got. Each project progresses through a fixed number of…
The news, when it came last night, was devastating. Elisabeth Sladen, who played Sarah Jane Smith in Doctor Who and associated spin-offs from 1973, has passed away after a battle with cancer. She was 63.
When I first came to Doctor Who in the very early 1970s, Sarah was already part of the warp and weft of the series. Through her, I came to see the role of the companion as something that is taken for granted today: independently minded, funny, and for whom terror was a trigger for thought and action instead of just screaming.
Sladen’s performance did more…
TL;DR Relax about the state of your old code (for now); work out how to make your new code (including changes) conform to your style first.
In my previous blog post in this series, I took a look at setting up RuboCop for use in a long-term legacy Rails project, including how to best utilise the ability to autogenerate a TODO file.
In short, contrary to what the
--auto-gen-config option does for us, we shouldn’t inherit from the generated
.rubocop_todo.yml file. That leaves our main configuration file,
.rubocop.yml a lot cleaner. To repeat from that last post:
This is the first of a series of posts I’m writing about implementing RuboCop in legacy Ruby and Rails projects, and which I am building into a wider talk to be given at a later date.
I’ve talked before about how having a consistent style guide is essential for any team of developers, and how one can set up RuboCop to apply that style guide across multiple projects managed by the same team.
But what if you have a project which has been worked on for a number of years without any style guide at all? In a typical Rails…
On a recent project, we hit an awkward snag: a set of tests, which ran perfectly fine locally in our Rails application’s RSpec suite, but would mostly fail when they ran on our continuous integration server.
What would be most annoying is that this was a fairly small ticket which was having all the problems. Without going into project specifics, the work involved:
The relevant changes were driven…
Ruby on Rails (strictly speaking, the
ActiveSupport gem which is installed as a prerequisite for all Rails projects, but which can be installed and used independently of Rails) has some pretty useful features built in.
One such feature is something that this week helped me rip out some tortuous code that was introducing a subtle HTML rendering bug. It’s something that only surfaced when we sent affected emails to specific mail clients, but it’s always nice to stop bugs occurring, however few people may have been affected.
Each of our events can have many sponsors. There are multiple levels of…
I am ten years old. For as long as I can remember, I’ve been a Doctor Who fan. I’m not old enough to remember any other actor playing the Doctor, although I’m aware that he regenerates. But I’ve been an ardent fan of the older man — older even than my uncle John, the oldest man I know who isn’t of my grandparents’ generation — who to me epitomises everything that the Doctor stands for.
And all that has changed. Those greying locks, the patrician older gentleman, is being replaced by someone completely different, someone young and blond. I know…
Here we are again, with ten talking points about this week’s episode of Doctor Who: Smile by Frank Cottrell Boyce.
For newcomers, last week’s 10 Things About Who: The Pilot explains what little rationale there is behind each post. And if you haven’t yet seen this week’s TV episode, don’t come running to me if you find some of the stuff below to contain spoilers…
“And I’m happy you’re glad.”
The concept of a world that is fuelled by enforced happiness is one that is not unknown to Doctor Who. 1988 story The Happiness Patrol.
Graeme Curry’s story…
A few years back — in modern numbering terms, Doctor Who’s 7th season — I got into the habit of writing weekly posts to accompany each episode. Not reviews as such, more a series of ruminations, mind wanderings and general impressions, each Ten Things About Who post had 10 points of discussion.
I eventually packaged up that collection of posts as an ebook which is still on sale from Amazon.
I tried carrying on the habit for season 8, but struggled keeping up with the schedule, so the posts fell by the wayside. …
I am sick of it.
I am sick of people who ignore the obvious homophobic aspect to crimes when it suits them.
I am sick of people being assaulted, raped and even murdered because they identify as LGBT, or any other description which doesn’t fit into a violent fuckwit’s idea of humanity.
I am sick of crimes which are not investigated as fully and effectively as they could be because police forces don’t know how to treat crimes where the victim was trans, but may not have been out to everyone.
I am sick of people who believe that feel…
Scott is a software developer during the day and a theatre critic & director of an evening. Which is the worst superhero identity ever.