Comment by bostonvaulter2

5 years ago

Wow, that almost makes it sound like the original author was getting paid per line.

Must have. It was a new version of an old driver. The old driver was 9 modules. The new one - 900. Every tiny little thing was another module. It conversed in 802.11 and ethernet etc, so of course it had three (3) copies of non-compatible packet layout declarations, each comprising dozens of modules. And on and on.

It was like a computer science geek gone mad had figured, "I'll use every decomposition technique I ever heard of, and invent some more, so this is the most computer-sciencey source base in the world".

Ultimately I rewrote it in 12 C++ base classes and a derived object for each radio card I had to work with.