Be More GARY: Upping your RSpec gameImprove your test code by moving away from the DRY principle This article is based on a lightning talk given at LRUG’s February 2024 meetup. In the Ruby community, the same acronyms have a tendency to pop up frequently. There’s MINASWAN (Matz Is Nice… Feb 19 24February 19, 2024Article at Medium
Creating a CSV Export library for Swift (Part 1)This story also appears on my blog m currently building a large and rather complicated app in SwiftUI that involves quite a lot of data. While the app handles most tasks internally, there are some features of spreadsheets like Excel or Numbers that… Jan 03 24January 03, 2024Article at Medium
Modelling an optional attribute with SwiftUI pickersHow to express “none of the above” without reaching for custom code The Picker in SwiftUI is an incredibly versatile view designed to allow the user to a pick from a list of discrete values. Depending on the platform you’re using, those values can be… Dec 05 21December 05, 2021Article at Geek Culture
Dismissing SwiftUI modal views in iOS 15 and macOS 12This post discusses changes to SwiftUI first revealed at WWDC 2021 and are still in beta, so are subject to change. If you’ve spent any time working with modal views in SwiftUI, you’ll usually want to have some way of dismissing them in code. As I… Jun 25 21June 25, 2021Article at Medium
Building a login screen using modal views in SwiftUICreating a dummy view that prevents users from accessing your app until they log in is quick and easy using ‘full screen cover’ modal views. This article is geared towards SwiftUI on iOS/iPadOS 14, and example code is written using Xcode 12.5. The… May 26 21May 26, 2021Article at Geek Culture
Creating a segmented progress bar in SwiftUI with Swift PlaygroundsBuilding custom controls in a declarative style is easy with SwiftUI — and you can do it all on an iPad if you like Apple’s declarative visual design framework SwiftUI, introduced in 2019, ushered in a very different way of thinking for those of us… Apr 28 20April 28, 2020Article at Medium
A tear, Sarah Jane?It is nine years since the passing of Elisabeth Sladen, an actor who was beloved to many as Sarah Jane Smith, the quintessential Doctor Who companion. Upon hearing the news, I wrote this piece for The Stage’s TV Today blog. That blog and its contents… Apr 19 20April 19, 2020Article at Medium
RuboCop in legacy projects, part 2: Focus on the presentApplying your style guide selectively is the way to stay sane, but takes a little work 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… Oct 22 19October 22, 2019Article at Medium
RuboCop in legacy projects, part 1: TODOs and TODON’TsRuby and Rails developers: adding style linters to your legacy projects is harder than it should be. Let’s do something about that. This is the first of a series of posts I’m writing about implementing RuboCop in legacy Ruby and Rails projects, and… Oct 21 19October 21, 2019Article at Medium
Find the cause of randomly failing tests with RSpec bisectOn 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… Dec 18 18December 18, 2018Article at Geek Culture
Refactoring views with Ruby on Rails’ ActiveSupport helpersRuby 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… Jun 30 18June 30, 2018Article at Medium
Doctor Who, whoever he or she may beI 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… Jul 19 17July 19, 2017Article at Medium
10 Things about Who: 10.2 SmileHere 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… Apr 24 17April 24, 2017Article at Medium
10 Things about Who: 10.1 The PilotA 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… Apr 16 17April 16, 2017Article at Medium
I am sick of it.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… Jun 14 16June 14, 2016Article at Medium