The tutorial note says not to touch live (green) components, but logic gate is always green, even unconnected to anything, with no option to turn it off so whenever I try to wire it, it sparks.
The unconnected component on its own might be live (green) as no connection on inputs is defined as 0 so the output is 1. Connect a wire from the switch to the component and toggle the switch to get those components outputs non live (red).