Having worked in electronics, mechanics and software engineering the latter is definitely the insane clown show of the three.
With the others sure you have some craziness once in a while but you are still being constrained by the real world and solid engineering principles.