engineering around deficiencies sometimes yields interesting results but this isn't one of them.
I'd say this code is spaghetti.