Building a State Machine to Navigate Complex Travel Requirements and Border Crossing Rules
By
valzevul
A five-star bake. Worth schmearing, sharing, saving.
Summary
The article describes the author's experience building a state machine to automate travel planning decisions, particularly around visa requirements, passport rules, and border crossing complexities. It explains how traditional travel planning involves checking multiple government websites with inconsistent information, and how the author created a system to model travel eligibility as a state machine that can answer questions like whether a particular trip would work given one's current travel history and visa status. The piece explores the technical and philosophical challenges of automating decisions about border crossings when governments don't expose clear APIs or consistent data.
Key quotes
· 5 pulledCountry borders don't return JSON, they return judgment.
It isn't one check, it's a stack of small unfriendly ones, and takes around 20 minutes of clicking through government websites.
I built a state machine for travel when governments won't expose your state.
An error fare to Iceland pops up. It's cheap enough to feel like a typo and most likely will be gone in minutes.
Before I click Buy, I need to know (fast!) if it actually works for me: would I need a visa, are there any odd passport requirements, can I quickly sort out the driving permit, would it affect my Schengen 90/180 window, break UK presence tests or accidentally prevent a tax residency I am chasing.
You might also wanna read
Building a distraction-free writerdeck from an old laptop
The author describes converting an old laptop into a dedicated "writerdeck" — a distraction-free writing device running console-only Debian
veronicaexplains.net·8d agoBuilding OurCar: A Flutter App for Family Car Sharing and Fair Gas Cost Splitting
The author built a mobile app called "OurCar" using Flutter to solve a practical family problem: fairly splitting gas costs and managing sha
How Learning to Shoot a Rifle Led Me to Build a Custom Computer Vision Scoring System
A personal narrative about the author's journey from learning to shoot a rifle (to cook venison from scratch) to building a custom computer
Personal Reflections on Vim: How a Text Editor Became an Extension of Thought
The article is a personal reflection on the author's deep relationship with the Vim text editor, describing it as an integral part of their
Chris Clapham - Software Engineer Portfolio
This appears to be a personal website or portfolio page for Chris Clapham, a software engineer. The content likely includes professional inf
Reflections on a Programming Journey: From Pascal to Rust
The article appears to be a personal reflection on the author's programming journey, starting with learning Pascal in 9th grade through a sc
