Software ·

A yard full of trailers

Drive past almost any large factory and you will see it: rows of semi-trailers and shipping containers parked out back, some full, some empty, some waiting to go home. That parking lot is called the yard, and a surprising amount of money is made or lost there.

Each of those trailers holds parts the plant needs. Someone has to know which trailer holds which parts, where it is parked, when it should be pulled up to a dock door, and when the empty should go back to the carrier. Carriers charge for every day their equipment sits past its free time; the industry calls it demurrage or detention. A plant that loses track of a few trailers pays for it every month.

Software that keeps track of all this is called a yard management system, or YMS. I built one many years ago and just recently decided to see if I could recreate it from some old code I came across.

Why a blog series

This November I rebuilt my old YMS from the ground up, with an AI assistant, Claude, doing most of the typing. The result is running at yms.wellsroad.ca, and anyone can try it at ymsdemo.wellsroad.ca. The rebuild took about two weeks. The story of how it got there took a lot longer, and I think both parts are worth telling.

Over the next five weeks I will post three times a week:

  • Weeks 1 and 2: the history. A web-based warehouse system in the late 1990s, a port that turned inventory into a walk with a barcode scanner, a plant that needed a yard system in a hurry, and a 2008 product that met a recession.
  • Week 3: the rebuild. Finding the old code on a forgotten drive, and what it was like to rebuild it with an AI partner in two weeks, including the day we changed course.
  • Weeks 4 and 5: the result. What the finished system does, from the supplier's shipping notice to the forklift driver's phone, and who might find it useful.

What a YMS does, in one paragraph

A supplier tells you a shipment is coming. When the truck arrives, you check the paperwork, park the trailer in a known spot and record what is inside. When the plant needs those parts, someone requests a move, a yard driver brings the trailer to a dock door, the parts come off, and the empty goes back to the yard or to the carrier's pickup lot. Every step is recorded, so anyone can see where every trailer is and what it holds.

That is the core. Around it grow the useful extras: a map of the yard, dock appointments, alerts before charges start, a portal for carriers and suppliers, phones for the drivers, and in this version, a warehouse behind the dock doors.

If you run a plant, a distribution centre or a busy terminal, some of this will sound familiar. If you build software, I hope the second half of the series is interesting for a different reason.

Next: Servlets, scanners and a system nobody wanted.

Comments

Leave a comment

Comments appear once approved. Your email and IP address are stored to deal with spam, and aren’t shown or shared.