25+ years with factory machines, legacy systems, and software that cannot simply be replaced

Somewhere in Japan, a factory machine is running today on software written before the iPhone existed.

The person who wrote it may be long gone. The documentation may describe a version nobody uses anymore. Parts of the system may be understood only by the operators who have learned, over the years, which buttons not to press in which order.

None of that changes the production schedule.

The machine still has to run tomorrow.

This is the kind of software I have spent most of my career working on.

When an old system becomes difficult to understand, difficult to reproduce, or simply too important to replace casually, I am often the engineer asked to find out what is actually happening.

Tokyo, 1999

I began working as a software engineer in Tokyo in 1999.

My early work was mainly web and enterprise client development. I later led small teams, but the most useful skill I picked up was less glamorous: opening someone else’s code and making sense of it when the author was not around to explain anything.

Deadlines did not wait for documentation to improve.

So I learned to read first, assume less, and change code only after I had a reasonable model of what the system was trying to do.

I did not know it then, but that habit would become the foundation of almost everything I worked on afterward.

Then I Moved Closer to the Machines

Around 2003, I moved to Shizuoka and started developing control software for surface-mount technology (SMT) machines, the equipment used to place electronic components onto printed circuit boards.

That changed how I thought about software.

A web application can fail and leave you with an error message. A machine-control program can fail while a production line is stopped and several people are standing behind you waiting for an answer.

The systems I worked on used Windows Embedded and real-time extensions. Timing mattered. Device state mattered. Sequences that looked harmless on a development PC could behave differently on an actual machine.

I learned very quickly that “it worked on my desk” was not a useful conclusion.

The real system was the machine, the software, the I/O, the timing, the operator, and the production process around all of them.

That way of thinking stayed with me.

Independent in Hamamatsu

I became independent in 2005 and based myself in Hamamatsu, one of Japan’s major manufacturing cities.

For many years I worked directly with industrial customers, often as the only software engineer responsible for a particular system or project.

The work included things such as:

  • modifying control software for SMT and printing equipment,
  • building wafer-map conversion and IC-tag traceability systems,
  • creating PLC-connected durability-test equipment and automated test rigs,
  • maintaining production software whose roots went back to the MS-DOS era,
  • installing servers and equipment on-site,
  • and supporting systems after delivery when the problem could not be reproduced in the office.

Being the only engineer changes the job.

There is no separate department to hand a difficult problem to. Requirements, design, implementation, testing, delivery, investigation, and the early-morning phone call when something has stopped all eventually come back to the same person.

That was my normal working environment for a long time.

It also taught me to care less about whether a solution looked elegant in isolation and more about whether it could be understood, verified, delivered, and maintained in the real environment where it had to operate.

Legacy Software Is Not Fun. It Is Archaeology.

Working with old software is rarely enjoyable. It can be slow, frustrating, and sometimes genuinely painful.

You are not starting from a clean design. You are walking through years of decisions left by people who came before you: fixes, workarounds, compromises, forgotten requirements, and pieces of code that may look wrong until you discover the reason they exist.

You follow those traces one by one.

Not because old code is sacred, but because it has a history. If a system has survived ten or twenty years in production, that history deserves some respect before you start pulling pieces out of it.

The first task is therefore rarely “fix the bug.”

It is to reconstruct enough of that history to understand what can be changed without destroying something that still matters.

A few rules have served me well:

  • Understand before changing. A fast edit based on a wrong assumption can cost far more than a slow investigation.
  • Respect what is still running. Ugly code may be carrying knowledge that no longer exists anywhere else.
  • Use modern technology to reinforce, not merely replace. Strengthen the fragile parts, isolate what can be isolated, and rearrange the system gradually when that is the safer path.
  • Leave evidence behind. Notes, diagrams, test results, hypotheses, and a verification procedure are part of the engineering work, not paperwork added afterward.

Modernization, to me, is not about sweeping away the past.

It is about carefully untangling what came before, preserving what still has value, and rebuilding the weak parts with today’s tools without breaking the system people still depend on.

Legacy modernization is not about erasing the past. It is about carrying it forward without being trapped by it.

The Technology Changed. The Type of Problem Did Not.

My recent work uses newer hardware and newer software stacks, but the difficult part is often familiar.

I have worked on embedded and IoT systems using FreeRTOS, BLE, PSoC, Renesas RL78, M5Stack and related devices. These projects often involve failures that depend on timing, power state, communication state, or physical hardware and therefore refuse to reproduce reliably in a simple unit test.

I have also developed a Linux PCIe driver for image input on NVIDIA Jetson and worked on an Android-based measurement instrument where Java and JNI had to connect correctly to lower-level measurement functions.

Another major area has been long-lived medical software. That work includes maintaining and modernizing VB6-era applications used around electronic medical records, nursing workflows, and electronic prescriptions, while moving parts of those systems incrementally toward C# and .NET without treating production as a disposable test environment.

A twenty-year-old VB6 application and a complicated FreeRTOS firmware image may look unrelated.

From the engineer’s chair, they often present the same problem: years of additions have created a system that no single person can see all at once.

You have to build the map before you start moving the roads.

Where AI Fits Into My Work

I use generative AI every day.

I use it to inspect unfamiliar code, generate tests, compare possible explanations, organize investigation notes, draft documentation, and speed up routine implementation work.

It has made me faster. In some kinds of investigation, much faster.

But speed and responsibility are not the same thing.

AI can produce code very quickly. It cannot take responsibility for the machine that code is about to control.

I treat AI output the same way I would treat code or analysis from any other source: useful input, not final authority.

If I deliver it, I review it. If I make a technical claim, I want evidence for it. If a change can affect a real device or a production system, I want a way to verify the change against that system.

The tools are new. That part of the job is not.

Why I Prefer Async Work

I now work remotely from Japan and increasingly with international clients.

For technical investigation, I prefer asynchronous collaboration and written communication. Not because meetings are bad, but because difficult system work benefits from an evidence trail.

A useful technical report should make it possible to see what was observed, what is still uncertain, what I think is happening, and how the hypothesis can be tested.

My usual working style is therefore simple:

  • Async first. I am in JST; my evening also overlaps with part of the European working day.
  • Written evidence. Investigation results include findings, evidence, root-cause hypotheses, and a concrete verification plan.
  • Calls when they help. I do not require recurring meetings, but short calls are useful when a diagram or log file cannot replace a ten-minute conversation.

This style works particularly well for legacy systems because the problem is often not only fixing today’s failure. It is reducing the amount of knowledge that disappears again tomorrow.

The Work I Am Best At

There is still an enormous amount of old industrial and business software in production, in Japan and elsewhere.

The engineers who originally created many of those systems are retiring. The systems themselves are not retiring nearly as quickly.

That gap is where I do my best work.

I am a Japan-based senior embedded and industrial systems engineer with more than 25 years of software experience. My strongest areas include C and C++, FreeRTOS, BLE, embedded hardware/software integration, legacy application investigation, and modernization of systems that cannot simply be switched off and rewritten.

I am especially useful when:

  • the original developer is no longer available,
  • a failure appears only on real hardware or under particular timing conditions,
  • the documentation is incomplete or no longer matches the system,
  • the code has accumulated many years of changes,
  • or a business-critical system needs to be modernized without betting everything on a full rewrite.

I like difficult systems, incomplete information, and problems where the first honest answer is, “We do not know yet. Let’s find out.”