In 1980, I had a memorable encounter with a manager who naively tried to apply high-level programming principles to assembly language.
I was part of a company focused on creating industrial control systems, specifically coding in 8085 assembly for embedded devices. After my manager attended a seminar on “structured programming,” he became adamant about eliminating all GOTO statements from our codebase.
The issue was that assembly language relies heavily on jumps and branches. When I attempted to explain this to him, he issued me an ultimatum: remove every jump instruction within two weeks, or face consequences.
In response, I devised a clever solution. Instead of using direct JMP commands, I utilized:
; Instead of: JMP TARGET_ADDR
; I opted for:
LXI H, TARGET_ADDR ; Load the target address into HL
SPHL ; Transfer HL to the stack pointer
RET ; Return to the "new module"
; Plus, I included elaborate module headers
.TITLE "Data Management Module 2.1"
.SUBTTL "Enhanced Calculation Subsystem"
The program functioned just as it should, albeit with some added steps and detailed documentation. I embellished it with impressive titles and descriptions.
My manager was ecstatic! He genuinely believed I had revolutionized chaotic code into a structured design masterpiece. The system was released, and I moved on to new endeavors.
Fast forward three years, a new developer reached out, utterly confused by the code I had written. Upon sharing the story with him, he was in stitches. It turns out they had dismissed that manager ages ago.
Does anyone else have stories about dealing with management that lacked technical understanding?