Sorry, it's based off tofu dreg construction, which is a chinese slang term meaning substandard, rushed construction. Used either as 豆腐渣工程 or just 豆腐工程. I've heard it explained as old tofu being mixed into concrete to push up volume, that it refers to buildings being built as sturdy as blocks of tofu, or spilled concrete that wasn't removed looking like tofu dregs.
I've taken to using 豆腐编程 (doufubiancheng) to refer to the sturdier variant of chinese software engineering, which suffers from similar quality issues as chinese construction.