The last senior developer had just handed in his notice. I was a university student, initially brought in while still in high school, through my father, who had designed the company’s office building. Now, I was standing in the middle of Labtech—a medical device company—looking around at a completely abandoned engineering department.
Multinational tech companies had recently arrived in our city, offering salaries the local market couldn’t match. The experienced engineers left one by one. I was alone on the deck of a sinking ship, holding the keys to three completely incompatible, legacy product lines that still needed to ship to hospitals.
The Inheritance
The scope of the technical debt was staggering. The company had a Resting/Stress ECG built in C++ with MFC and MSSQL, a Holter ECG built on raw Win32 APIs and MS Access, and a cloud solution built with a Java applet frontend. None of them shared a codebase. None of them shared a patient database.
And the Resting ECG software shipped to clients was compiled in Debug mode because it was the only way to mask the race conditions that would otherwise crash the system. On top of that, there were virtually no automated tests for the 2-million-line C/C++ codebase. Even manual testing wasn’t formalized—it was mostly done ad-hoc by developers, sales reps, the CEO, and our Hungarian end users.
The Strategic Bet
I had originally been hired to build a greenfield practice manager in C# .NET. Why C#? I was comfortable in C++ from building video games, but Java wasn’t heavily taught at my university. C# and Visual Studio 2005 provided a comfortable leap, letting us achieve near-C++ performance while giving us the productivity of a managed framework. Plus, Windows was completely dominant at the time—no one cared about Mac or Linux versions in our market.
Instead of patching the unfixable C++ race conditions, I proposed a radical shift: we would use my new C# practice manager as the foundation to rebuild the entire product line from scratch, component by component.
The Rebuild — and the Cultural Battle
I couldn’t do it alone, and there was no formal hiring budget. So, I took a risk. I brought in my university friends and paid their salaries out of my own contracting fee. The company actually didn’t take any risk with the rewrite: according to my contract, I only received payment for the rewrite after the first successful deployments in Hungary produced 1,000 ECG records. Otherwise, I only got paid for patching the legacy systems. The financial risk, just like the team’s salary, rested entirely on my shoulders.
We turned a solo rescue mission into a team effort fueled by late-night coding sessions, pizza, and beer. Within three months, the Resting ECG was running on the new .NET architecture. A month later, the Stress system followed. We fought battles with the CEO over pixel-perfect UI clones, but we pushed back to deliver a friendlier, and more stable system.
But we didn’t just reform the technology; we reformed the culture. The old team used Visual SourceSafe and emailed Word documents back and forth as bug tickets. We had no senior mentors and no established processes to copy. We figured it out by reading articles, studying books, and learning from friends working at larger companies. We dragged the processes into the modern era: moving to SVN, adopting Mantis (and eventually Jira) for issue tracking, and setting up Confluence. It was a long fight to break the habit of Word attachments, but eventually, we were planning sprints on Jira dashboards instead of email threads. We also formalized manual testing, fighting the outdated management mentality that “testing is only needed because developers don’t do a good job.”
The resistance eventually evaporated when our primary Japanese clients started comparing our new interface to Apple’s UX—a massive validation for what management had initially dismissed as a “programmer UI.”
The Medica Insight
With the core products stabilized, we had breathing room. The turning point for the company’s future happened at the Medica trade fair in Germany.
I was walking the exhibition floor, watching massive Western competitors proudly demo their new “mobile” ECG solutions. They were clunky, purpose-built hardware bricks with terrible monochrome displays and atrocious user experiences. I had always loved smart devices—I carried a Nokia Communicator and a PocketPC—and looking at those primitive competitor devices, the gap in the market was glaringly obvious. Management dismissed smart devices as “toys,” but I knew they were wrong.

The Exam Break Prototype
Back at university a few weeks later, I ignored the skepticism and opened my laptop during an exam break. I used the .NET Compact Framework to shrink our Resting ECG system onto a Windows Mobile PDA.
When we showed it to our partners, it was an explosive success. Instead of sticking with the aging Windows Mobile platform, our primary Japanese clients urgently requested Android and iOS solutions. The market saved us: Xamarin emerged, and we used it to become one of the world’s first mobile ECG platforms, supporting iPhone, iPad, and Android. That “toy” ultimately laid the foundation for the founders’ successful exit.
Over the next few years, everything fell into place. Alongside the Holter ECG, we eventually delivered a web frontend and network capabilities—closing the loop and completely replacing Labtech’s entire legacy product portfolio.

There is a moment from that era I will never forget. At a world exhibition, a delegation of Japanese executives—men in their 50s and 60s—lined up and formally bowed to me in my twenties, out of respect for the system we had built.
Final Thought
I left Labtech almost 15 years ago, but Cardiospy is still their flagship product today, running on the architectural foundations my friends and I laid down in our twenties. With my current experience, I would do many things differently. But building a system that survives and scales for over 20 years is still something I am rightfully proud of.
Takeaways
- Don’t Fix the Unfixable: If a production system only runs in debug mode due to race conditions, don’t try to patch it. Use it as an excuse to rewrite the foundation.
- Invest in Your Team (Literally): Sometimes leadership means taking personal risks—like paying your peers from your own pocket—to build the capacity you need to succeed.
- Trust Your Market Instincts: If you see a technological gap that non-technical management dismisses, build the prototype anyway. Working software wins arguments.