Monorepos are brilliant in the right use cases, but often not without a cause-questioning level of setup complication. In the JavaScript ecosystem, Yarn Workspaces provides a mature tool for managing dependencies near-seamlessly, however this is not pairable with a React Native app by default.

Last year I undertook a migration to merge our previously separate frontend repositories into (what has become) our largest codebase. …


Getting started with fish, the friendly interactive shell

Image for post

So far in my time using Unix systems I have stuck with Bash as my preferred shell environment. This is for various reasons, but mostly for its ubiquity. There are well-known alternative shell projects such as zsh, which build upon Bash with an “add more” attitude, but that hadn’t swayed me to become a long-term user in the past.

Fish is a significant departure from Bash, released in 2005 with the brilliant slogan, “Finally, a command line shell for the 90s”. With a bit of time and curiosity, it seemed worthwhile to give it a quick try.

Keeping minimal

The need for a plugin framework or patched nerd font to configure my shell environment never really appealed to me. With Bash I had only built up a humble selection of aliases, exports and functions, with the aim of minimalism and portability (setup on new systems involves simply running stow bash from my dotfiles repository). With fish I’ve ended up needing to configure less things, and what I have is noticeably cleaner. …


One of the more recent FinTech startups to come out the London tech scene is Curve, a consumer money product launched in January of this year. I picked one up in March, and have had a good amount of time to reflect on the Curve card and its features.

Image for post

Curve is a free, MasterCard-issued contactless debit card linked to a mobile app. A second, premium offering Curve Black is also available. Curve aims to be the only card you need to carry, allowing you to charge payments and cash withdrawals to any other MasterCard or Visa credit or debit card, centralising your transactions from multiple providers in a single app. …


The original focused writing app comes to Windows

iA Writer for Windows was successfully funded this week on Kickstarter. As a long-time fan of the app and intermittent Windows user this is awesome news. More awesome is that the first beta build has landed only two days later. Here are my thoughts so far.

Image for post

Please note that personal experiences in this article relate to the very first beta release distributed to Kickstarter backers.

The basics are here

Right away, opening Writer and typing out a sentence feels completely right. …


Vim remains a powerful and ubiquitous application to tackle any number of text editing tasks conveniently from the terminal (some learning required). If you’re looking to add Vim to your toolkit this year, here is my list of absolutely essential plugins to begin supercharging your workflow.

If you’ve never set up a Vim plugin before, see the Installing Vim plugins section later on for a runthrough.

1. fzf

https://github.com/junegunn/fzf.vim

Working on a substantial codebase usually involves traversing several files at a time. …


A few months ago I authored a small Sublime Text plugin called Sublime tmux, providing a set of commands to open windows within tmux sessions directly from the editor. Even though it seemed mostly finished upon release, I ended up introducing several small things which unveiled a non-trivial number of edge cases which I’d wished were covered by tests. I hadn’t approached unit testing within a Sublime package before (or in Python!), but this was a definite time to get started.

At Digital Detox we currently compose our JavaScript tests using Jest, which allows us to rapidly iterate thanks the use of test snapshots. This involves writing select data fragments (snapshots) to a file and diffing against these in subsequent runs, putting any changes to an API surface up for review. This approach would be a really perfect fit here, and as such I was determined try to make this — as far as I can tell — the first use of snapshot testing in a Sublime package. …


UUIDs are awesome — they provide a non-sequential, comprehensively unique identifier that can be generated separately from the source database. However, if you need to include one in a URL they can appear somewhat inelegant.

2b8b9396-0cdf-4b9c-a03d-b25e1d93601b

Recently, I was migrating a PHP application and database from auto increment to UUID 4 strings. In several instances, resource IDs had been referenced in the URL and obfuscated to a short, clean hash ID padded to six characters in length. These identifiers still needed to exist, and we needed to use UUIDs — so would they need to be displayed everywhere in full?

The Hash IDs package used generates identifiers from characters in the range [0-9A-Za-z]. …

About

Alex Hunt

London-based software developer. Building a platform for mental wellbeing at @unmindhq. https://alexhunt.io/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store