With all different lengths of wire scraps to connect things together, sometimes it’s easier to install the junction boxes after making the connections. No amount of electrical tape is going to make this safe.
Yup. Every plumber should carry an inner tube and a shoelace. Clearly this pipe repair didn’t quite pass muster. Repair couplings are actually just as easy to do as this method. And a whole lot more leakproof.